diff options
author | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-06 16:44:54 +0100 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-06 16:44:54 +0100 |
commit | 0549a34053f43f6be73c5187a930e357ef493ba3 (patch) | |
tree | e9b8cf3e56e2e08165a1882f4d9dfc2f83f33684 /cypress/e2e | |
parent | 2996a4d05d0ea2f8446e2a2a0383979ceec748ae (diff) |
Fix Cypress tests
Diffstat (limited to 'cypress/e2e')
-rw-r--r-- | cypress/e2e/event.cy.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cypress/e2e/event.cy.ts b/cypress/e2e/event.cy.ts index 833a3c9..3536806 100644 --- a/cypress/e2e/event.cy.ts +++ b/cypress/e2e/event.cy.ts @@ -82,7 +82,7 @@ describe("Events", () => { cy.get(".p-summary").should("contain.text", eventData.eventDescription); cy.get("#hosted-by").should( "contain.text", - `Hosted by ${eventData.hostName}`, + `Hosted by ${eventData.hostName}` ); cy.get("#attendees-alert").should("contain.text", "10 spots remaining"); let [startDate, startTime] = this.eventStart.split(", "); @@ -99,12 +99,13 @@ describe("Events", () => { it("allows you to attend an event", function () { cy.get("button#attendEvent").click(); cy.get("#attendeeName").type("Test Attendee"); - cy.get("#attendeeNumber").clear().type("2"); + cy.get("#attendeeNumber").clear(); + cy.get("#attendeeNumber").type("2"); cy.get("form#attendEventForm").submit(); cy.get("#attendees-alert").should("contain.text", "8 spots remaining"); cy.get(".attendeesList").should( "contain.text", - "Test Attendee (2 people)", + "Test Attendee (2 people)" ); }); |