-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into qr-scanner
- Loading branch information
Showing
7 changed files
with
46 additions
and
23 deletions.
There are no files selected for viewing
18 changes: 6 additions & 12 deletions
18
src/status_im/contexts/wallet/add_address_to_watch/confirm_address/component_spec.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
(ns status-im.contexts.wallet.add-address-to-watch.confirm-address.component-spec | ||
(:require | ||
[status-im.contexts.wallet.add-address-to-watch.confirm-address.view :as confirm-address] | ||
[test-helpers.component :as h] | ||
[utils.re-frame :as rf])) | ||
[test-helpers.component :as h])) | ||
|
||
(h/describe "Add Watch Only Account Page" | ||
(h/setup-restorable-re-frame) | ||
|
||
(h/test "Create Account button is disabled while no account name exists" | ||
(let [callback (h/mock-fn)] | ||
(with-redefs [rf/dispatch #(callback)] | ||
(h/setup-subs {:profile/wallet-accounts [] | ||
:get-screen-params {:address "0xmock-address"}}) | ||
(h/render [confirm-address/view {}]) | ||
(h/is-truthy (h/get-by-text "0xmock-address")) | ||
(h/was-not-called callback) | ||
(h/fire-event :change-text (h/get-by-label-text :profile-title-input) "NAME") | ||
(h/fire-event :press (h/get-by-translation-text :t/add-watched-address)) | ||
(h/was-called callback))))) | ||
(h/setup-subs {:wallet/watch-only-accounts [] | ||
:get-screen-params {:address "0xmock-address"}}) | ||
(h/render [confirm-address/view]) | ||
(h/is-truthy (h/get-by-text "0xmock-address")) | ||
(h/is-disabled (h/get-by-label-text :confirm-button-label)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters