From 0549a34053f43f6be73c5187a930e357ef493ba3 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Fri, 6 Oct 2023 16:44:54 +0100 Subject: Fix Cypress tests --- cypress/e2e/event.cy.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cypress') 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)" ); }); -- cgit v1.2.3