From fcf2fe2c1d5248f1c990c26098f5dbac42b725fc Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 27 Apr 2023 10:37:58 +0000 Subject: [PATCH] Update read_events.spec.ts - use Cypress Testing Library (#10719) Signed-off-by: Suguru Hirahara --- cypress/e2e/integration-manager/read_events.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/integration-manager/read_events.spec.ts b/cypress/e2e/integration-manager/read_events.spec.ts index c331038db9..65b195a3c7 100644 --- a/cypress/e2e/integration-manager/read_events.spec.ts +++ b/cypress/e2e/integration-manager/read_events.spec.ts @@ -65,9 +65,9 @@ const INTEGRATION_MANAGER_HTML = ` `; function openIntegrationManager() { - cy.get(".mx_RightPanel_roomSummaryButton").click(); + cy.findByRole("button", { name: "Room info" }).click(); cy.get(".mx_RoomSummaryCard_appsGroup").within(() => { - cy.contains("Add widgets, bridges & bots").click(); + cy.findByRole("button", { name: "Add widgets, bridges & bots" }).click(); }); }