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

Commit a457fd0

Browse files
committed
Assert that the edited message is gone
Signed-off-by: Suguru Hirahara <[email protected]>
1 parent 77db44c commit a457fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypress/e2e/editing/editing.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ describe("Editing", () => {
189189
cy.get("h2").should("have.text", "Today");
190190
});
191191

192-
// Assert that the original message is rendered on the dialog
192+
// Assert that the original message is rendered under the date on the dialog
193193
cy.get("li:nth-child(2) .mx_EventTile").within(() => {
194194
cy.get(".mx_EventTile_content .mx_EventTile_body").should("have.text", "Message");
195195
});
196196

197197
// Assert that the edited message is gone
198-
cy.get("li:nth-child(3) .mx_EventTile").should("not.exist");
198+
cy.contains(".mx_EventTile_content .mx_EventTile_body", "Meassage").should("not.exist");
199199

200200
// Close the dialog
201201
cy.get("[aria-label='Close dialog']").click();

0 commit comments

Comments
 (0)