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

Commit 4ec04d5

Browse files
committed
Check the button's text instead
Signed-off-by: Suguru Hirahara <[email protected]>
1 parent ab00c5f commit 4ec04d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypress/e2e/timeline/timeline.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ describe("Timeline", () => {
271271
cy.get(".mx_IconizedContextMenu_item[aria-label=Remove]").should("be.visible").click({ force: false });
272272
// Confirm deletion
273273
cy.get(".mx_Dialog_buttons button[data-testid=dialog-primary-button]")
274-
.should("be.visible")
274+
.should("have.text", "Remove")
275275
.click({ force: false });
276276
// Make sure the dialog was closed and the second (last) message was redacted
277277
cy.get(".mx_Dialog").should("not.exist");

0 commit comments

Comments
 (0)