Merge pull request #4799 from penpot/ladybenko-fix-visual-regression-tests

Fix broken visual regression test + refactor Dashboard POM
This commit is contained in:
Alejandro 2024-06-26 07:01:49 +02:00 committed by GitHub
commit 4437fc43e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 48 additions and 57 deletions

View file

@ -786,7 +786,6 @@
[:li {:class (stl/css-case :current drafts?
:sidebar-nav-item true)}
[:& link {:action go-drafts
:data-testid "drafts-link-sidebar"
:class (stl/css :sidebar-link)
:keyboard-action go-drafts-with-key}
[:span {:class (stl/css :element-title)} (tr "labels.drafts")]]]
@ -1052,7 +1051,7 @@
[props]
(let [team (obj/get props "team")
profile (obj/get props "profile")]
[:nav {:class (stl/css :dashboard-sidebar)}
[:nav {:class (stl/css :dashboard-sidebar) :data-testid "dashboard-sidebar"}
[:> sidebar-content props]
[:& profile-section
{:profile profile