mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Update file-panel.spec.ts to take a snapshot of the empty file panel (#10814)
This commit is contained in:
parent
53fcb0c36e
commit
56f694620c
@ -70,6 +70,16 @@ describe("FilePanel", () => {
|
||||
});
|
||||
|
||||
describe("render", () => {
|
||||
it("should render empty state", () => {
|
||||
// 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", {
|
||||
widths: [264], // Emulate the UI. The value is based on minWidth specified on MainSplit.tsx
|
||||
});
|
||||
});
|
||||
|
||||
it("should list tiles on the panel", () => {
|
||||
// Upload multiple files
|
||||
uploadFile("cypress/fixtures/riot.png"); // Image
|
||||
|
Loading…
Reference in New Issue
Block a user