Playwright: Fix thread root skipped tests (#12067)

* Fix thread root skipped tests

* Add comment about collapsed content in `redactions.spec.ts`

---------

Co-authored-by: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
Florian Duros
2023-12-19 10:59:05 +01:00
committed by GitHub
parent 4c2efc3637
commit 537b4a1971
2 changed files with 15 additions and 6 deletions
+9
View File
@@ -370,6 +370,15 @@ class Helpers {
await this.app.viewRoomByName(typeof room === "string" ? room : room.name);
}
/**
* Expand the message with the supplied index in the timeline.
* @param index
*/
async openCollapsedMessage(index: number) {
const button = this.page.locator(".mx_GenericEventListSummary_toggle");
await button.nth(index).click();
}
/**
* Click the thread with the supplied content in the thread root to open it in
* the Threads panel.