mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 14:56:39 +02:00
✨ Add e2e tests for fix color palette default library
This commit is contained in:
parent
67e1081f11
commit
c15c3b14ee
4 changed files with 38 additions and 2 deletions
|
@ -50,9 +50,9 @@ export class WorkspacePage extends BaseWebSocketPage {
|
|||
this.layers = page.getByTestId("layer-tree");
|
||||
this.palette = page.getByTestId("palette");
|
||||
this.sidebar = page.getByTestId("left-sidebar");
|
||||
this.librariesModal = page.getByTestId("libraries-modal");
|
||||
this.selectionRect = page.getByTestId("workspace-selection-rect");
|
||||
this.horizontalScrollbar = page.getByTestId("horizontal-scrollbar");
|
||||
this.librariesModal = page.getByTestId("libraries-modal");
|
||||
}
|
||||
|
||||
async goToWorkspace({ fileId = WorkspacePage.anyFileId, pageId = WorkspacePage.anyPageId } = {}) {
|
||||
|
@ -160,4 +160,10 @@ export class WorkspacePage extends BaseWebSocketPage {
|
|||
async clickColorPalette(clickOptions = {}) {
|
||||
await this.palette.getByRole("button", { name: "Color Palette (Alt+P)" }).click(clickOptions);
|
||||
}
|
||||
|
||||
async clickColorPalette(clickOptions = {}) {
|
||||
await this.palette
|
||||
.getByRole("button", { name: "Color Palette (Alt+P)" })
|
||||
.click(clickOptions);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue