mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 15:01:13 +02:00
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
@ -159,7 +159,9 @@ describe("Widget Events", () => {
|
|||||||
cy.viewRoomByName(ROOM_NAME);
|
cy.viewRoomByName(ROOM_NAME);
|
||||||
|
|
||||||
// approve capabilities
|
// 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 () => {
|
cy.all([cy.get<string>("@widgetEventSent"), cy.get<string>("@layoutEventSent")]).then(async () => {
|
||||||
// bot creates a new room with 'm.room.topic'
|
// bot creates a new room with 'm.room.topic'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user