Update events.spec.ts - use Cypress Testing Library (#10590)
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
parent
1efa82917a
commit
6b211dd602
1 changed files with 3 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue