diff options
author | Raphael Kabo <raphaelkabo@hey.com> | 2024-02-26 12:10:32 +0000 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2024-02-26 12:10:32 +0000 |
commit | 9e11c3667e027f805fca37b5dffe9d8a52303a14 (patch) | |
tree | 58a2369cde40717bb6b34273566f3e31ab8c9932 /cypress/e2e/magicLink.cy.ts | |
parent | c93fd6e2d455ea4208f9e5ca6bfbd1c0e9fd1ad9 (diff) |
testing: E2E tests for public and restricted events
Diffstat (limited to 'cypress/e2e/magicLink.cy.ts')
-rw-r--r-- | cypress/e2e/magicLink.cy.ts | 14 |
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"); + }); +}); |