mirror of
https://github.com/penpot/penpot.git
synced 2025-06-24 21:27:01 +02:00
🐛 Fix layers tree not expanding towards the bottom edge
This commit is contained in:
parent
00f7ea2b56
commit
04f341ce1d
9 changed files with 57 additions and 25 deletions
|
@ -44,8 +44,11 @@ test("User adds a library and its automatically selected in the color palette",
|
|||
await workspacePage.setupEmptyFile();
|
||||
await workspacePage.mockRPC("link-file-to-library", "workspace/link-file-to-library.json");
|
||||
await workspacePage.mockRPC("unlink-file-from-library", "workspace/unlink-file-from-library.json");
|
||||
await workspacePage.mockRPC("get-team-shared-files?team-id=*", "workspace/get-team-shared-libraries-non-empty.json");
|
||||
|
||||
await workspacePage.mockRPC(
|
||||
"get-team-shared-files?team-id=*",
|
||||
"workspace/get-team-shared-libraries-non-empty.json",
|
||||
);
|
||||
|
||||
await workspacePage.goToWorkspace();
|
||||
|
||||
// Add Testing library 1
|
||||
|
@ -54,17 +57,19 @@ test("User adds a library and its automatically selected in the color palette",
|
|||
// Now the get-file call should return a library
|
||||
await workspacePage.mockRPC(/get\-file\?/, "workspace/get-file-library.json");
|
||||
await workspacePage.clickLibraries();
|
||||
await workspacePage.clickLibrary("Testing library 1")
|
||||
await workspacePage.clickCloseLibraries();
|
||||
await workspacePage.clickLibrary("Testing library 1");
|
||||
await workspacePage.clickCloseLibraries();
|
||||
|
||||
await expect(workspacePage.palette.getByRole("button", { name: "test-color-187cd5" })).toBeVisible();
|
||||
|
||||
// Remove Testing library 1
|
||||
await workspacePage.clickLibraries();
|
||||
await workspacePage.clickLibrary("Testing library 1")
|
||||
await workspacePage.clickLibrary("Testing library 1");
|
||||
await workspacePage.clickCloseLibraries();
|
||||
|
||||
await expect(workspacePage.palette.getByText('There are no color styles in your library yet')).toBeVisible();
|
||||
await expect(
|
||||
workspacePage.palette.getByText("There are no color styles in your library yet"),
|
||||
).toBeVisible();
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue