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

Commit

Permalink
Edit snapshot widths settings
Browse files Browse the repository at this point in the history
Signed-off-by: Suguru Hirahara <[email protected]>
  • Loading branch information
luixxiul committed Apr 28, 2023
1 parent 5f3b148 commit 2922c66
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions cypress/e2e/room/room-header.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ describe("Room Header", () => {
cy.findByRole("button", { name: "Room info" }).should("be.visible");
});

cy.get(".mx_RoomHeader").percySnapshotElement("Room header", {
widths: [300, 600], // Magic numbers
});
cy.get(".mx_RoomHeader").percySnapshotElement("Room header");
});

it("should render the pin button for pinned messages card", () => {
Expand Down Expand Up @@ -100,7 +98,7 @@ describe("Room Header", () => {
});

cy.get(".mx_RoomHeader").percySnapshotElement("Room header - with a long room name", {
widths: [300, 600], // Magic numbers
widths: [300, 600], // Magic numbers to emulate the narrow RoomHeader on the actual UI
});
});

Expand All @@ -119,9 +117,7 @@ describe("Room Header", () => {
expect(color).to.eq("rgb(13, 189, 139)");
});

cy.get(".mx_RoomHeader").percySnapshotElement("Room header - with a highlighted button", {
widths: [300, 600], // Magic numbers
});
cy.get(".mx_RoomHeader").percySnapshotElement("Room header - with a highlighted button");
});

describe("with a video room", () => {
Expand Down Expand Up @@ -158,9 +154,7 @@ describe("Room Header", () => {
cy.findAllByRole("button").should("have.length", 5);
});

cy.get(".mx_RoomHeader").percySnapshotElement("Room header - with a video room", {
widths: [300, 600], // Magic numbers
});
cy.get(".mx_RoomHeader").percySnapshotElement("Room header - with a video room");
});

it("should render a working chat button which opens the timeline on a right panel", () => {
Expand Down

0 comments on commit 2922c66

Please sign in to comment.