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

Add universal qr scanner #11014

Merged
merged 1 commit into from
Aug 11, 2020
Merged

Add universal qr scanner #11014

merged 1 commit into from
Aug 11, 2020

Conversation

Ferossgp
Copy link
Contributor

@Ferossgp Ferossgp commented Jul 30, 2020

Closes #10764

Added bidi to handle routes instead of regexp. Also unified the QR and Universal links, to use same routing as they use the same links.

@Ferossgp Ferossgp requested review from jakubgs and a team as code owners July 30, 2020 12:15
@Ferossgp Ferossgp self-assigned this Jul 30, 2020
@status-im-auto
Copy link
Member

status-im-auto commented Jul 30, 2020

Jenkins Builds

Click to see older builds (31)
Commit #️⃣ Finished (UTC) Duration Platform Result
8c48d5f #1 2020-07-30 12:25:16 ~9 min android 📄log
8c48d5f #1 2020-07-30 12:30:19 ~14 min android-e2e 📄log
8c48d5f #1 2020-07-30 12:39:53 ~24 min ios 📄log
✔️ 9f42f3d #2 2020-07-30 12:57:47 ~9 min android 📦apk 📲
✔️ 9f42f3d #2 2020-07-30 13:04:37 ~15 min android-e2e 📦apk 📲
✔️ 9f42f3d #2 2020-07-30 13:08:56 ~20 min ios 📦ipa 📲
✖️ 09ebf7a #3 2020-08-03 08:20:13 ~10 min android 📦apk 📲
✖️ 09ebf7a #3 2020-08-03 08:20:13 ~10 min android-e2e 📦apk 📲
✖️ 09ebf7a #3 2020-08-03 08:24:33 ~14 min ios 📦ipa 📲
✔️ 106ef88 #4 2020-08-03 09:24:21 ~8 min android 📦apk 📲
✔️ 106ef88 #4 2020-08-03 09:27:33 ~11 min android-e2e 📦apk 📲
✔️ 106ef88 #4 2020-08-03 09:34:24 ~18 min ios 📦ipa 📲
✔️ f8ec3f6 #6 2020-08-03 10:00:43 ~9 min android-e2e 📦apk 📲
✔️ f8ec3f6 #6 2020-08-03 10:01:51 ~10 min android 📦apk 📲
✔️ f8ec3f6 #6 2020-08-03 10:05:56 ~14 min ios 📦ipa 📲
✔️ 26baf8b #7 2020-08-03 14:21:25 ~13 min ios 📦ipa 📲
✔️ 26baf8b #7 2020-08-03 14:21:53 ~13 min android-e2e 📦apk 📲
✔️ 26baf8b #7 2020-08-03 14:21:54 ~13 min android 📦apk 📲
✔️ 497de1b #8 2020-08-06 10:07:13 ~10 min android-e2e 📦apk 📲
✔️ 497de1b #8 2020-08-06 10:07:16 ~10 min android 📦apk 📲
✔️ 497de1b #8 2020-08-06 10:14:33 ~17 min ios 📦ipa 📲
d576e72 #11 2020-08-07 08:22:54 ~4 min android 📄log
d576e72 #11 2020-08-07 08:23:10 ~4 min android-e2e 📄log
✔️ d576e72 #11 2020-08-07 08:31:55 ~13 min ios 📦ipa 📲
d576e72 #12 2020-08-07 08:53:50 ~2 min android 📄log
✔️ 872ccb5 #12 2020-08-07 09:28:48 ~8 min android-e2e 📦apk 📲
✔️ 872ccb5 #13 2020-08-07 09:30:29 ~10 min android 📦apk 📲
✔️ 872ccb5 #12 2020-08-07 09:34:05 ~13 min ios 📦ipa 📲
✔️ 29a35bd #13 2020-08-07 12:23:17 ~8 min android-e2e 📦apk 📲
✔️ 29a35bd #14 2020-08-07 12:25:10 ~10 min android 📦apk 📲
✔️ 29a35bd #13 2020-08-07 12:28:37 ~13 min ios 📦ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ e4c00ee #14 2020-08-10 11:32:28 ~9 min android-e2e 📦apk 📲
✔️ e4c00ee #14 2020-08-10 11:37:54 ~15 min ios 📦ipa 📲
✔️ e4c00ee #15 2020-08-10 11:41:44 ~19 min android 📦apk 📲
✔️ f720518 #15 2020-08-10 14:43:06 ~12 min android-e2e 📦apk 📲
✔️ f720518 #16 2020-08-10 14:43:11 ~12 min android 📦apk 📲
✔️ f720518 #15 2020-08-10 14:47:06 ~16 min ios 📦ipa 📲

@Ferossgp Ferossgp force-pushed the feature/add-universal-qr-scanner branch 4 times, most recently from d608f7d to f8ec3f6 Compare August 3, 2020 09:51
@Ferossgp Ferossgp force-pushed the feature/add-universal-qr-scanner branch from f8ec3f6 to 26baf8b Compare August 3, 2020 14:08
@Ferossgp Ferossgp changed the title WIP Add universal qr scanner Add universal qr scanner Aug 3, 2020
@status-im-auto
Copy link
Member

98% of end-end tests have passed

Total executed tests: 97
Failed tests: 2
Passed tests: 95

Failed tests (2)

Click to expand
1. test_decline_transactions_in_1_1_chat

Device 2: ChatMessageInput element not found
Device 2: Looking for a message by text: '↓ Incoming transaction'

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

Device sessions

2. test_push_notification_1_1_chat

Device 2: =========================================================================
Device 2: Send emoji message to Device 1 while it's on backround

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

Device sessions

Passed tests (95)

Click to expand
1. test_delete_chats_via_delete_button
Device sessions

2. test_can_see_all_transactions_in_history
Device sessions

3. test_install_pack_and_send_sticker
Device sessions

4. test_login_with_new_account
Device sessions

5. test_timestamp_in_chats
Device sessions

6. test_password_in_logcat_sign_in
Device sessions

7. test_logcat_recovering_account
Device sessions

8. test_public_chat_clear_history
Device sessions

9. test_need_help_section
Device sessions

10. test_send_and_open_links
Device sessions

11. test_mobile_data_usage_popup_stop_syncing
Device sessions

12. test_keycard_send_eth_in_1_1_chat
Device sessions

13. test_mobile_data_usage_settings
Device sessions

14. test_create_new_group_chat
Device sessions

15. test_keycard_send_eth_to_ens (TestRail link is not found)
Device sessions

16. test_user_can_switch_network
Device sessions

17. test_mobile_data_usage_popup_continue_syncing
Device sessions

18. test_home_view
Device sessions

19. test_open_google_com_via_open_dapp
Device sessions

20. test_share_contact_code_and_wallet_address
Device sessions

21. test_connection_is_secure
Device sessions

22. test_add_to_contacts
Device sessions

23. test_add_account_to_multiaccount_instance_private_key
Device sessions

24. test_refresh_button_browsing_app_webview
Device sessions

25. test_keycard_send_two_transactions_one_after_another_in_dapp
Device sessions

26. test_can_add_existing_ens
Device sessions

27. test_transaction_wrong_password_wallet
Device sessions

28. test_public_chat_messaging
Device sessions

29. test_unread_messages_counter_public_chat
Device sessions

30. test_keycard_send_eth_from_wallet_to_address
Device sessions

31. test_keycard_fetching_balance_after_offline
Device sessions

32. test_keycard_send_transaction_from_daap
Device sessions

33. test_text_message_1_1_chat
Device sessions

34. test_can_use_purchased_stickers_on_recovered_account
Device sessions

35. test_open_transaction_on_etherscan
Device sessions

36. test_onboarding_screen_when_requesting_tokens_for_recovered_account
Device sessions

37. test_contact_profile_view
Device sessions

38. test_offline_add_new_group_chat_member
Device sessions

39. test_logcat_backup_recovery_phrase
Device sessions

40. test_can_recover_keycard_account_card_pairing
Device sessions

41. test_start_chat_with_ens
Device sessions

42. test_add_and_remove_contact_from_public_chat
Device sessions

43. test_add_account_to_multiaccount_instance_seed_phrase
Device sessions

44. test_open_blocked_site
Device sessions

45. test_open_chat_by_pasting_public_key
Device sessions

46. test_pair_devices_sync_one_to_one_contacts_public_chat
Device sessions

47. test_keycard_sign_message_from_daap
Device sessions

48. test_send_non_english_message_to_newly_added_contact
Device sessions

49. test_ens_username_recipient
Device sessions

50. test_fetch_more_history_in_empty_chat
Device sessions

51. test_open_public_chat_using_deep_link
Device sessions

52. test_switch_users_and_add_new_account
Device sessions

53. test_add_account_to_multiaccount_instance_generate_new
Device sessions

54. test_copy_contact_code_and_wallet_address
Device sessions

55. test_send_transaction_from_daap
Device sessions

56. test_send_two_transactions_one_after_another_in_dapp
Device sessions

57. test_image_in_one_to_one_send_save_reply
Device sessions

58. test_add_new_keycard_account_and_login
Device sessions

59. test_long_press_delete_clear_all_dapps
Device sessions

60. test_copy_and_paste_messages
Device sessions

61. test_back_forward_buttons_browsing_website
Device sessions

