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

Resolve contract from ens name #11055

Merged
merged 1 commit into from
Aug 19, 2020
Merged

Resolve contract from ens name #11055

merged 1 commit into from
Aug 19, 2020

Conversation

Ferossgp
Copy link
Contributor

@Ferossgp Ferossgp commented Aug 7, 2020

Use ENS name for the acquisition contract. So it can be switched or removed dynamically without store release. Also checks for referrals after login, as the network is not available before and we cannot fetch the ens name

@Ferossgp Ferossgp requested a review from a team as a code owner August 7, 2020 14:50
@Ferossgp Ferossgp self-assigned this Aug 7, 2020
@status-im-auto
Copy link
Member

status-im-auto commented Aug 7, 2020

Jenkins Builds

Click to see older builds (14)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 86ca07d #2 2020-08-07 15:11:29 ~12 min android-e2e 📦apk 📲
✔️ 86ca07d #2 2020-08-07 15:11:35 ~12 min android 📦apk 📲
✔️ 86ca07d #2 2020-08-07 15:12:37 ~13 min ios 📦ipa 📲
✔️ 99d18d6 #3 2020-08-13 11:41:48 ~9 min android 📦apk 📲
✔️ 99d18d6 #3 2020-08-13 11:41:49 ~9 min android-e2e 📦apk 📲
✔️ 99d18d6 #3 2020-08-13 11:54:32 ~22 min ios 📦ipa 📲
✔️ bd0f0ab #4 2020-08-18 07:09:50 ~10 min android-e2e 📦apk 📲
✔️ bd0f0ab #4 2020-08-18 07:10:10 ~11 min android 📦apk 📲
✔️ bd0f0ab #4 2020-08-18 07:15:08 ~16 min ios 📦ipa 📲
✔️ 67337a2 #5 2020-08-18 14:41:41 ~15 min android-e2e 📦apk 📲
✔️ 67337a2 #5 2020-08-18 14:41:54 ~15 min android 📦apk 📲
✔️ e9a664b #6 2020-08-19 08:38:08 ~9 min android 📦apk 📲
✔️ e9a664b #6 2020-08-19 08:38:18 ~9 min android-e2e 📦apk 📲
✔️ e9a664b #6 2020-08-19 08:43:26 ~14 min ios 📦ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 67a6a83 #7 2020-08-19 09:10:50 ~8 min android 📦apk 📲
✔️ 67a6a83 #7 2020-08-19 09:12:07 ~10 min android-e2e 📦apk 📲
✔️ 67a6a83 #7 2020-08-19 09:15:00 ~13 min ios 📦ipa 📲
✔️ 40f6e9a #8 2020-08-19 12:53:31 ~8 min android 📦apk 📲
✔️ 40f6e9a #8 2020-08-19 12:54:54 ~9 min android-e2e 📦apk 📲
✔️ 40f6e9a #8 2020-08-19 13:00:13 ~15 min ios 📦ipa 📲

@hesterbruikman
Copy link
Contributor

@Ferossgp @Serhy Adding expected behavior here as guidance for testing

Expected behavior

When ENS name in backend service is empty:

  • Earn crypto by inviting friends is not visible and tap Invite friends shows regular share dialog, no info sheet referral program. This content is hidden on:
    • Chat view info area
    • Plus button Invite friends
    • Contacts > Invite friends
  • When using a friend invite url, regular 1:1 chat with friend opens. No dialog regarding referral program (Accept T&C to release Starter Pack and attribute friend) is visible
  • When using a advertiser referral url to onboard, dialog with request to attribute advertiser/influencer is visible right after welcome screen

@hesterbruikman
Copy link
Contributor

Check ahead of release 1.6 which is to include advertiser flow for referral program only (based on new contract) plus only high-prio fixes that would otherwise go into a 1.5.1. Therefore it is likely based of 1.5 instead of develop.

Does this PR include any dependencies on develop that are not in 1.5 branch?

@Ferossgp
Copy link
Contributor Author

When using a advertiser referral url to onboard, dialog with request to attribute advertiser/influencer is visible right after welcome screen

If we want that behavior then it means the feature should be toggle from backend, ENS can be used as a kill switch to all program cc @andremedeiros

