Fix snapshot File Panel - empty (#10855)

This commit is contained in:
Suguru Hirahara 2023-05-11 09:25:28 +00:00 committed by GitHub
parent 949557b5c6
commit eac548c25a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
});
});