mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
Merge pull request #4808 from penpot/ladybenko-fix-playwright-test-mac-shortcut
🐛 Fix playwright test mac shortcut
This commit is contained in:
commit
8c411e7727
9 changed files with 9 additions and 9 deletions
|
@ -58,7 +58,7 @@ export class DashboardPage extends BaseWebSocketPage {
|
|||
|
||||
this.sidebar = page.getByTestId("dashboard-sidebar");
|
||||
this.sidebarMenu = this.sidebar.getByRole("menu");
|
||||
this.mainHeading = page.getByRole("heading", { level: 1 });
|
||||
this.mainHeading = page.getByTestId("dashboard-header").getByRole("heading", { level: 1 });
|
||||
|
||||
this.addProjectButton = page.getByRole("button", { name: "+ NEW PROJECT" });
|
||||
this.projectName = page.getByText("Project 1");
|
||||
|
|
|
@ -50,7 +50,7 @@ test("User makes a group", async ({ page }) => {
|
|||
pageId: "6191cd35-bb1f-81f7-8004-7cc63d087375",
|
||||
});
|
||||
await workspacePage.clickLeafLayer("Rectangle");
|
||||
await workspacePage.page.keyboard.press("ControlOrMeta+g");
|
||||
await workspacePage.page.keyboard.press("Control+g");
|
||||
await workspacePage.expectSelectedLayer("Group");
|
||||
});
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
(dd/clear-selected-files))))]
|
||||
|
||||
|
||||
[:header {:class (stl/css :dashboard-header)}
|
||||
[:header {:class (stl/css :dashboard-header) :data-testid "dashboard-header"}
|
||||
(if (:is-default project)
|
||||
[:div#dashboard-drafts-title {:class (stl/css :dashboard-title)}
|
||||
[:h1 (tr "labels.drafts")]]
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
::mf/private true}
|
||||
[{:keys [section team]}]
|
||||
(use-page-title team section)
|
||||
[:header {:class (stl/css :dashboard-header)}
|
||||
[:header {:class (stl/css :dashboard-header) :data-testid "dashboard-header"}
|
||||
[:div#dashboard-fonts-title {:class (stl/css :dashboard-title)}
|
||||
[:h1 (tr "labels.fonts")]]])
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
(dd/clear-selected-files)))
|
||||
|
||||
[:*
|
||||
[:header {:class (stl/css :dashboard-header)}
|
||||
[:header {:class (stl/css :dashboard-header) :data-testid "dashboard-header"}
|
||||
[:div#dashboard-libraries-title {:class (stl/css :dashboard-title)}
|
||||
[:h1 (tr "dashboard.libraries-title")]]]
|
||||
[:section {:class (stl/css :dashboard-container :no-bg :dashboard-shared) :ref rowref}
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
{::mf/wrap [mf/memo]}
|
||||
[]
|
||||
(let [on-click (mf/use-fn #(st/emit! (dd/create-project)))]
|
||||
[:header {:class (stl/css :dashboard-header)}
|
||||
[:header {:class (stl/css :dashboard-header) :data-testid "dashboard-header"}
|
||||
[:div#dashboard-projects-title {:class (stl/css :dashboard-title)}
|
||||
[:h1 (tr "dashboard.projects-title")]]
|
||||
[:button {:class (stl/css :btn-secondary :btn-small)
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
(st/emit! (dd/search {:search-term search-term})
|
||||
(dd/clear-selected-files))))
|
||||
[:*
|
||||
[:header {:class (stl/css :dashboard-header)}
|
||||
[:header {:class (stl/css :dashboard-header) :data-testid "dashboard-header"}
|
||||
[:div#dashboard-search-title {:class (stl/css :dashboard-title)}
|
||||
[:h1 (tr "dashboard.title-search")]]]
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
:team team
|
||||
:origin :team}))))]
|
||||
|
||||
[:header {:class (stl/css :dashboard-header :team)}
|
||||
[:header {:class (stl/css :dashboard-header :team) :data-testid "dashboard-header"}
|
||||
[:div {:class (stl/css :dashboard-title)}
|
||||
[:h1 (cond
|
||||
members-section? (tr "labels.members")
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
(mf/defc header
|
||||
{::mf/wrap [mf/memo]}
|
||||
[]
|
||||
[:header {:class (stl/css :dashboard-header)}
|
||||
[:header {:class (stl/css :dashboard-header) :data-testid "dashboard-header"}
|
||||
[:div {:class (stl/css :dashboard-title)}
|
||||
[:h1 {:data-testid "account-title"} (tr "dashboard.your-account-title")]]])
|
||||
|
||||
|
|
Loading…
Reference in a new issue