From eac548c25a0a2046472dfb069ec12c5f1e1a48f8 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 11 May 2023 09:25:28 +0000 Subject: [PATCH] Fix snapshot `File Panel - empty` (#10855) --- cypress/e2e/right-panel/file-panel.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/right-panel/file-panel.spec.ts b/cypress/e2e/right-panel/file-panel.spec.ts index ffffac2950..b300a8e138 100644 --- a/cypress/e2e/right-panel/file-panel.spec.ts +++ b/cypress/e2e/right-panel/file-panel.spec.ts @@ -74,8 +74,8 @@ describe("FilePanel", () => { // Wait until the information about the empty state is rendered cy.get(".mx_FilePanel_empty").should("exist"); - // Take a snapshot of empty FilePanel - cy.get(".mx_FilePanel").percySnapshotElement("File Panel - empty", { + // Take a snapshot of RightPanel - fix https://github.com/vector-im/element-web/issues/25332 + cy.get(".mx_RightPanel").percySnapshotElement("File Panel - empty", { widths: [264], // Emulate the UI. The value is based on minWidth specified on MainSplit.tsx }); });