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

Commit

Permalink
try to stabilise Configured room on IRC layout snapshot (#11769)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry authored Oct 18, 2023
1 parent ea19aa1 commit d922739
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions cypress/e2e/timeline/timeline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down

0 comments on commit d922739

Please sign in to comment.