mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 09:28:26 +02:00
👷 Add e2e test to profile area
This commit is contained in:
parent
bc2a0432b9
commit
f185836fd4
31 changed files with 412 additions and 206 deletions
|
@ -15,7 +15,7 @@
|
|||
[rumext.alpha :as mf]))
|
||||
|
||||
(mf/defc banner
|
||||
[{:keys [type position status controls content actions on-close] :as props}]
|
||||
[{:keys [type position status controls content actions on-close data-test] :as props}]
|
||||
[:div.banner {:class (dom/classnames
|
||||
:warning (= type :warning)
|
||||
:error (= type :error)
|
||||
|
@ -34,7 +34,8 @@
|
|||
i/msg-error)]
|
||||
[:div.content {:class (dom/classnames
|
||||
:inline-actions (= controls :inline-actions)
|
||||
:bottom-actions (= controls :bottom-actions))}
|
||||
:bottom-actions (= controls :bottom-actions))
|
||||
:data-test data-test}
|
||||
content
|
||||
(when (or (= controls :bottom-actions) (= controls :inline-actions))
|
||||
[:div.actions
|
||||
|
@ -59,7 +60,7 @@
|
|||
|
||||
(mf/defc inline-banner
|
||||
{::mf/wrap [mf/memo]}
|
||||
[{:keys [type content on-close actions] :as props}]
|
||||
[{:keys [type content on-close actions data-test] :as props}]
|
||||
[:& banner {:type type
|
||||
:position :inline
|
||||
:status :visible
|
||||
|
@ -70,5 +71,6 @@
|
|||
:none))
|
||||
:content content
|
||||
:on-close on-close
|
||||
:actions actions}])
|
||||
:actions actions
|
||||
:data-test data-test}])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue