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

Commit

Permalink
Update lazy-loading.spec.ts - use Cypress Testing Library (#10591)
Browse files Browse the repository at this point in the history
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
  • Loading branch information
luixxiul authored Apr 17, 2023
1 parent 7114f82 commit a092a91
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cypress/e2e/lazy-loading/lazy-loading.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,12 @@ describe("Lazy Loading", () => {
}

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_icon_people").click();
cy.findByRole("button", { name: /People \d/ }).click(); // \d represents the number of the room members
});
}

Expand Down

0 comments on commit a092a91

Please sign in to comment.