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

Commit

Permalink
Target specific thread name to unflake redaction tests (#11662)
Browse files Browse the repository at this point in the history
* Disambiguate thread root names to unflake redaction tests

* Revert "Disambiguate thread root names to unflake redaction tests"

This reverts commit f21ffa5.

* Find thread root by text, not contains
  • Loading branch information
andybalaam committed Sep 28, 2023
1 parent e0f4b26 commit 58afa90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/read-receipts/read-receipts-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ function findRoomByName(room: string): Chainable<Room> {
export function openThread(rootMessage: string) {
cy.log("Open thread", rootMessage);
cy.get(".mx_RoomView_body", { log: false }).within(() => {
cy.contains(".mx_EventTile[data-scroll-tokens]", rootMessage, { log: false })
cy.findAllByText(rootMessage)
.filter(".mx_EventTile_body")
.parents(".mx_EventTile[data-scroll-tokens]")
.realHover()
.findByRole("button", { name: "Reply in thread", log: false })
.click();
Expand Down

0 comments on commit 58afa90

Please sign in to comment.