0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-19 19:21:23 -05:00

🐛 Fix onboarding playwright test on CI mode

This commit is contained in:
Belén Albeza 2024-06-26 17:01:58 +02:00
parent 4ed6e1e8ec
commit f306ddb51f
8 changed files with 8 additions and 8 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

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