Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#8026] [Wallet] Signing transaction #8361

Merged
merged 3 commits into from
Jun 12, 2019
Merged

Conversation

flexsurfer
Copy link
Member

@flexsurfer flexsurfer commented Jun 5, 2019

fixes #8026

image

The new method is introduced for signing transactions signing/sign

https://github.com/status-im/status-react/pull/8361/files#diff-598cee30285d1d51df0def4398019d98R234

(fx/defn sign [{:keys [db] :as cofx} tx]
  "Signing transaction or message, shows signing sheet
   tx
   {:tx-obj - transaction object to send https://github.com/ethereum/wiki/wiki/JavaScript-API#parameters-25
    :message {:address  :data  :typed? } - message data to sign
    :on-result - re-frame event vector
    :on-error - re-frame event vector}"
  (fx/merge cofx
            {:db (update db :signing/queue conj tx)}
            (check-queue)))

Usage

(signing/sign cofx {:tx-obj     {:to  to  :value amount-hex}
                    :on-result [:success-event]})))) 

FOR QA and Design teams:
this PR doesn't include:

  • USD values (3) [Wallet] Show values in the user's currency #8027
  • emoji [GHI]
  • sign with passcode [GHI]
  • select wallet [GHI]
  • sent popup design [GHI]
  • fee slider [GHI]
  • to field details [GHI]
  • approveAndCall detection (showing token amount) [GHI]
  • prompts for signing phrase, gas and gas price [GHI]

FOR QA:
we had default gas 105000 for tokens, in current implementation we rely on gas estimation by the network, but sometimes it fails and we'll show error tooltip for gas in that case, also we need to verify that gas estimation works properly

TESTED:

  • sending eth or token from chat
  • sending eth or token from dapp
  • sending eth or token from wallet
  • buying stickers
  • deploy contract from dapp
  • sign message from dapp
  • sign typed message from dapp
  • change gas and gas price
  • request stt in simpledapp

NOT TESTED:
-sending real eth or snt

CONCERNS:

  • gas estimation may work wrong
  • gas estimation may fail, in that case error will be shown and user must enter it manually

@flexsurfer flexsurfer requested review from antdanchenko, churik and a team as code owners June 5, 2019 11:13
@flexsurfer flexsurfer requested a review from a team June 5, 2019 11:13
@flexsurfer flexsurfer self-assigned this Jun 5, 2019
@status-github-bot
Copy link

Pull Request Checklist

  • Have you updated the documentation, if impacted (e.g. docs.status.im)?

@flexsurfer flexsurfer removed request for a team, churik and antdanchenko June 5, 2019 11:13
@status-im-auto
Copy link
Member

status-im-auto commented Jun 5, 2019

Jenkins Builds

Click to see older builds (108)
Commit #️⃣ Finished (UTC) Duration Platform Result
50f8baf #1 2019-06-05 11:14:36 ~59 sec android 📄 log
50f8baf #1 2019-06-05 11:14:36 ~1 min android-e2e 📄 log
50f8baf #1 2019-06-05 11:14:41 ~1 min ios 📄 log
50f8baf #1 2019-06-05 11:14:49 ~1 min windows 📄 log
50f8baf #1 2019-06-05 11:14:49 ~1 min linux 📄 log
50f8baf #1 2019-06-05 11:14:49 ~1 min macos 📄 log
7f0c6bd #2 2019-06-05 11:44:16 ~4 min ios 📄 log
7f0c6bd #2 2019-06-05 11:44:26 ~4 min macos 📄 log
7f0c6bd #2 2019-06-05 11:44:54 ~5 min linux 📄 log
7f0c6bd #2 2019-06-05 11:45:10 ~5 min windows 📄 log
7f0c6bd #2 2019-06-05 11:48:29 ~8 min android 📄 log
7f0c6bd #2 2019-06-05 11:48:32 ~8 min android-e2e 📄 log
325d259 #3 2019-06-05 12:42:04 ~3 min ios 📄 log
325d259 #3 2019-06-05 12:42:37 ~3 min linux 📄 log
325d259 #3 2019-06-05 12:42:40 ~3 min macos 📄 log
325d259 #3 2019-06-05 12:42:45 ~3 min windows 📄 log
325d259 #3 2019-06-05 12:46:31 ~7 min android-e2e 📄 log
325d259 #3 2019-06-05 12:46:33 ~7 min android 📄 log
5dffd23 #4 2019-06-05 13:17:35 ~4 min windows 📄 log
5dffd23 #4 2019-06-05 13:17:49 ~4 min macos 📄 log
5dffd23 #4 2019-06-05 13:17:57 ~4 min ios 📄 log
5dffd23 #4 2019-06-05 13:19:57 ~6 min linux 📄 log
5dffd23 #4 2019-06-05 13:20:43 ~7 min android-e2e 📄 log
5dffd23 #4 2019-06-05 13:21:58 ~8 min android 📄 log
7029997 #5 2019-06-05 13:56:09 ~4 min ios 📄 log
7029997 #5 2019-06-05 13:56:38 ~4 min windows 📄 log
7029997 #5 2019-06-05 13:56:55 ~4 min macos 📄 log
7029997 #5 2019-06-05 13:57:27 ~5 min linux 📄 log
7029997 #5 2019-06-05 14:00:42 ~8 min android-e2e 📄 log
7029997 #5 2019-06-05 14:00:48 ~8 min android 📄 log
✔️ b02f8de #6 2019-06-06 09:07:07 ~14 min ios 📦 ipa
✔️ b02f8de #6 2019-06-06 09:08:28 ~16 min android 📦 apk
✔️ b02f8de #6 2019-06-06 09:09:14 ~16 min macos 📦 dmg
✔️ b02f8de #6 2019-06-06 09:11:42 ~19 min android-e2e 📦 apk
✔️ b02f8de #6 2019-06-06 09:13:51 ~21 min linux 📦 App
✔️ b02f8de #6 2019-06-06 09:15:27 ~22 min windows 📦 exe
adda0fb #7 2019-06-06 16:08:30 ~4 min ios 📄 log
adda0fb #7 2019-06-06 16:09:52 ~5 min windows 📄 log
adda0fb #7 2019-06-06 16:10:28 ~5 min macos 📄 log
adda0fb #7 2019-06-06 16:10:51 ~6 min linux 📄 log
adda0fb #7 2019-06-06 16:12:06 ~7 min android 📄 log
adda0fb #7 2019-06-06 16:13:05 ~8 min android-e2e 📄 log
✔️ 1e652ac #8 2019-06-07 07:57:42 ~14 min ios 📦 ipa
✔️ 1e652ac #8 2019-06-07 07:59:05 ~16 min android 📦 apk
✔️ 1e652ac #8 2019-06-07 07:59:14 ~16 min android-e2e 📦 apk
✔️ 1e652ac #8 2019-06-07 07:59:48 ~16 min macos 📦 dmg
✔️ 1e652ac #8 2019-06-07 08:00:50 ~17 min linux 📦 App
✔️ 1e652ac #8 2019-06-07 08:01:04 ~18 min windows 📦 exe
✔️ 401969d #9 2019-06-07 12:12:22 ~14 min ios 📦 ipa
401969d #9 2019-06-07 12:12:28 ~14 min windows 📄 log
✔️ 401969d #9 2019-06-07 12:14:07 ~16 min android 📦 apk
✔️ 401969d #9 2019-06-07 12:14:14 ~16 min android-e2e 📦 apk
✔️ 401969d #9 2019-06-07 12:15:07 ~17 min linux 📦 App
✔️ 401969d #9 2019-06-07 12:15:26 ~17 min macos 📦 dmg
✔️ 0b8b75b #10 2019-06-10 14:07:10 ~13 min android-e2e 📦 apk
✔️ 0b8b75b #10 2019-06-10 14:07:53 ~13 min ios 📦 ipa
✔️ 0b8b75b #10 2019-06-10 14:09:11 ~14 min macos 📦 dmg
✔️ 0b8b75b #10 2019-06-10 14:09:51 ~15 min android 📦 apk
✔️ 0b8b75b #10 2019-06-10 14:10:38 ~16 min windows 📦 exe
✔️ 0b8b75b #10 2019-06-10 14:12:07 ~17 min linux 📦 App
742043f #11 2019-06-10 15:42:47 ~3 min macos 📄 log
742043f #11 2019-06-10 15:43:02 ~3 min ios 📄 log
742043f #11 2019-06-10 15:43:04 ~3 min linux 📄 log
742043f #11 2019-06-10 15:43:08 ~3 min windows 📄 log
742043f #11 2019-06-10 15:47:04 ~7 min android 📄 log
742043f #11 2019-06-10 15:47:08 ~7 min android-e2e 📄 log
742043f #12 2019-06-11 06:46:17 ~3 min ios 📄 log
742043f #12 2019-06-11 06:46:23 ~3 min linux 📄 log
742043f #12 2019-06-11 06:46:37 ~3 min macos 📄 log
742043f #12 2019-06-11 06:47:03 ~3 min windows 📄 log
742043f #12 2019-06-11 06:49:42 ~7 min android 📄 log
742043f #12 2019-06-11 06:49:56 ~7 min android-e2e 📄 log
✔️ d43251f #13 2019-06-11 07:37:28 ~12 min ios 📦 ipa
✔️ d43251f #13 2019-06-11 07:39:40 ~14 min linux 📦 App
✔️ d43251f #13 2019-06-11 07:39:48 ~14 min android 📦 apk
✔️ d43251f #13 2019-06-11 07:39:51 ~14 min windows 📦 exe
✔️ d43251f #13 2019-06-11 07:40:17 ~15 min android-e2e 📦 apk
✔️ d43251f #13 2019-06-11 07:41:09 ~16 min macos 📦 dmg
✔️ 1b3a73a #14 2019-06-11 13:45:24 ~11 min macos 📦 dmg
✔️ 1b3a73a #14 2019-06-11 13:45:57 ~11 min ios 📦 ipa
✔️ 1b3a73a #14 2019-06-11 13:47:42 ~13 min android 📦 apk
✔️ 1b3a73a #14 2019-06-11 13:48:15 ~14 min android-e2e 📦 apk
✔️ 1b3a73a #14 2019-06-11 13:49:19 ~15 min linux 📦 App
✔️ 1b3a73a #14 2019-06-11 13:49:37 ~15 min windows 📦 exe
✔️ 1411eee #15 2019-06-12 08:51:25 ~12 min macos 📦 dmg
✔️ 1411eee #15 2019-06-12 08:51:25 ~12 min ios 📦 ipa
✔️ 1411eee #15 2019-06-12 08:53:09 ~13 min linux 📦 App
✔️ 1411eee #15 2019-06-12 08:53:17 ~14 min android 📦 apk
✔️ 1411eee #15 2019-06-12 08:53:26 ~14 min windows 📦 exe
✔️ 1411eee #15 2019-06-12 08:53:32 ~14 min android-e2e 📦 apk
✔️ cb737bd #16 2019-06-12 09:20:53 ~10 min ios 📦 ipa
✔️ cb737bd #16 2019-06-12 09:21:03 ~10 min macos 📦 dmg
✔️ cb737bd #16 2019-06-12 09:23:46 ~13 min android 📦 apk
✔️ cb737bd #16 2019-06-12 09:24:04 ~13 min android-e2e 📦 apk
✔️ cb737bd #16 2019-06-12 09:25:24 ~15 min linux 📦 App
✔️ cb737bd #16 2019-06-12 09:25:40 ~15 min windows 📦 exe
✔️ 5a6e726 #17 2019-06-12 10:16:23 ~10 min ios 📦 ipa
✔️ 5a6e726 #17 2019-06-12 10:17:25 ~11 min macos 📦 dmg
✔️ 5a6e726 #17 2019-06-12 10:19:15 ~13 min windows 📦 exe
✔️ 5a6e726 #17 2019-06-12 10:19:18 ~13 min linux 📦 App
✔️ 5a6e726 #17 2019-06-12 10:19:18 ~13 min android 📦 apk
✔️ 5a6e726 #17 2019-06-12 10:19:42 ~13 min android-e2e 📦 apk
✔️ 17ad9c4 #18 2019-06-12 10:44:56 ~11 min ios 📦 ipa
✔️ 17ad9c4 #18 2019-06-12 10:45:08 ~11 min linux 📦 App
✔️ 17ad9c4 #18 2019-06-12 10:46:27 ~13 min macos 📦 dmg
✔️ 17ad9c4 #18 2019-06-12 10:47:22 ~14 min android-e2e 📦 apk
✔️ 17ad9c4 #18 2019-06-12 10:47:22 ~14 min android 📦 apk
✔️ 17ad9c4 #18 2019-06-12 10:48:27 ~15 min windows 📦 exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ d1b991f #19 2019-06-12 11:31:28 ~10 min ios 📦 ipa
✔️ d1b991f #19 2019-06-12 11:34:03 ~13 min android 📦 apk
✔️ d1b991f #19 2019-06-12 11:34:20 ~13 min linux 📦 App
✔️ d1b991f #19 2019-06-12 11:34:30 ~13 min android-e2e 📦 apk
✔️ d1b991f #19 2019-06-12 11:35:50 ~15 min macos 📦 dmg
✔️ d1b991f #19 2019-06-12 11:35:52 ~15 min windows 📦 exe
✔️ b72fd2b #20 2019-06-12 13:11:20 ~10 min macos 📦 dmg
✔️ b72fd2b #20 2019-06-12 13:11:48 ~11 min ios 📦 ipa
✔️ b72fd2b #20 2019-06-12 13:13:56 ~13 min android 📦 apk
✔️ b72fd2b #20 2019-06-12 13:14:14 ~13 min android-e2e 📦 apk
✔️ b72fd2b #20 2019-06-12 13:14:45 ~14 min linux 📦 App
✔️ b72fd2b #20 2019-06-12 13:14:51 ~14 min windows 📦 exe

@status-im-auto
Copy link
Member

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
50f8baf #1 2019-06-05 11:14:36 ~59 sec android 📄 log

{:keys [value]} (wallet.db/parse-amount amount decimals)
amount' (str "0x" (abi-spec/number-to-hex (money/formatted->internal value symbol decimals)))
to (ethereum/public-key->address (:current-chat-id db))
to' (ethereum/normalized-address (if (= symbol :ETH) to address))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use these ' find a better name or thread the functions

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah yeah i know

@flexsurfer flexsurfer force-pushed the feature/tx-overview-screen branch 2 times, most recently from b02f8de to adda0fb Compare June 6, 2019 16:04
@flexsurfer flexsurfer changed the title WIP [#8026] [Wallet] Signing transaction [#8026] [Wallet] Signing transaction Jun 6, 2019
@flexsurfer flexsurfer requested a review from jeluard June 6, 2019 16:30
"NOTE (andrey) we need this function, because params may be mixed up,
so we need to figure out which one is address and which message"
[params]
(let [first_param (first params)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for neatpicking, but why _ in names, but not -?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is something old, just moved here, but agree it's weird

so we need to figure out which one is address and which message"
[params]
(let [first_param (first params)
second_param (second params)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could use destructuring here:
[first-param second-param] params

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make this change since git doesn't understand that it is just moved anyway?

(transaction-result cofx-in-progress-false result tx-obj))))

(fx/defn discard
"Discrad transactrion signing"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typos

amount-error (or (get-amount-error amount (:decimals token))
(get-sufficient-funds-error balance (:symbol token) amount-bn))]
(if amount-error
amount-error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be shorter with or

(or amount-error (get-sufficient-gas-error ...))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

based on @rasom comments during latest dev call, don't you think these are good candidate for local component state? while the functions themselves should stay separated from the UI and tested, does the whole app need to know about this state?

@@ -62,7 +62,8 @@
(if navigate-to-browser?
(fx/merge cofx
{:db (assoc-in db [:hardwallet :on-card-connected] nil)}
(wallet/discard-transaction)
;;TODO use new signing flow
;;(wallet/discard-transaction)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change it to signing/discard as it seems like doing what wallet/discard-transaction did before

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe put it into comments for later

@asemiankevich asemiankevich self-assigned this Jun 7, 2019
amount-hex (str "0x" (abi-spec/number-to-hex (money/formatted->internal value symbol decimals)))
to (ethereum/public-key->address current-chat-id)
to-norm (ethereum/normalized-address (if (= symbol :ETH) to address))
tx-obj (if (= symbol :ETH)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not a big fan of this tx-obj everywhere, it isn't really defined anywhere what it is about compared to just transaction

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the end this tx-obj is just (select-keys transaction [:to :from :data])

Copy link
Member Author

@flexsurfer flexsurfer Jun 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've made tx-obj separate because in that case I'm sure it won't be changed and will be signed as is, if we mix it with a transaction for signing screen, it might be messed

:data (when (and method params) (abi-spec/encode method params)))
transaction (prepare-extension-transaction tx-object (:contacts/contacts db) on-success on-failure)]
(wallet/open-modal-wallet-for-transaction db transaction tx-object)))
(signing/sign {:db db} {:tx-obj (assoc (select-keys arguments [:to :gas :gas-price :value :nonce])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just transaction? so far we have been pretty strict about not using abbreviations in the code base and I don't see how it is an object

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's object from here https://github.com/ethereum/wiki/wiki/JavaScript-API#parameters-25, Object - The transaction object to send:
but i'm open for suggestions on better naming

(:require [status-im.utils.fx :as fx]
[status-im.i18n :as i18n]
[status-im.utils.money :as money]
[status-im.utils.hex :as utils.hex]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you run import clean (remove unused/order alphabetically)

@annadanchenko
Copy link

annadanchenko commented Jun 12, 2019

@flexsurfer When signing message from Dapp (from CryptoKitties or from test dapp) there is overlap with Title in the app and status bar of the phone (Galaxy S6, Android 6.0.1 and Pixel XL, Android 9)

note that it doesn't happen on Galaxy S10, Pixel 3 and iphone 7 plus

Screenshot_20190612-120757

@statustestbot
Copy link

84% of end-end tests have passed

Total executed tests: 49
Failed tests: 8
Passed tests: 41

Failed tests (8)

Click to expand
1. test_public_chat_messaging

Device 2: Looking for an element by text part: 'Display name'
Device 2: Type 'user_2' to NameInput

Device 2: 'NextButton' is not found on the screen

Device sessions

2. test_sign_typed_message (TestRail link is not found)

Device 1: Tap on SignTypedMessageButton
Device 1: Type 'qwerty' to EnterPasswordInput

Device 1: 'SignTransactionButton' is not found on the screen

Device sessions

3. test_modify_transaction_fee_values

Device 1: Type 'f184747445c3B85CEb147DfB136067CB93d95F1D' to EnterRecipientAddressInput
Device 1: Tap on DoneButton

Device 1: 'AdvancedButton' is not found on the screen

Device sessions

4. test_logcat_sign_message_from_daap

Device 1: Wait for EnterPasswordInput
Device 1: Type 'unique6121077' to EnterPasswordInput

Device 1: 'SignTransactionButton' is not found on the screen

Device sessions

5. test_send_eth_in_1_1_chat

Device 1: Tap on SendMessageButton
Device 1: Wait for SignTransactionButton

Device 1: 'ChooseRecipientButton' is not found on the screen

Device sessions

6. test_send_two_transactions_one_after_another_in_dapp

Device 1: Tap on OkButton
Device 1: Looking for an element by text: 'Sign transaction'

Second send transaction screen did not appear!

Device sessions

7. test_sign_message_from_daap

Device 1: Wait for EnterPasswordInput
Device 1: Type 'password_for_daap' to EnterPasswordInput

Device 1: 'SignTransactionButton' is not found on the screen

Device sessions

8. test_backup_recovery_phrase_warning_from_wallet

Device 1: Wait for PlusButton
Device 1: Wait for PlusButton

Donation was not received during 300 seconds!

Device sessions

Passed tests (41)

Click to expand
1. test_block_user_from_public_chat
Device sessions

2. test_filters_from_daap
Device sessions

3. test_copy_and_paste_messages
Device sessions

4. test_send_transaction_from_daap
Device sessions

5. test_request_and_receive_tokens_in_1_1_chat
Device sessions

6. test_deploy_contract_from_daap
Device sessions

7. test_open_transaction_on_etherscan
Device sessions

8. test_long_press_to_delete_1_1_chat
Device sessions

9. test_password_in_logcat_sign_in
Device sessions

10. test_text_message_1_1_chat
Device sessions

11. test_add_to_contacts
Device sessions

12. test_unread_messages_counter_1_1_chat
Device sessions

13. test_logcat_send_transaction_from_daap
Device sessions

14. test_send_message_in_group_chat
Device sessions

15. test_logcat_send_transaction_from_wallet
Device sessions

16. test_send_token_with_7_decimals
Device sessions

17. test_send_eth_from_wallet_to_address
Device sessions

18. test_manage_assets
Device sessions

19. test_logcat_send_transaction_in_1_1_chat
Device sessions

20. test_request_and_receive_eth_in_1_1_chat
Device sessions

21. test_long_press_to_delete_public_chat
Device sessions

22. test_send_emoji
Device sessions

23. test_search_chat_on_home
Device sessions

24. test_logcat_recovering_account
Device sessions

25. test_messaging_in_different_networks
Device sessions

26. test_send_tokens_in_1_1_chat
Device sessions

27. test_network_mismatch_for_send_request_commands
Device sessions

28. test_switch_users_and_add_new_account
Device sessions

29. test_send_stt_from_wallet
Device sessions

30. test_login_with_new_account
Device sessions

31. test_send_eth_from_wallet_to_contact
Device sessions

32. test_add_contact_from_public_chat
Device sessions

33. test_password_in_logcat_creating_account
Device sessions

34. test_backup_recovery_phrase
Device sessions

35. test_offline_status
Device sessions

36. test_open_google_com_via_open_dapp
Device sessions

37. test_unread_messages_counter_public_chat
Device sessions

38. test_user_can_remove_profile_picture
Device sessions

39. test_share_contact_code_and_wallet_address
Device sessions

40. test_request_eth_in_wallet
Device sessions

41. test_refresh_button_browsing_app_webview
Device sessions

@antdanchenko
Copy link
Contributor

@flexsurfer please check test_send_two_transactions_one_after_another_in_dapp
Second transaction screen is not shown after sending two transactions one after another
in Status Test DApp > Transactions tab > Send two Txs, one after another, 0.00001 and 0.00002 ETH

@asemiankevich
Copy link
Contributor

@flexsurfer please check test_send_two_transactions_one_after_another_in_dapp
Second transaction screen is not shown after sending two transactions one after another
in Status Test DApp > Transactions tab > Send two Txs, one after another, 0.00001 and 0.00002 ETH

yes it is not working anymore, screen is not responsive after first txn is signed. I bet it was working when i was testing it.

@statustestbot
Copy link

96% of end-end tests have passed

Total executed tests: 47
Failed tests: 2
Passed tests: 45

Failed tests (2)

Click to expand
1. test_send_two_transactions_one_after_another_in_dapp

Device 1: Tap on OkButton
Device 1: Looking for an element by text: 'Sign transaction'

Second send transaction screen did not appear!

Device sessions

2. test_backup_recovery_phrase_warning_from_wallet

Device 1: Wait for PlusButton
Device 1: Wait for PlusButton

Donation was not received during 300 seconds!

Device sessions

Passed tests (45)

Click to expand
1. test_block_user_from_public_chat
Device sessions

2. test_filters_from_daap
Device sessions

3. test_copy_and_paste_messages
Device sessions

4. test_send_transaction_from_daap
Device sessions

5. test_request_and_receive_tokens_in_1_1_chat
Device sessions

6. test_deploy_contract_from_daap
Device sessions

7. test_open_transaction_on_etherscan
Device sessions

8. test_public_chat_messaging
Device sessions

9. test_long_press_to_delete_1_1_chat
Device sessions

10. test_password_in_logcat_sign_in
Device sessions

11. test_text_message_1_1_chat
Device sessions

12. test_add_to_contacts
Device sessions

13. test_sign_typed_message (TestRail link is not found)
Device sessions

14. test_unread_messages_counter_1_1_chat
Device sessions

15. test_logcat_send_transaction_from_daap
Device sessions

16. test_send_message_in_group_chat
Device sessions

17. test_logcat_send_transaction_from_wallet
Device sessions

18. test_send_token_with_7_decimals
Device sessions

19. test_send_eth_from_wallet_to_address
Device sessions

20. test_manage_assets
Device sessions

21. test_logcat_send_transaction_in_1_1_chat
Device sessions

22. test_request_and_receive_eth_in_1_1_chat
Device sessions

23. test_long_press_to_delete_public_chat
Device sessions

24. test_send_emoji
Device sessions

25. test_search_chat_on_home
Device sessions

26. test_logcat_recovering_account
Device sessions

27. test_messaging_in_different_networks
Device sessions

28. test_send_tokens_in_1_1_chat
Device sessions

29. test_network_mismatch_for_send_request_commands
Device sessions

30. test_logcat_sign_message_from_daap
Device sessions

31. test_switch_users_and_add_new_account
Device sessions

32. test_send_stt_from_wallet
Device sessions

33. test_login_with_new_account
Device sessions

34. test_send_eth_from_wallet_to_contact
Device sessions

35. test_add_contact_from_public_chat
Device sessions

36. test_password_in_logcat_creating_account
Device sessions

37. test_backup_recovery_phrase
Device sessions

38. test_offline_status
Device sessions

39. test_open_google_com_via_open_dapp
Device sessions

40. test_unread_messages_counter_public_chat
Device sessions

41. test_sign_message_from_daap
Device sessions

42. test_user_can_remove_profile_picture
Device sessions

43. test_share_contact_code_and_wallet_address
Device sessions

44. test_request_eth_in_wallet
Device sessions

45. test_refresh_button_browsing_app_webview
Device sessions

@flexsurfer
Copy link
Member Author

@asemiankevich fixed

@statustestbot
Copy link

96% of end-end tests have passed

Total executed tests: 47
Failed tests: 2
Passed tests: 45

Failed tests (2)

Click to expand
1. test_send_two_transactions_one_after_another_in_dapp

Device 1: Tap on OkButton
Device 1: Looking for an element by text: 'Sign transaction'

Second send transaction screen did not appear!

Device sessions

2. test_backup_recovery_phrase_warning_from_wallet

Device 1: Wait for PlusButton
Device 1: Wait for PlusButton

Donation was not received during 300 seconds!

Device sessions

Passed tests (45)

Click to expand
1. test_block_user_from_public_chat
Device sessions

2. test_filters_from_daap
Device sessions

3. test_copy_and_paste_messages
Device sessions

4. test_send_transaction_from_daap
Device sessions

5. test_request_and_receive_tokens_in_1_1_chat
Device sessions

6. test_deploy_contract_from_daap
Device sessions

7. test_open_transaction_on_etherscan
Device sessions

8. test_public_chat_messaging
Device sessions

9. test_long_press_to_delete_1_1_chat
Device sessions

10. test_password_in_logcat_sign_in
Device sessions

11. test_text_message_1_1_chat
Device sessions

12. test_add_to_contacts
Device sessions

13. test_sign_typed_message (TestRail link is not found)
Device sessions

14. test_unread_messages_counter_1_1_chat
Device sessions

15. test_logcat_send_transaction_from_daap
Device sessions

16. test_send_message_in_group_chat
Device sessions

17. test_logcat_send_transaction_from_wallet
Device sessions

18. test_send_token_with_7_decimals
Device sessions

19. test_send_eth_from_wallet_to_address
Device sessions

20. test_manage_assets
Device sessions

21. test_logcat_send_transaction_in_1_1_chat
Device sessions

22. test_request_and_receive_eth_in_1_1_chat
Device sessions

23. test_long_press_to_delete_public_chat
Device sessions

24. test_send_emoji
Device sessions

25. test_search_chat_on_home
Device sessions

26. test_logcat_recovering_account
Device sessions

27. test_messaging_in_different_networks
Device sessions

28. test_send_tokens_in_1_1_chat
Device sessions

29. test_network_mismatch_for_send_request_commands
Device sessions

30. test_logcat_sign_message_from_daap
Device sessions

31. test_switch_users_and_add_new_account
Device sessions

32. test_send_stt_from_wallet
Device sessions

33. test_login_with_new_account
Device sessions

34. test_send_eth_from_wallet_to_contact
Device sessions

35. test_add_contact_from_public_chat
Device sessions

36. test_password_in_logcat_creating_account
Device sessions

37. test_backup_recovery_phrase
Device sessions

38. test_offline_status
Device sessions

39. test_open_google_com_via_open_dapp
Device sessions

40. test_unread_messages_counter_public_chat
Device sessions

41. test_sign_message_from_daap
Device sessions

42. test_user_can_remove_profile_picture
Device sessions

43. test_share_contact_code_and_wallet_address
Device sessions

44. test_request_eth_in_wallet
Device sessions

45. test_refresh_button_browsing_app_webview
Device sessions

@asemiankevich
Copy link
Contributor

@antdanchenko the problem is fixed as i checked manually but test is failed because it does not tap on button second time. Could you please take a look? https://ethstatus.testrail.net/index.php?/tests/view/715952

@statustestbot
Copy link

50% of end-end tests have passed

Total executed tests: 2
Failed tests: 1
Passed tests: 1

Failed tests (1)

Click to expand
1. test_backup_recovery_phrase_warning_from_wallet

Device 1: Wait for PlusButton
Device 1: Wait for PlusButton

Donation was not received during 300 seconds!

Device sessions

Passed tests (1)

Click to expand
1. test_send_two_transactions_one_after_another_in_dapp
Device sessions

@Serhy
Copy link
Contributor

Serhy commented Jun 12, 2019

All e2e should be fixed now. Single test above failed due to faucet didn't work, but it's not this PR issue (manually all fine)

@asemiankevich
Copy link
Contributor

@annadanchenko would you mind if this branch will be merged and the issue u are referring to will be fixed in develop separately?

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Wallet] Sign transaction module