Skip to content

Commit cd73cdb

Browse files
committed
fix component-tests
1 parent c53ce23 commit cd73cdb

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/status_im/common/floating_button_page/component_spec.cljs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
[status-im.common.floating-button-page.view :as floating-button-page]
44
[test-helpers.component :as h]))
55

6+
7+
(def sub-mocks {:alert-banners/top-margin 0})
8+
69
(h/describe "floating button page"
710
(h/test "renders with a header and standard button"
11+
(h/setup-subs sub-mocks)
812
(h/render [floating-button-page/view
913
{:header [quo/page-nav
1014
{:type :title-description
@@ -18,6 +22,7 @@
1822
(h/is-truthy (h/get-by-text "floating button page")))
1923

2024
(h/test "renders with a header and a slide button"
25+
(h/setup-subs sub-mocks)
2126
(h/render [floating-button-page/view
2227
{:header [quo/page-nav
2328
{:type :title-description

src/status_im/contexts/wallet/add_account/add_address_to_watch/component_spec.cljs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
(h/setup-subs {:wallet/scanned-address nil
1313
:wallet/addresses #{"0x12E838Ae1f769147b12956485dc56e57138f3AC8"
1414
"0x22E838Ae1f769147b12956485dc56e57138f3AC8"}
15+
:alert-banners/top-margin 0
1516
:wallet/watch-address-activity-state nil
1617
:profile/customization-color :blue})))
1718

src/status_im/contexts/wallet/add_account/add_address_to_watch/confirm_address/component_spec.cljs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

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

0 commit comments

Comments
 (0)