summaryrefslogtreecommitdiff
path: root/cypress/e2e/magicLink.cy.ts
blob: 5540415946c63b19855483b40b6d32b0936c0045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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");
    });
});