{::json-rpc/eth-call [{:contract contract
:method "getDefaultPack()"
:outputs ["address" "uint256" "address[]" "uint256[]" "uint256[]"]
:on-success #(re-frame/dispatch [::starter-pack-amount (vec %) (prn %)])}]})

(re-frame/reg-sub-raw
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 on this? why would you want to have raw subs and dispatch from them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a nice approach to use just subscription for external data, this way we do not need to trigger events on some actions but they will be triggered when the data is requested by the subscription. There is a similar example in the docs https://github.com/day8/re-frame/blob/master/docs/Subscribing-To-External-Data.md#some-code

Copy link
Member

Choose a reason for hiding this comment

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

i'm not sure i understand the reason why you can't dispatch event in the place where you set value in app-db ? i mean the cool thing about re-frame its simple, and predictable, this one just looks like can be done in "regular" way but just adds one more case for devs to know an remember , not sure if it worth it

Copy link
Member

Choose a reason for hiding this comment

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

for me it looks like unpredictable thing, i don't expect that event will be dispatched when i use subscription, instead i'll be looking to component-will-mount

Copy link
Member

Choose a reason for hiding this comment

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

probably if we really want to use this approach at least we could give a names for such subscriptions, like ::get-starter-pack-and-dispatch

Copy link
Contributor Author

@Ferossgp Ferossgp Aug 19, 2020

Choose a reason for hiding this comment

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

Well, that's described in re-frame documentation, so it is correct in terms of the re-frame flow. The problem with the dispatching event is that we show it in 3 places, and we need then to dispatch it every time before showing any of these screens. Also as a user of API, you should no care from where this data is resolved. Mostly you will look at this subscription as "give me the starter pack" and the subscription will give you the value. The underline implementation makes sense only if you want to change it. But as this event doesn't involve data mutation it can be interpreted as a pure pulling of data.

Dispatch actually is not needed here at all, I can call the fx directly, the dispatch call is here because firstly it was implemented with dispatch during navigation to the invite screen, then refactored to raw when it became needed in other places. So I think I can remove the dispatch by replacing it with the fx call directly, and keep the name as it is.

@@ -248,7 +247,7 @@
(i18n/label :t/invite-reward {:value (str (get reward :eth-amount) " ETH")})]])]])))

(defn list-item [{:keys [accessibility-label]}]
(if-not config/referrals-invite-enabled?
(if-not @(re-frame/subscribe [::events/enabled])
Copy link
Member

Choose a reason for hiding this comment

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

events looks too general, probably ::invite.events could work better

(fn []
(get-in @db [:acquisition :starter-pack :pack]))))))

(re-frame/reg-sub
Copy link
Member

Choose a reason for hiding this comment

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

we still don't have a decision on moving subs from subs.cljs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but I wanted to keep the referral program code fully isolated from the app, as we do not know how it will evolve later, and how much time it will be there.

{::json-rpc/eth-call [{:contract contract
:method "getDefaultPack()"
:outputs ["address" "uint256" "address[]" "uint256[]" "uint256[]"]
:on-success #(re-frame/dispatch [::starter-pack-amount (vec %) (prn %)])}]})

(re-frame/reg-sub-raw
Copy link
Member

Choose a reason for hiding this comment

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

i'm not sure i understand the reason why you can't dispatch event in the place where you set value in app-db ? i mean the cool thing about re-frame its simple, and predictable, this one just looks like can be done in "regular" way but just adds one more case for devs to know an remember , not sure if it worth it

{::json-rpc/eth-call [{:contract contract
:method "getDefaultPack()"
:outputs ["address" "uint256" "address[]" "uint256[]" "uint256[]"]
:on-success #(re-frame/dispatch [::starter-pack-amount (vec %) (prn %)])}]})

(re-frame/reg-sub-raw
Copy link
Member

Choose a reason for hiding this comment

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

for me it looks like unpredictable thing, i don't expect that event will be dispatched when i use subscription, instead i'll be looking to component-will-mount

{::json-rpc/eth-call [{:contract contract
:method "getDefaultPack()"
:outputs ["address" "uint256" "address[]" "uint256[]" "uint256[]"]
:on-success #(re-frame/dispatch [::starter-pack-amount (vec %) (prn %)])}]})

(re-frame/reg-sub-raw
Copy link
Member

Choose a reason for hiding this comment

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

probably if we really want to use this approach at least we could give a names for such subscriptions, like ::get-starter-pack-and-dispatch

@Serhy Serhy self-assigned this Aug 19, 2020
@status-im-auto
Copy link
Member

1% of end-end tests have passed

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

Failed tests (96)

Click to expand
1. test_decline_transactions_in_1_1_chat

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

2. test_delete_chats_via_delete_button

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

3. test_can_see_all_transactions_in_history

Device 1: Tap on NextButton
Device 1: Wait for MaybeLaterButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

4. test_install_pack_and_send_sticker

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

5. test_login_with_new_account

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

6. test_timestamp_in_chats

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

7. test_password_in_logcat_sign_in

Device 1: Type 'unique819121454' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

8. test_logcat_recovering_account

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

9. test_public_chat_clear_history

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

10. test_need_help_section

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

11. test_send_and_open_links

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

12. test_mobile_data_usage_popup_stop_syncing

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

13. test_keycard_send_eth_in_1_1_chat

Device 1: Wait for LetsGoButton
Device 1: LetsGoButton element not found

Device 1: 'LetsGoButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

14. test_mobile_data_usage_settings

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

15. test_create_new_group_chat

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

16. test_keycard_send_eth_to_ens (TestRail link is not found)

Device 1: Wait for LetsGoButton
Device 1: LetsGoButton element not found

Device 1: 'LetsGoButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

17. test_user_can_switch_network

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

18. test_mobile_data_usage_popup_continue_syncing

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

19. test_home_view

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

20. test_open_google_com_via_open_dapp

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

21. test_share_contact_code_and_wallet_address

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

22. test_connection_is_secure

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

23. test_add_to_contacts

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

24. test_add_account_to_multiaccount_instance_private_key

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

25. test_refresh_button_browsing_app_webview

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

26. test_push_notification_1_1_chat

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

27. test_keycard_send_two_transactions_one_after_another_in_dapp

Device 1: Wait for LetsGoButton
Device 1: LetsGoButton element not found

Device 1: 'LetsGoButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

28. test_can_add_existing_ens

Device 1: Tap on NextButton
Device 1: Wait for MaybeLaterButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

29. test_transaction_wrong_password_wallet

Device 1: Tap on NextButton
Device 1: Wait for MaybeLaterButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

30. test_public_chat_messaging

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

31. test_unread_messages_counter_public_chat

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

32. test_keycard_send_eth_from_wallet_to_address

Device 1: Tap on NextButton
Device 1: Tap on YesButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

33. test_keycard_fetching_balance_after_offline

Device 1: Tap on NextButton
Device 1: Tap on YesButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

34. test_keycard_send_transaction_from_daap

Device 1: Tap on NextButton
Device 1: Tap on YesButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

35. test_text_message_1_1_chat

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

36. test_can_use_purchased_stickers_on_recovered_account

Device 1: Tap on NextButton
Device 1: Wait for MaybeLaterButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

37. test_open_transaction_on_etherscan

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

38. test_onboarding_screen_when_requesting_tokens_for_recovered_account

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

39. test_contact_profile_view

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

40. test_offline_add_new_group_chat_member

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

41. test_logcat_backup_recovery_phrase

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

42. test_can_recover_keycard_account_card_pairing

Device 1: Tap on OnePinKeyboardButton
Device 1: Tap on TwoPinKeyboardButton

Device 1: 'HomeButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

43. test_start_chat_with_ens

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

44. test_add_and_remove_contact_from_public_chat

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

45. test_add_account_to_multiaccount_instance_seed_phrase

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

46. test_open_blocked_site

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

47. test_open_chat_by_pasting_public_key

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

48. test_pair_devices_sync_one_to_one_contacts_public_chat

Device 1: LetsGoButton element not found
Device 1: Wait for LetsGoButton

Device 1: 'ProfileButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

49. test_keycard_sign_message_from_daap

Device 1: Type 'sting' to ConfirmSeedPhraseInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

50. test_send_non_english_message_to_newly_added_contact

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

51. test_ens_username_recipient

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

52. test_fetch_more_history_in_empty_chat

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

53. test_open_public_chat_using_deep_link

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

54. test_switch_users_and_add_new_account

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

55. test_add_account_to_multiaccount_instance_generate_new

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

56. test_copy_contact_code_and_wallet_address

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

57. test_send_transaction_from_daap

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

58. test_send_two_transactions_one_after_another_in_dapp

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

59. test_image_in_one_to_one_send_save_reply

Device 1: LetsGoButton element not found
Device 1: Wait for LetsGoButton

Device 1: 'ProfileButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

60. test_add_new_keycard_account_and_login

Device 1: LetsGoButton element not found
Device 1: Wait for LetsGoButton

Device 1: 'ProfileButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

61. test_long_press_delete_clear_all_dapps

Device 1: LetsGoButton element not found
Device 1: Wait for LetsGoButton

Device 1: 'ProfileButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

62. test_copy_and_paste_messages

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

63. test_back_forward_buttons_browsing_website

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

64. test_password_in_logcat_creating_account

Device 1: Type 'unique819121453' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

65. test_sign_message_from_daap

Device 1: Type 'password_for_daap' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

66. test_dapps_permissions

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

67. test_request_public_key_status_test_daap

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

68. test_long_press_to_delete_chat

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

69. test_log_level_and_fleet

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

70. test_add_and_delete_watch_only_account_to_multiaccount_instance

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

71. test_recover_account_from_new_user_seedphrase

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

72. test_send_transaction_with_custom_token

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

73. test_send_eth_in_1_1_chat

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

74. test_send_two_transactions_in_batch_in_dapp

Device 1: Tap on NextButton
Device 1: Wait for MaybeLaterButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

75. test_ens_in_public_and_1_1_chats

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

76. test_block_user_from_public_chat

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

77. test_fetching_balance_after_offline

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

78. test_offline_status

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

79. test_wallet_set_up

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

80. test_manage_assets

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

81. test_offline_messaging_1_1_chat

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

82. test_account_recovery_with_uppercase_recovery_phrase

Device 1: Tap on NextButton
Device 1: Wait for MaybeLaterButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

83. test_send_token_with_7_decimals

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

84. test_user_can_see_all_own_assets_after_account_recovering

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

85. test_keycard_can_see_all_transactions_in_history

Device 1: Tap on NextButton
Device 1: Tap on YesButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

86. test_keycard_send_two_transactions_in_batch_in_dapp

Device 1: Tap on NextButton
Device 1: Tap on YesButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

87. test_send_emoji

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

88. test_filters_from_daap

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

89. test_redirect_to_public_chat_tapping_tag_message

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

90. test_restore_account_from_mnemonic_to_keycard

Device 1: Tap on NextButton
Device 1: Tap on YesButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

91. test_send_eth_to_ens_in_chat

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

92. test_send_eth_from_wallet_to_address

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

93. test_request_and_receive_stt_in_1_1_chat_offline

Device 1: LetsGoButton element not found
Device 1: Wait for LetsGoButton

Device 1: 'ProfileButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

94. test_messaging_in_different_networks

Device 1: Type 'qwerty' to ConfirmYourPasswordInput
Device 1: Tap on NextButton

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

95. test_collectible_from_wallet_opens_in_browser_view

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

96. test_insufficient_funds_wallet_positive_balance

Device 1: Wait for MaybeLaterButton
Device 1: MaybeLaterButton element not found

Device 1: 'MaybeLaterButton' is not found on the screen; also Unexpected Alert is shown: 'Cannot read property 'lastIndexOf' of null'

Device sessions

Passed tests (1)

Click to expand
1. test_pass_phrase_validation
Device sessions

@status-im-auto
Copy link
Member

100% of end-end tests have passed

Total executed tests: 98
Failed tests: 0
Passed tests: 98

Passed tests (98)

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_push_notification_1_1_chat
Device sessions

25. test_mobile_data_usage_popup_continue_syncing
Device sessions

26. test_keycard_fetching_balance_after_offline
Device sessions

27. test_add_to_contacts
Device sessions

28. test_dapps_permissions
Device sessions

29. test_long_press_delete_clear_all_dapps
Device sessions

30. test_need_help_section
Device sessions

31. test_transaction_wrong_password_wallet
Device sessions

32. test_offline_messaging_1_1_chat
Device sessions

33. test_add_account_to_multiaccount_instance_private_key
Device sessions

34. test_text_message_1_1_chat
Device sessions

35. test_install_pack_and_send_sticker
Device sessions

36. test_send_eth_in_1_1_chat
Device sessions

37. test_pair_devices_sync_one_to_one_contacts_public_chat
Device sessions

38. test_image_in_one_to_one_send_save_reply
Device sessions

39. test_send_emoji
Device sessions

40. test_copy_and_paste_messages
Device sessions

41. test_keycard_send_eth_in_1_1_chat
Device sessions

42. test_restore_account_from_mnemonic_to_keycard
Device sessions

43. test_add_account_to_multiaccount_instance_generate_new
Device sessions

44. test_send_eth_from_wallet_to_address
Device sessions

45. test_messaging_in_different_networks
Device sessions

46. test_start_chat_with_ens
Device sessions

47. test_logcat_recovering_account
Device sessions

48. test_offline_add_new_group_chat_member
Device sessions

49. test_connection_is_secure
Device sessions

50. test_keycard_send_transaction_from_daap
Device sessions

51. test_user_can_see_all_own_assets_after_account_recovering
Device sessions

52. test_send_eth_to_ens_in_chat
Device sessions

53. test_keycard_sign_message_from_daap
Device sessions

54. test_long_press_to_delete_chat
Device sessions

55. test_add_and_remove_contact_from_public_chat
Device sessions

56. test_send_transaction_from_daap
Device sessions

57. test_onboarding_screen_when_requesting_tokens_for_recovered_account
Device sessions

58. test_keycard_send_eth_from_wallet_to_address
Device sessions

59. test_keycard_send_two_transactions_one_after_another_in_dapp
Device sessions

60. test_add_and_delete_watch_only_account_to_multiaccount_instance
Device sessions

61. test_open_blocked_site
Device sessions

62. test_refresh_button_browsing_app_webview
Device sessions

63. test_public_chat_messaging
Device sessions

64. test_pass_phrase_validation
Device sessions

65. test_send_token_with_7_decimals
Device sessions

66. test_sign_message_from_daap
Device sessions

67. test_recover_account_from_new_user_seedphrase
Device sessions

68. test_add_new_keycard_account_and_login
Device sessions

69. test_decline_transactions_in_1_1_chat
Device sessions

70. test_send_and_open_links
Device sessions

71. test_manage_assets
Device sessions

72. test_share_contact_code_and_wallet_address
Device sessions

73. test_send_transaction_with_custom_token
Device sessions

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

75. test_can_recover_keycard_account_card_pairing
Device sessions

76. test_request_and_receive_stt_in_1_1_chat_offline
Device sessions

77. test_redirect_to_public_chat_tapping_tag_message
Device sessions

78. test_block_user_from_public_chat
Device sessions

79. test_ens_in_public_and_1_1_chats
Device sessions

80. test_create_new_group_chat
Device sessions

81. test_password_in_logcat_sign_in
Device sessions

82. test_account_recovery_with_uppercase_recovery_phrase
Device sessions

83. test_mobile_data_usage_popup_stop_syncing
Device sessions

84. test_send_non_english_message_to_newly_added_contact
Device sessions

85. test_collectible_from_wallet_opens_in_browser_view
Device sessions

86. test_contact_profile_view
Device sessions

87. test_keycard_send_two_transactions_in_batch_in_dapp
Device sessions

88. test_reactions_to_message_in_chats
Device sessions

89. test_switch_users_and_add_new_account
Device sessions

90. test_send_two_transactions_in_batch_in_dapp
Device sessions

91. test_filters_from_daap
Device sessions

92. test_login_with_new_account
Device sessions

93. test_home_view
Device sessions

94. test_log_level_and_fleet
Device sessions

95. test_can_add_existing_ens
Device sessions

96. test_copy_contact_code_and_wallet_address
Device sessions

97. test_fetching_balance_after_offline
Device sessions

98. test_can_see_all_transactions_in_history
Device sessions

@Serhy
Copy link
Contributor

Serhy commented Aug 19, 2020

Thanks you, @Ferossgp
Lets merge it

Do not show referrals if contract is not available

Do not check contract for referral accept

Rename invite event namespace require

Remove dispatch from raw subs

Do nothing if there is no contract

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
@Ferossgp Ferossgp merged commit c644ab3 into develop Aug 19, 2020
@Ferossgp Ferossgp deleted the ens-contract-referrals branch August 19, 2020 14:10
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.

5 participants