Merge branch 'develop' into andybalaam/fix-receipt-flakes

This commit is contained in:
Andy Balaam 2023-09-28 14:23:45 +01:00 committed by GitHub
commit d7d0f54e9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
184 changed files with 14091 additions and 12814 deletions

View file

@ -293,7 +293,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();