62. test_password_in_logcat_creating_account
Device sessions

63. test_sign_message_from_daap
Device sessions

64. test_dapps_permissions
Device sessions

65. test_request_public_key_status_test_daap
Device sessions

66. test_long_press_to_delete_chat
Device sessions

67. test_log_level_and_fleet
Device sessions

68. test_add_and_delete_watch_only_account_to_multiaccount_instance
Device sessions

69. test_recover_account_from_new_user_seedphrase
Device sessions

70. test_send_transaction_with_custom_token
Device sessions

71. test_send_eth_in_1_1_chat
Device sessions

72. test_send_two_transactions_in_batch_in_dapp
Device sessions

73. test_ens_in_public_and_1_1_chats
Device sessions

74. test_block_user_from_public_chat
Device sessions

75. test_fetching_balance_after_offline
Device sessions

76. test_offline_status
Device sessions

77. test_wallet_set_up
Device sessions

78. test_manage_assets
Device sessions

79. test_offline_messaging_1_1_chat
Device sessions

80. test_account_recovery_with_uppercase_recovery_phrase
Device sessions

81. test_send_token_with_7_decimals
Device sessions

82. test_user_can_see_all_own_assets_after_account_recovering
Device sessions

83. test_pass_phrase_validation
Device sessions

84. test_keycard_can_see_all_transactions_in_history
Device sessions

85. test_keycard_send_two_transactions_in_batch_in_dapp
Device sessions

86. test_send_emoji
Device sessions

87. test_filters_from_daap
Device sessions

88. test_redirect_to_public_chat_tapping_tag_message
Device sessions

89. test_restore_account_from_mnemonic_to_keycard
Device sessions

90. test_send_eth_to_ens_in_chat
Device sessions

91. test_send_eth_from_wallet_to_address
Device sessions

92. test_request_and_receive_stt_in_1_1_chat_offline
Device sessions

93. test_messaging_in_different_networks
Device sessions

94. test_collectible_from_wallet_opens_in_browser_view
Device sessions

95. test_insufficient_funds_wallet_positive_balance
Device sessions

@churik
Copy link
Member

churik commented Aug 6, 2020

@Ferossgp can you pleae rebase it? thanks!

@Ferossgp Ferossgp force-pushed the feature/add-universal-qr-scanner branch from 26baf8b to 497de1b Compare August 6, 2020 09:56
@status-im-auto
Copy link
Member

99% of end-end tests have passed

Total executed tests: 97
Failed tests: 1
Passed tests: 96

Failed tests (1)

Click to expand
1. test_push_notification_1_1_chat

Device 2: =========================================================================
Device 2: Send emoji message to Device 1 while it's on backround

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

Device sessions

Passed tests (96)

Click to expand
1. test_request_public_key_status_test_daap
Device sessions

2. test_open_public_chat_using_deep_link
Device sessions

3. test_ens_username_recipient
Device sessions

4. test_keycard_can_see_all_transactions_in_history
Device sessions

5. test_offline_status
Device sessions

6. test_open_transaction_on_etherscan
Device sessions

7. test_open_chat_by_pasting_public_key
Device sessions

8. test_back_forward_buttons_browsing_website
Device sessions

9. test_password_in_logcat_creating_account
Device sessions

10. test_can_use_purchased_stickers_on_recovered_account
Device sessions

11. test_insufficient_funds_wallet_positive_balance
Device sessions

12. test_mobile_data_usage_settings
Device sessions

13. test_open_google_com_via_open_dapp
Device sessions

14. test_logcat_backup_recovery_phrase
Device sessions

15. test_unread_messages_counter_public_chat
Device sessions

16. test_send_two_transactions_one_after_another_in_dapp
Device sessions

17. test_user_can_switch_network
Device sessions

18. test_public_chat_clear_history
Device sessions

19. test_wallet_set_up
Device sessions

20. test_timestamp_in_chats
Device sessions

21. test_delete_chats_via_delete_button
Device sessions

22. test_add_account_to_multiaccount_instance_seed_phrase
Device sessions

23. test_fetch_more_history_in_empty_chat
Device sessions

24. test_mobile_data_usage_popup_continue_syncing
Device sessions

25. test_keycard_fetching_balance_after_offline
Device sessions

26. test_add_to_contacts
Device sessions

27. test_dapps_permissions
Device sessions

28. test_long_press_delete_clear_all_dapps
Device sessions

29. test_need_help_section
Device sessions

30. test_transaction_wrong_password_wallet
Device sessions

31. test_offline_messaging_1_1_chat
Device sessions

32. test_add_account_to_multiaccount_instance_private_key
Device sessions

33. test_text_message_1_1_chat
Device sessions

