Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Update room.spec.ts - use Cypress Testing Library #10608

Merged
merged 3 commits into from
Apr 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cypress/e2e/room/room.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
});