File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
common/floating_button_page
contexts/wallet/add_account/add_address_to_watch Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 3
3
[status-im.common.floating-button-page.view :as floating-button-page]
4
4
[test-helpers.component :as h]))
5
5
6
+
7
+ (def sub-mocks {:alert-banners/top-margin 0 })
8
+
6
9
(h/describe " floating button page"
7
10
(h/test " renders with a header and standard button"
11
+ (h/setup-subs sub-mocks)
8
12
(h/render [floating-button-page/view
9
13
{:header [quo/page-nav
10
14
{:type :title-description
18
22
(h/is-truthy (h/get-by-text " floating button page" )))
19
23
20
24
(h/test " renders with a header and a slide button"
25
+ (h/setup-subs sub-mocks)
21
26
(h/render [floating-button-page/view
22
27
{:header [quo/page-nav
23
28
{:type :title-description
Original file line number Diff line number Diff line change 12
12
(h/setup-subs {:wallet/scanned-address nil
13
13
:wallet/addresses #{" 0x12E838Ae1f769147b12956485dc56e57138f3AC8"
14
14
" 0x22E838Ae1f769147b12956485dc56e57138f3AC8" }
15
+ :alert-banners/top-margin 0
15
16
:wallet/watch-address-activity-state nil
16
17
:profile/customization-color :blue })))
17
18
Original file line number Diff line number Diff line change 8
8
9
9
(h/test " Create Account button is disabled while no account name exists"
10
10
(h/setup-subs {:wallet/watch-only-accounts []
11
+ :alert-banners/top-margin 0
11
12
:get-screen-params {:address " 0xmock-address" }})
12
13
(h/render [confirm-address/view])
13
14
(h/is-truthy (h/get-by-text " 0xmock-address" ))
You can’t perform that action at this time.
0 commit comments