0
Fork 0
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:
Alejandro 2024-06-27 07:48:36 +02:00 committed by GitHub
commit 8c411e7727
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 9 additions and 9 deletions

View file

@ -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");

View file

@ -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");
});

View file

@ -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")]]

View file

@ -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")]]])

View file

@ -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}

View file

@ -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)

View file

@ -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")]]]

View file

@ -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")

View file

@ -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")]]])