34. test_install_pack_and_send_sticker
Device sessions

35. test_send_eth_in_1_1_chat
Device sessions

36. test_pair_devices_sync_one_to_one_contacts_public_chat
Device sessions

37. test_image_in_one_to_one_send_save_reply
Device sessions

38. test_send_emoji
Device sessions

39. test_copy_and_paste_messages
Device sessions

40. test_keycard_send_eth_in_1_1_chat
Device sessions

41. test_restore_account_from_mnemonic_to_keycard
Device sessions

42. test_add_account_to_multiaccount_instance_generate_new
Device sessions

43. test_send_eth_from_wallet_to_address
Device sessions

44. test_messaging_in_different_networks
Device sessions

45. test_start_chat_with_ens
Device sessions

46. test_logcat_recovering_account
Device sessions

47. test_offline_add_new_group_chat_member
Device sessions

48. test_connection_is_secure
Device sessions

49. test_keycard_send_transaction_from_daap
Device sessions

50. test_user_can_see_all_own_assets_after_account_recovering
Device sessions

51. test_send_eth_to_ens_in_chat
Device sessions

52. test_keycard_sign_message_from_daap
Device sessions

53. test_long_press_to_delete_chat
Device sessions

54. test_add_and_remove_contact_from_public_chat
Device sessions

55. test_send_transaction_from_daap
Device sessions

56. test_onboarding_screen_when_requesting_tokens_for_recovered_account
Device sessions

57. test_keycard_send_eth_from_wallet_to_address
Device sessions

58. test_keycard_send_two_transactions_one_after_another_in_dapp
Device sessions

59. test_add_and_delete_watch_only_account_to_multiaccount_instance
Device sessions

60. test_open_blocked_site
Device sessions

61. test_refresh_button_browsing_app_webview
Device sessions

62. test_public_chat_messaging
Device sessions

63. test_pass_phrase_validation
Device sessions

64. test_send_token_with_7_decimals
Device sessions

65. test_sign_message_from_daap
Device sessions

66. test_recover_account_from_new_user_seedphrase
Device sessions

67. test_add_new_keycard_account_and_login
Device sessions

68. test_decline_transactions_in_1_1_chat
Device sessions

69. test_send_and_open_links
Device sessions

70. test_manage_assets
Device sessions

71. test_share_contact_code_and_wallet_address
Device sessions

72. test_send_transaction_with_custom_token
Device sessions

73. test_keycard_send_eth_to_ens (TestRail link is not found)
Device sessions

74. test_can_recover_keycard_account_card_pairing
Device sessions

75. test_request_and_receive_stt_in_1_1_chat_offline
Device sessions

76. test_redirect_to_public_chat_tapping_tag_message
Device sessions

77. test_block_user_from_public_chat
Device sessions

78. test_ens_in_public_and_1_1_chats
Device sessions

79. test_create_new_group_chat
Device sessions

80. test_password_in_logcat_sign_in
Device sessions

81. test_account_recovery_with_uppercase_recovery_phrase
Device sessions

82. test_mobile_data_usage_popup_stop_syncing
Device sessions

83. test_send_non_english_message_to_newly_added_contact
Device sessions

84. test_collectible_from_wallet_opens_in_browser_view
Device sessions

85. test_contact_profile_view
Device sessions

86. test_keycard_send_two_transactions_in_batch_in_dapp
Device sessions

87. test_switch_users_and_add_new_account
Device sessions

88. test_send_two_transactions_in_batch_in_dapp
Device sessions

89. test_filters_from_daap
Device sessions

90. test_login_with_new_account
Device sessions

91. test_home_view
Device sessions

92. test_log_level_and_fleet
Device sessions

93. test_can_add_existing_ens
Device sessions

94. test_copy_contact_code_and_wallet_address
Device sessions

95. test_fetching_balance_after_offline
Device sessions

96. test_can_see_all_transactions_in_history
Device sessions

@churik
Copy link
Member

churik commented Aug 6, 2020

@Ferossgp

ISSUE 1: on scanning chat keys or universal links app is redirected to profile view with profile of another user

And to see again your profile you need to go back.
Moreover, the profile of another user stays opened in "Profile" tab after performing actions (i.e. sending messages or blocking)

Expected result:
profile of another user will be opened in home view

Actual result:

BAACAgQAAxkBAAEqCG9fLCMfmEOTUFMmYJXJDVsu8jnD_AACUAwAAmQvYFFwptFxYH3GUxoE_1596728137 93

ISSUE 2: unable to scan valid QR after scanning invalid ENS name

Steps:

  • scan QR with invalid ENS (i.e. https://join.status.im/u/tanyatest.eth)
  • try to scan QR with valid ENS (i.e. https://join.status.im/u/tanyatest1.eth)

Expected result:
can see error; can scan valid QR normally
Actual result:
no error; at attempt to scan valid QR - no redirect

ISSUE 3: on scanning deep link with public chat - null is not an object error

Steps:

  • scan QR with valid public chat name ddep link i.e. https://join.status.im/markets

Expected result:
joined markets

Actual result:
error
IMAGE 2020-08-06 17:57:24

ISSUE 4: doesn't support universal links to dapps with full URLs

Steps:

  • scan QR with valid link i.e. https://join.status.im/b/https://www.google.com/

Expected result:
open in Status

Actual result:
Unable to read the code

ISSUE 5: error at attempt to scan EIP link

Steps:

  • scan QR with valid EIP link i.e. ethereum:0x3d597789ea16054a084ac84ce87f50df9198f415?value=1e15

Expected result:
Send transaction screen with 0.001 ETH with "To" 0x3d597789ea16054a084ac84ce87f50df9198f415

Actual result:
Unable to read the code
IMAGE 2020-08-06 18:12:08
At attempt to scan valid wallet address, got 'Unable to read this code', so seems it is not finished.

@Ferossgp
Copy link
Contributor Author

Ferossgp commented Aug 7, 2020

@churik

ISSUE 3: on scanning deep link with public chat - null is not an object error

Cannot replicate, maybe there was some context before that action, or can you please share INFO logs?

All other issues fixed

@Ferossgp Ferossgp force-pushed the feature/add-universal-qr-scanner branch 2 times, most recently from 04a7513 to d576e72 Compare August 7, 2020 08:18
@Ferossgp Ferossgp force-pushed the feature/add-universal-qr-scanner branch from d576e72 to 872ccb5 Compare August 7, 2020 09:20
@churik
Copy link
Member

churik commented Aug 7, 2020

@Ferossgp thanks for fixes!
also can't reproduce issue 3.

About other issues:

ISSUE 5: EIP links are still not fully supported (for tokens, ENS names, payment links)

More context of supported params is here: #10280

Links for testing:

  • 20 ZRX to 0xd21DB0e43048AcB94f428eD61dC244c82f1ff2a8
    ethereum:pay-0xe41d2489571d322189246dafa5ebde1f4699f498/transfer?address=0xd21DB0e43048AcB94f428eD61dC244c82f1ff2a8&uint256=2e1

  • 0.001 ETH with "To" 0x3d597789ea16054a084ac84ce87f50df9198f415
    ethereum:0x3d597789ea16054a084ac84ce87f50df9198f415?value=1e15

  • donate 0.11 SNT to 3esmit.stateofus.eth
    ethereum:0x744d70fdbe2ba4cf95131626614a1763df805b9e/transfer?address=3esmit.stateofus.eth&uint256=1.1e-1

  • with chain_id
    ethereum:0x3d597789ea16054a084ac84ce87f50df9198f415@1?value=1e16

Test case is here: https://ethstatus.testrail.net/index.php?/cases/view/6282

Also in case of scanning valid wallet address as it mentioned in #10764 should open If users scans wallet address open Wallet > Send > To field includes address.

ISSUE 6: after scanning another user profile scanning your profile key redirects to another user profile

Steps:

  • create multiaccount
  • scan QR with another user profile chat key or ENS (i.e. https://join.status.im/u/tanyatest1.eth)
  • scan QR with own profile chat key

Expected result:
redirected to own profile

Actual result:
redirected to tanyatest1.eth (opened in Profile tab, like in issue 1)

@Ferossgp
Copy link
Contributor Author

Ferossgp commented Aug 7, 2020

@churik fixed

@churik
Copy link
Member

churik commented Aug 10, 2020

@Ferossgp
in the last version with commit 29a35bd wallet scanner (wallet view > top right corner) stop working.
At attempt to scan valid EIP link (i.e. 'ethereum:0x744d70fdbe2ba4cf95131626614a1763df805b9e/transfer?address=3esmit.stateofus.eth&uint256=1.1e-1') got <no value> error

(navigation/navigate-to-cofx :tabs {:screen :wallet})))

(fx/defn match-scan
{:events [::match-scanned-value]}
Copy link
Member

Choose a reason for hiding this comment

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

could you please elaborate why handlers are here and not in the router ns ?thanks

Copy link
Member

Choose a reason for hiding this comment

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

should it be handled different if we scan it or if we open universal link?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Handlers are almost similar, the only difference is on errors strings. Also in some places we do not show error in Universal Links, while in QR we say that we can't scan this code

@Ferossgp Ferossgp force-pushed the feature/add-universal-qr-scanner branch from 29a35bd to e4c00ee Compare August 10, 2020 11:22
@Ferossgp
Copy link
Contributor Author

@churik fixed wallet scanner

@status-im-auto
Copy link
Member

90% of end-end tests have passed

Total executed tests: 97
Failed tests: 10
Passed tests: 87

Failed tests (10)

Click to expand
1. test_install_pack_and_send_sticker

Device 1: Tap on AddToContacts
Device 1: Tap on ShowStickersButton

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

Device sessions

2. test_push_notification_1_1_chat

Device 2: =========================================================================
Device 2: Send emoji message to Device 1 while it's on backround

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

Device sessions

3. test_keycard_send_eth_from_wallet_to_address

Transaction #5, amount is 0.008194838
{'blockNumber': '8459965', 'timeStamp': '1596916120', 'hash': '0xb26aad6fd5859e82e4a7ad02baa6796d7512d13bea50a7f6be5db7dade80a694', 'nonce': '3625', 'blockHash': '0x1f77d0d5b7e34b8657b708f2095ceb9bc51d9d6908bcdae0def6b16e10c4da31', 'transactionIndex': '8', 'from': '0x9164f86170290ba3080e37d19d1953d3c5945913', 'to': '0xf184747445c3b85ceb147dfb136067cb93d95f1d', 'value': '8194838000000000', 'gas': '21000', 'gasPrice': '2000000000', 'isError': '0', 'txreceipt_status': '1', 'input': '0x', 'contractAddress': '', 'cumulativeGasUsed': '371339', 'gasUsed': '21000', 'confirmations': '9063'}

Transaction with amount 0.0010122417 is not found in list of transactions, address is 9164f86170290ba3080e37d19d1953d3c5945913

Device sessions

4. test_keycard_fetching_balance_after_offline

Transaction #5, amount is 0.001010372
{'blockNumber': '8468832', 'timeStamp': '1597055831', 'hash': '0xe4fe8cffe7d3f3d9b51401af72c955da57f5fb605ca02fc20162a03b9a1e2139', 'nonce': '44', 'blockHash': '0xd5c3177c63300c3678a96d1165821b8ea425c76e54ef353ce1075535d8010d32', 'from': '0x3e2e4077753d3c229a9ae332b9ca46958945e2f6', 'contractAddress': '0xc55cf4b03948d7ebc8b9e8bad92643703811d162', 'to': '0xf184747445c3b85ceb147dfb136067cb93d95f1d', 'value': '1010372000000000', 'tokenName': 'Status Test Token', 'tokenSymbol': 'STT', 'tokenDecimal': '18', 'transactionIndex': '7', 'gas': '131542', 'gasPrice': '31000000000', 'gasUsed': '109619', 'cumulativeGasUsed': '3596660', 'input': 'deprecated', 'confirmations': '196'}

Transaction with amount 0.0010122437 is not found in list of transactions, address is f184747445c3B85CEb147DfB136067CB93d95F1D

Device sessions

5. test_image_in_one_to_one_send_save_reply

Device 2: Looking for a message by text: 'image reply'
Device 2: Wait for ImageInReply

Image doesn't match expected template for sender Image doesn't match expected template for receiver

Device sessions

6. test_fetching_balance_after_offline

Transaction #5, amount is 0.001010372
{'blockNumber': '8468832', 'timeStamp': '1597055831', 'hash': '0xe4fe8cffe7d3f3d9b51401af72c955da57f5fb605ca02fc20162a03b9a1e2139', 'nonce': '44', 'blockHash': '0xd5c3177c63300c3678a96d1165821b8ea425c76e54ef353ce1075535d8010d32', 'from': '0x3e2e4077753d3c229a9ae332b9ca46958945e2f6', 'contractAddress': '0xc55cf4b03948d7ebc8b9e8bad92643703811d162', 'to': '0xf184747445c3b85ceb147dfb136067cb93d95f1d', 'value': '1010372000000000', 'tokenName': 'Status Test Token', 'tokenSymbol': 'STT', 'tokenDecimal': '18', 'transactionIndex': '7', 'gas': '131542', 'gasPrice': '31000000000', 'gasUsed': '109619', 'cumulativeGasUsed': '3596660', 'input': 'deprecated', 'confirmations': '196'}

Transaction with amount 0.001012293 is not found in list of transactions, address is f184747445c3B85CEb147DfB136067CB93d95F1D

Device sessions

7. test_send_token_with_7_decimals

Transaction #5, amount is 101037200.0
{'blockNumber': '8468832', 'timeStamp': '1597055831', 'hash': '0xe4fe8cffe7d3f3d9b51401af72c955da57f5fb605ca02fc20162a03b9a1e2139', 'nonce': '44', 'blockHash': '0xd5c3177c63300c3678a96d1165821b8ea425c76e54ef353ce1075535d8010d32', 'from': '0x3e2e4077753d3c229a9ae332b9ca46958945e2f6', 'contractAddress': '0xc55cf4b03948d7ebc8b9e8bad92643703811d162', 'to': '0xf184747445c3b85ceb147dfb136067cb93d95f1d', 'value': '1010372000000000', 'tokenName': 'Status Test Token', 'tokenSymbol': 'STT', 'tokenDecimal': '18', 'transactionIndex': '7', 'gas': '131542', 'gasPrice': '31000000000', 'gasUsed': '109619', 'cumulativeGasUsed': '3596660', 'input': 'deprecated', 'confirmations': '196'}

Transaction with amount 0.0506051 is not found in list of transactions, address is f184747445c3B85CEb147DfB136067CB93d95F1D

Device sessions

8. test_send_eth_from_wallet_to_address

Transaction #5, amount is 0.008194838
{'blockNumber': '8459965', 'timeStamp': '1596916120', 'hash': '0xb26aad6fd5859e82e4a7ad02baa6796d7512d13bea50a7f6be5db7dade80a694', 'nonce': '3625', 'blockHash': '0x1f77d0d5b7e34b8657b708f2095ceb9bc51d9d6908bcdae0def6b16e10c4da31', 'transactionIndex': '8', 'from': '0x9164f86170290ba3080e37d19d1953d3c5945913', 'to': '0xf184747445c3b85ceb147dfb136067cb93d95f1d', 'value': '8194838000000000', 'gas': '21000', 'gasPrice': '2000000000', 'isError': '0', 'txreceipt_status': '1', 'input': '0x', 'contractAddress': '', 'cumulativeGasUsed': '371339', 'gasUsed': '21000', 'confirmations': '9063'}

Transaction with amount 0.0010122621 is not found in list of transactions, address is 9164f86170290ba3080e37d19d1953d3c5945913

Device sessions

9. test_request_and_receive_stt_in_1_1_chat_offline

Looking for a transaction with unique amount 0.0010121657 in list of transactions, address is 549b9bcd069d720390a6819ff8b3d9dd252fa3be
Transaction with unique amount 0.0010121657 is found in list of transactions, address is 549b9bcd069d720390a6819ff8b3d9dd252fa3be

Transaction with amount 0.0010121657 was not confirmed, address is 549b9bcd069d720390a6819ff8b3d9dd252fa3be, still has 7 confirmations

Device sessions

10. test_collectible_from_wallet_opens_in_browser_view

Device 1: Tap on CollectiblesButton
Device 1: Tap on CryptoKittiesInCollectiblesButton

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

Device sessions

Passed tests (87)

Click to expand
1. test_decline_transactions_in_1_1_chat
Device sessions

2. test_delete_chats_via_delete_button
Device sessions

3. test_can_see_all_transactions_in_history
Device sessions

4. test_login_with_new_account
Device sessions

5. test_timestamp_in_chats
Device sessions

6. test_password_in_logcat_sign_in
Device sessions

7. test_logcat_recovering_account
Device sessions

8. test_public_chat_clear_history
Device sessions

9. test_need_help_section
Device sessions

10. test_send_and_open_links
Device sessions

11. test_mobile_data_usage_popup_stop_syncing
Device sessions

12. test_keycard_send_eth_in_1_1_chat
Device sessions

13. test_mobile_data_usage_settings
Device sessions

14. test_create_new_group_chat
Device sessions

15. test_keycard_send_eth_to_ens (TestRail link is not found)
Device sessions

16. test_user_can_switch_network
Device sessions

17. test_mobile_data_usage_popup_continue_syncing
Device sessions

18. test_home_view
Device sessions

19. test_open_google_com_via_open_dapp
Device sessions

20. test_share_contact_code_and_wallet_address
Device sessions

21. test_connection_is_secure
Device sessions

22. test_add_to_contacts
Device sessions

23. test_add_account_to_multiaccount_instance_private_key
Device sessions

24. test_refresh_button_browsing_app_webview
Device sessions

25. test_keycard_send_two_transactions_one_after_another_in_dapp
Device sessions

26. test_can_add_existing_ens
Device sessions

27. test_transaction_wrong_password_wallet
Device sessions

28. test_public_chat_messaging
Device sessions

29. test_unread_messages_counter_public_chat
Device sessions

30. test_keycard_send_transaction_from_daap
Device sessions

31. test_text_message_1_1_chat
Device sessions

32. test_can_use_purchased_stickers_on_recovered_account
Device sessions

33. test_open_transaction_on_etherscan
Device sessions

34. test_onboarding_screen_when_requesting_tokens_for_recovered_account
Device sessions

35. test_contact_profile_view
Device sessions

36. test_offline_add_new_group_chat_member
Device sessions

37. test_logcat_backup_recovery_phrase
Device sessions

38. test_can_recover_keycard_account_card_pairing
Device sessions

39. test_start_chat_with_ens
Device sessions

40. test_add_and_remove_contact_from_public_chat
Device sessions

41. test_add_account_to_multiaccount_instance_seed_phrase
Device sessions

42. test_open_blocked_site
Device sessions

43. test_open_chat_by_pasting_public_key
Device sessions

44. test_pair_devices_sync_one_to_one_contacts_public_chat
Device sessions

45. test_keycard_sign_message_from_daap
Device sessions

46. test_send_non_english_message_to_newly_added_contact
Device sessions

47. test_ens_username_recipient
Device sessions

48. test_fetch_more_history_in_empty_chat
Device sessions

49. test_open_public_chat_using_deep_link
Device sessions

50. test_switch_users_and_add_new_account
Device sessions

51. test_add_account_to_multiaccount_instance_generate_new
Device sessions

52. test_copy_contact_code_and_wallet_address
Device sessions

53. test_send_transaction_from_daap
Device sessions

54. test_send_two_transactions_one_after_another_in_dapp
Device sessions

55. test_add_new_keycard_account_and_login
Device sessions

56. test_long_press_delete_clear_all_dapps
Device sessions

57. test_copy_and_paste_messages
Device sessions

58. test_back_forward_buttons_browsing_website
Device sessions

59. test_password_in_logcat_creating_account
Device sessions

60. test_sign_message_from_daap
Device sessions

61. test_dapps_permissions
Device sessions

62. test_request_public_key_status_test_daap
Device sessions

63. test_long_press_to_delete_chat
Device sessions

64. test_log_level_and_fleet
Device sessions

65. test_add_and_delete_watch_only_account_to_multiaccount_instance
Device sessions

66. test_recover_account_from_new_user_seedphrase
Device sessions

67. test_send_transaction_with_custom_token
Device sessions

68. test_send_eth_in_1_1_chat
Device sessions

69. test_send_two_transactions_in_batch_in_dapp
Device sessions

70. test_ens_in_public_and_1_1_chats
Device sessions

71. test_block_user_from_public_chat
Device sessions

72. test_offline_status
Device sessions

73. test_wallet_set_up
Device sessions

74. test_manage_assets
Device sessions

75. test_offline_messaging_1_1_chat
Device sessions

76. test_account_recovery_with_uppercase_recovery_phrase
Device sessions

77. test_user_can_see_all_own_assets_after_account_recovering
Device sessions

78. test_pass_phrase_validation
Device sessions

79. test_keycard_can_see_all_transactions_in_history
Device sessions

80. test_keycard_send_two_transactions_in_batch_in_dapp
Device sessions

81. test_send_emoji
Device sessions

82. test_filters_from_daap
Device sessions

83. test_redirect_to_public_chat_tapping_tag_message
Device sessions

84. test_restore_account_from_mnemonic_to_keycard
Device sessions

85. test_send_eth_to_ens_in_chat
Device sessions

86. test_messaging_in_different_networks
Device sessions

87. test_insufficient_funds_wallet_positive_balance
Device sessions

@churik
Copy link
Member

churik commented Aug 10, 2020

Tested universal code scanner + existing QR code scanners from chat view, wallet view, bootnode, mailserver QR code scanner on IOS 13 and Android 10

Awesome work!

@churik
Copy link
Member

churik commented Aug 10, 2020

@Ferossgp new issue with redirect to user profile from universal link:
when tapping on universal link and select "Open in status" another user profile view is opened on profile tab and there is no way to return on your own profile (like it was in issue 1 in #11014 (comment), but button "Back" redirects to home view.

Thanks for the clue!

@churik
Copy link
Member

churik commented Aug 10, 2020

Fixed and verified. Ready to be merged!

Rename events

Add router to handle all links

Use router in add new chat

Unify universal link and universal qr with router

Add icon for universal scanner

Update tests

Now routing is tested in routing PR

lint

Cleanup

QA fixes

Scan own profile

Handle more EIP

Fix wallet scanner

Fix stack for view profile in UL

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
@Ferossgp Ferossgp force-pushed the feature/add-universal-qr-scanner branch from f720518 to 7935798 Compare August 11, 2020 07:24
@Ferossgp Ferossgp merged commit 7935798 into develop Aug 11, 2020
@Ferossgp Ferossgp deleted the feature/add-universal-qr-scanner branch August 11, 2020 07:24
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.

Support universal QR code scanner
4 participants