mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 18:16:37 +02:00
🐛 Workspace-palette items stay hidden when opening with keyboard-shortcut
This commit is contained in:
parent
599bc8dbe7
commit
0d23f4ab5d
6 changed files with 39 additions and 11 deletions
|
@ -53,6 +53,7 @@ export class WorkspacePage extends BaseWebSocketPage {
|
|||
this.selectionRect = page.getByTestId("workspace-selection-rect");
|
||||
this.horizontalScrollbar = page.getByTestId("horizontal-scrollbar");
|
||||
this.librariesModal = page.getByTestId("libraries-modal");
|
||||
this.togglePalettesVisibility = page.getByTestId("toggle-palettes-visibility");
|
||||
}
|
||||
|
||||
async goToWorkspace({ fileId = WorkspacePage.anyFileId, pageId = WorkspacePage.anyPageId } = {}) {
|
||||
|
@ -173,4 +174,9 @@ export class WorkspacePage extends BaseWebSocketPage {
|
|||
.getByRole("button", { name: "Color Palette (Alt+P)" })
|
||||
.click(clickOptions);
|
||||
}
|
||||
|
||||
async clickTogglePalettesVisibility(clickOptions = {}) {
|
||||
await this.togglePalettesVisibility
|
||||
.click(clickOptions);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue