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

Assert that the thread is unread after an edit #11504

Merged
merged 4 commits into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading