mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 15:26:44 +02:00
✨ Refactor WorkspacePage so it has more semantic locators
This commit is contained in:
parent
7719cd8d0b
commit
f417445f31
3 changed files with 8 additions and 9 deletions
|
@ -40,16 +40,16 @@ test.describe("Assets tab", () => {
|
|||
await workspacePage.clickAssets();
|
||||
// Now the get-file call should return a library
|
||||
await workspacePage.mockRPC(/get\-file\?/, "workspace/get-file-library.json");
|
||||
await workspacePage.clickLibraries();
|
||||
await workspacePage.openLibrariesModal();
|
||||
await workspacePage.clickLibrary("Testing library 1");
|
||||
await workspacePage.clickCloseLibraries();
|
||||
await workspacePage.closeLibrariesModal();
|
||||
|
||||
await expect(workspacePage.palette.getByRole("button", { name: "test-color-187cd5" })).toBeVisible();
|
||||
|
||||
// Remove Testing library 1
|
||||
await workspacePage.clickLibraries();
|
||||
await workspacePage.openLibrariesModal();
|
||||
await workspacePage.clickLibrary("Testing library 1");
|
||||
await workspacePage.clickCloseLibraries();
|
||||
await workspacePage.closeLibrariesModal();
|
||||
|
||||
await expect(
|
||||
workspacePage.palette.getByText("There are no color styles in your library yet"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue