summaryrefslogtreecommitdiff
path: root/cypress/e2e/magicLink.cy.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/e2e/magicLink.cy.ts')
-rw-r--r--cypress/e2e/magicLink.cy.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/cypress/e2e/magicLink.cy.ts b/cypress/e2e/magicLink.cy.ts
new file mode 100644
index 0000000..5540415
--- /dev/null
+++ b/cypress/e2e/magicLink.cy.ts
@@ -0,0 +1,14 @@
+describe("Restricted Event Creation", () => {
+ it("should redirect to the magic link form", () => {
+ cy.setCookie(
+ "cypressConfigOverride",
+ JSON.stringify({
+ general: {
+ creator_email_addresses: ["test@test.com"],
+ },
+ }),
+ );
+ cy.visit("/new");
+ cy.get("h2").should("contain", "Request a link to create a new event");
+ });
+});