mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Target specific thread name to unflake redaction tests (#11662)
* Disambiguate thread root names to unflake redaction tests * Revert "Disambiguate thread root names to unflake redaction tests" This reverts commit f21ffa5554e7d49322acc8f8c1c1ef4063b9efdd. * Find thread root by text, not contains
This commit is contained in:
@@ -285,7 +285,9 @@ function findRoomByName(room: string): Chainable<Room> {
|
|||||||
export function openThread(rootMessage: string) {
|
export function openThread(rootMessage: string) {
|
||||||
cy.log("Open thread", rootMessage);
|
cy.log("Open thread", rootMessage);
|
||||||
cy.get(".mx_RoomView_body", { log: false }).within(() => {
|
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()
|
.realHover()
|
||||||
.findByRole("button", { name: "Reply in thread", log: false })
|
.findByRole("button", { name: "Reply in thread", log: false })
|
||||||
.click();
|
.click();
|
||||||
|
|||||||
Reference in New Issue
Block a user