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

* Update room.spec.ts - use Cypress Testing Library

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Empty commit

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
Suguru Hirahara 2023-04-17 07:35:14 +00:00 committed by GitHub
parent 8a4a584ba0
commit 9d8d610f31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");
});
});