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/event.cy.ts | |
parent | c93fd6e2d455ea4208f9e5ca6bfbd1c0e9fd1ad9 (diff) |
testing: E2E tests for public and restricted events
Diffstat (limited to 'cypress/e2e/event.cy.ts')
-rw-r--r-- | cypress/e2e/event.cy.ts | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/cypress/e2e/event.cy.ts b/cypress/e2e/event.cy.ts index 8870164..c49c518 100644 --- a/cypress/e2e/event.cy.ts +++ b/cypress/e2e/event.cy.ts @@ -1,19 +1,4 @@ -const eventData = { - eventName: "Your Event Name", - eventLocation: "Event Location", - timezone: "America/New York", - eventDescription: "Event Description", - eventURL: "https://example.com", - hostName: "Your Name", - creatorEmail: "test@example.com", - eventGroupCheckbox: false, - interactionCheckbox: true, - joinCheckbox: true, - maxAttendeesCheckbox: true, - maxAttendees: 10, - eventStart: "2030-01-01T00:00", - eventEnd: "2030-01-01T01:00", -}; +import eventData from "../fixtures/eventData.json"; describe("Events", () => { beforeEach(() => { @@ -37,13 +22,6 @@ describe("Events", () => { cy.get("#hostName").type(eventData.hostName); cy.get("#creatorEmail").type(eventData.creatorEmail); - // Check checkboxes based on eventData - if (eventData.eventGroupCheckbox) { - cy.get("#eventGroupCheckbox").check(); - cy.get("#eventGroupID").type(eventData.eventGroupID); - cy.get("#eventGroupEditToken").type(eventData.eventGroupEditToken); - } - if (eventData.interactionCheckbox) { cy.get("#interactionCheckbox").check(); } |