diff --git a/cypress/e2e/timeline/timeline.spec.ts b/cypress/e2e/timeline/timeline.spec.ts index a503b887144..80b9b0191f2 100644 --- a/cypress/e2e/timeline/timeline.spec.ts +++ b/cypress/e2e/timeline/timeline.spec.ts @@ -271,7 +271,7 @@ describe("Timeline", () => { cy.get(".mx_IconizedContextMenu_item[aria-label=Remove]").should("be.visible").click({ force: false }); // Confirm deletion cy.get(".mx_Dialog_buttons button[data-testid=dialog-primary-button]") - .should("be.visible") + .should("have.text", "Remove") .click({ force: false }); // Make sure the dialog was closed and the second (last) message was redacted cy.get(".mx_Dialog").should("not.exist");