mirror of https://github.com/vector-im/riot-web
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>pull/28217/head
parent
8a4a584ba0
commit
9d8d610f31
|
@ -71,11 +71,11 @@ describe("Room Directory", () => {
|
||||||
// we want to make sure it is never displayed when switching these rooms
|
// we want to make sure it is never displayed when switching these rooms
|
||||||
cy.get(".mx_RoomPreviewBar_spinnerTitle", { timeout: 1 }).should("not.exist");
|
cy.get(".mx_RoomPreviewBar_spinnerTitle", { timeout: 1 }).should("not.exist");
|
||||||
// confirm the room was loaded
|
// 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.viewRoomByName("Charlie");
|
||||||
cy.get(".mx_RoomPreviewBar_spinnerTitle", { timeout: 1 }).should("not.exist");
|
cy.get(".mx_RoomPreviewBar_spinnerTitle", { timeout: 1 }).should("not.exist");
|
||||||
// confirm the room was loaded
|
// confirm the room was loaded
|
||||||
cy.contains("Charlie joined the room").should("exist");
|
cy.findByText("Charlie joined the room").should("exist");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue