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

Commit

Permalink
Assert that the thread is unread after an edit (#11504)
Browse files Browse the repository at this point in the history
* Expand a thread reply test to be more explicit

* Add an assertion that the thread is read after I read it

* Assert that the thread is unread after an edit
  • Loading branch information
andybalaam authored Sep 12, 2023
1 parent d00ba74 commit b1f455e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cypress/e2e/read-receipts/high-level.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ describe("Read receipts", () => {
});
}

function backToThreadsList() {
cy.log("Back to threads list");
cy.get(".mx_RightPanel").findByTitle("Threads").click();
}

/**
* Find and display a message.
*
Expand Down Expand Up @@ -391,11 +396,6 @@ describe("Read receipts", () => {
});
}

function backToThreadsList() {
cy.log("Back to threads list");
cy.get(".mx_RightPanel").findByTitle("Threads").click();
}

function openThreadList() {
cy.log("Open threads list");
cy.findByTestId("threadsButton", { log: false }).then(($button) => {
Expand Down Expand Up @@ -1000,6 +1000,7 @@ describe("Read receipts", () => {
goTo(room2);
openThread("Msg1");
assertRead(room2);
backToThreadsList();
goTo(room1);

// When a message inside it is edited
Expand Down

0 comments on commit b1f455e

Please sign in to comment.