Update read_events.spec.ts - use Cypress Testing Library (#10719)

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
Suguru Hirahara 2023-04-27 10:37:58 +00:00 committed by GitHub
parent 8eac9f821a
commit fcf2fe2c1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,9 +65,9 @@ const INTEGRATION_MANAGER_HTML = `
`; `;
function openIntegrationManager() { function openIntegrationManager() {
cy.get(".mx_RightPanel_roomSummaryButton").click(); cy.findByRole("button", { name: "Room info" }).click();
cy.get(".mx_RoomSummaryCard_appsGroup").within(() => { cy.get(".mx_RoomSummaryCard_appsGroup").within(() => {
cy.contains("Add widgets, bridges & bots").click(); cy.findByRole("button", { name: "Add widgets, bridges & bots" }).click();
}); });
} }