From a092a91cd91b07f01e1d773f1614cafec218f84e Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Mon, 17 Apr 2023 16:01:09 +0000 Subject: [PATCH] Update lazy-loading.spec.ts - use Cypress Testing Library (#10591) Signed-off-by: Suguru Hirahara --- cypress/e2e/lazy-loading/lazy-loading.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/lazy-loading/lazy-loading.spec.ts b/cypress/e2e/lazy-loading/lazy-loading.spec.ts index e174364aeb..1efc69e032 100644 --- a/cypress/e2e/lazy-loading/lazy-loading.spec.ts +++ b/cypress/e2e/lazy-loading/lazy-loading.spec.ts @@ -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 }); }