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

Commit

Permalink
Update events.spec.ts - use Cypress Testing Library (#10590)
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 committed Apr 20, 2023
1 parent 1efa829 commit 6b211dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/widgets/events.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ describe("Widget Events", () => {
cy.viewRoomByName(ROOM_NAME);

// approve capabilities
cy.contains(".mx_WidgetCapabilitiesPromptDialog button", "Approve").click();
cy.get(".mx_WidgetCapabilitiesPromptDialog").within(() => {
cy.findByRole("button", { name: "Approve" }).click();
});

cy.all([cy.get<string>("@widgetEventSent"), cy.get<string>("@layoutEventSent")]).then(async () => {
// bot creates a new room with 'm.room.topic'
Expand Down

0 comments on commit 6b211dd

Please sign in to comment.