diff --git a/cypress/e2e/room/room.spec.ts b/cypress/e2e/room/room.spec.ts index a8a3a9a7e65..843258a7780 100644 --- a/cypress/e2e/room/room.spec.ts +++ b/cypress/e2e/room/room.spec.ts @@ -71,11 +71,11 @@ describe("Room Directory", () => { // we want to make sure it is never displayed when switching these rooms cy.get(".mx_RoomPreviewBar_spinnerTitle", { timeout: 1 }).should("not.exist"); // confirm the room was loaded - cy.contains("Bob joined the room").should("exist"); + cy.findByText("Bob joined the room").should("exist"); cy.viewRoomByName("Charlie"); cy.get(".mx_RoomPreviewBar_spinnerTitle", { timeout: 1 }).should("not.exist"); // confirm the room was loaded - cy.contains("Charlie joined the room").should("exist"); + cy.findByText("Charlie joined the room").should("exist"); }); });