Skip to content

Commit

Permalink
fix component-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull committed Apr 24, 2024
1 parent c53ce23 commit cd73cdb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/status_im/common/floating_button_page/component_spec.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
[status-im.common.floating-button-page.view :as floating-button-page]
[test-helpers.component :as h]))


(def sub-mocks {:alert-banners/top-margin 0})

(h/describe "floating button page"
(h/test "renders with a header and standard button"
(h/setup-subs sub-mocks)
(h/render [floating-button-page/view
{:header [quo/page-nav
{:type :title-description
Expand All @@ -18,6 +22,7 @@
(h/is-truthy (h/get-by-text "floating button page")))

(h/test "renders with a header and a slide button"
(h/setup-subs sub-mocks)
(h/render [floating-button-page/view
{:header [quo/page-nav
{:type :title-description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
(h/setup-subs {:wallet/scanned-address nil
:wallet/addresses #{"0x12E838Ae1f769147b12956485dc56e57138f3AC8"
"0x22E838Ae1f769147b12956485dc56e57138f3AC8"}
:alert-banners/top-margin 0
:wallet/watch-address-activity-state nil
:profile/customization-color :blue})))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

(h/test "Create Account button is disabled while no account name exists"
(h/setup-subs {:wallet/watch-only-accounts []
:alert-banners/top-margin 0
:get-screen-params {:address "0xmock-address"}})
(h/render [confirm-address/view])
(h/is-truthy (h/get-by-text "0xmock-address"))
Expand Down

0 comments on commit cd73cdb

Please sign in to comment.