Update lazy-loading.spec.ts - use Cypress Testing Library (#10591)
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
parent
7114f82e6f
commit
a092a91cd9
1 changed files with 5 additions and 2 deletions
|
@ -116,9 +116,12 @@ describe("Lazy Loading", () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
function openMemberlist(): void {
|
function openMemberlist(): void {
|
||||||
cy.get('.mx_HeaderButtons [aria-label="Room info"]').click();
|
cy.get(".mx_HeaderButtons").within(() => {
|
||||||
|
cy.findByRole("tab", { name: "Room info" }).click();
|
||||||
|
});
|
||||||
|
|
||||||
cy.get(".mx_RoomSummaryCard").within(() => {
|
cy.get(".mx_RoomSummaryCard").within(() => {
|
||||||
cy.get(".mx_RoomSummaryCard_icon_people").click();
|
cy.findByRole("button", { name: /People \d/ }).click(); // \d represents the number of the room members
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue