👷 Add e2e test to profile area

This commit is contained in:
Eva 2022-01-25 16:56:46 +01:00
parent bc2a0432b9
commit f185836fd4
31 changed files with 412 additions and 206 deletions

View file

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