From d92273957d75f357b819167737f9fe765b94d472 Mon Sep 17 00:00:00 2001 From: Kerry Date: Wed, 18 Oct 2023 22:14:01 +1300 Subject: [PATCH] try to stabilise Configured room on IRC layout snapshot (#11769) --- cypress/e2e/timeline/timeline.spec.ts | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/cypress/e2e/timeline/timeline.spec.ts b/cypress/e2e/timeline/timeline.spec.ts index 3d83a61b5a..58ad8103dc 100644 --- a/cypress/e2e/timeline/timeline.spec.ts +++ b/cypress/e2e/timeline/timeline.spec.ts @@ -163,23 +163,8 @@ describe("Timeline", () => { .should("exist"); }); - cy.get(".mx_IRCLayout").within(() => { - // Check room name line-height is reset - cy.get(".mx_NewRoomIntro h2").should("have.css", "line-height", "normal"); - - // Check the profile resizer's place - // See: _IRCLayout - // --RoomView_MessageList-padding = 18px (See: _RoomView.pcss) - // --MessageTimestamp-width = 46px (See: _MessageTimestamp.pcss) - // --icon-width = 14px - // --right-padding = 5px - // --name-width = 80px - // --resizer-width = 15px - // --resizer-a11y = 3px - // 18px + 46px + 14px + 5px + 80px + 5px - 15px - 3px - // = 150px - cy.get(".mx_ProfileResizer").should("have.css", "inset-inline-start", "150px"); - }); + // wait for the date separator to appear to have a stable percy snapshot + cy.get(".mx_TimelineSeparator").should("have.text", "today"); cy.get(".mx_MainSplit").percySnapshotElement("Configured room on IRC layout"); });