From 1f22b335b7fbafe7974a30a35cae1ab1f2d7107a Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 13 Apr 2023 15:00:17 +0900 Subject: [PATCH] Update lazy-loading.spec.ts - use Cypress Testing Library 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 e174364aeba..1efc69e0323 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 }); }