diff options
author | Raphael <mail@raphaelkabo.com> | 2024-02-26 15:06:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 15:06:01 +0000 |
commit | de688444d167fdb80c6e88b8ba837405ba7651a6 (patch) | |
tree | 051fa37a2fe30052254bf79a60bd870667fcc0b7 /cypress/e2e/event.cy.ts | |
parent | afd9fc4477fff90e5db917f350d99c3d01fba2bd (diff) | |
parent | 1275280a9e3a31f6080079d564a8fb9e1847db8b (diff) |
Merge pull request #135 from lowercasename/rk/public-events
Events and groups optionally visible on front page
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(); } |