status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.91k stars 984 forks source link

e2e: fix for fallback tests #21621

Closed yevh-berdnyk closed 1 week ago

status-im-auto commented 1 week ago

Jenkins Builds

Click to see older builds (4) | :grey_question: | Commit | :hash: | Finished (UTC) | Duration | Platform | Result | |-|-|-|-|-|-|-| | :x: | d282bc83 | [#1](https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-21621/1/) | 2024-11-13 14:41:56 | ~4 min | `tests` | [:page_facing_up:`log`](https://ci.status.im/job/status-mobile/job/prs/job/tests/job/PR-21621/1/consoleText) | | :heavy_check_mark: | d282bc83 | [#1](https://ci.status.im/job/status-mobile/job/prs/job/android-e2e/job/PR-21621/1/) | 2024-11-13 14:44:26 | ~7 min | `android-e2e` | [:robot:`apk`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241113-143711-d282bc-pr21621-x86_64.apk) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fstatus-im-mobile-prs.ams3.cdn.digitaloceanspaces.com%2FStatusIm-Mobile-241113-143711-d282bc-pr21621-x86_64.apk)| | :heavy_check_mark: | d282bc83 | [#1](https://ci.status.im/job/status-mobile/job/prs/job/android/job/PR-21621/1/) | 2024-11-13 14:45:41 | ~8 min | `android` | [:robot:`apk`](https://status-im-mobile-prs.ams3.cdn.digitaloceanspaces.com/StatusIm-Mobile-241113-143711-d282bc-pr21621-arm64-v8a.apk) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fstatus-im-mobile-prs.ams3.cdn.digitaloceanspaces.com%2FStatusIm-Mobile-241113-143711-d282bc-pr21621-arm64-v8a.apk)| | :heavy_check_mark: | d282bc83 | [#1](https://ci.status.im/job/status-mobile/job/prs/job/ios/job/PR-21621/1/) | 2024-11-13 14:48:48 | ~11 min | `ios` | [:iphone:`ipa`](https://i.diawi.com/LJYxaN) [:calling:](https://chart.apis.google.com/chart?cht=qr&chs=400x400&chld=L%7C%0A1&chl=https%3A%2F%2Fi.diawi.com%2FLJYxaN)|
:grey_question: Commit :hash: Finished (UTC) Duration Platform Result
:heavy_check_mark: 15fea6e4 #2 2024-11-13 15:38:26 ~4 min tests :page_facing_up:log
:heavy_check_mark: 15fea6e4 #2 2024-11-13 15:41:33 ~7 min android :robot:apk :calling:
:heavy_check_mark: 15fea6e4 #2 2024-11-13 15:41:48 ~7 min android-e2e :robot:apk :calling:
:heavy_check_mark: 15fea6e4 #2 2024-11-13 15:45:25 ~11 min ios :iphone:ipa :calling:
:x: 3f12c046 #4 2024-11-13 17:43:50 ~4 min android :page_facing_up:log
:heavy_check_mark: 3f12c046 #4 2024-11-13 17:44:31 ~4 min tests :page_facing_up:log
:heavy_check_mark: 3f12c046 #4 2024-11-13 17:47:01 ~7 min android-e2e :robot:apk :calling:
:heavy_check_mark: 3f12c046 #4 2024-11-13 17:49:43 ~9 min ios :iphone:ipa :calling:
:heavy_check_mark: 3f12c046 #5 2024-11-14 00:22:43 ~7 min android :robot:apk :calling:
status-im-auto commented 1 week ago

0% of end-end tests have passed

Total executed tests: 3
Failed tests: 3
Expected to fail tests: 0
Passed tests: 0
IDs of failed tests: 740220,740221,740222 

Failed tests (3)

Click to expand
  • Rerun failed tests

  • Class TestFallbackMultipleDevice:

    1. test_fallback_sync_with_error, id: 740220

    Device 2: Tap on found: Button
    Device 2: Find `Button` by `accessibility id`: `scan-sync-code-option-card`

    ``` critical/test_fallback.py:46: in test_fallback_sync_with_error self.sign_in_2.sync_profile(sync_code=self.sync_code) ../views/sign_in_view.py:331: in sync_profile self.scan_sync_code_button.click() ../views/base_element.py:90: in click element = self.find_element() ../views/base_element.py:79: in find_element raise NoSuchElementException( Device 2: Button by accessibility id: `scan-sync-code-option-card` is not found on the screen; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception ```

    Device sessions

    2. test_fallback_with_correct_seed_phrase, id: 740221

    # STEP: Device 2: recover a profile with backed up seed phrase
    Device 2: Find `Button` by `accessibility id`: `try-seed-phrase-button`

    ``` critical/test_fallback.py:54: in test_fallback_with_correct_seed_phrase self.sign_in_2.try_seed_phrase_button.click() ../views/base_element.py:90: in click element = self.find_element() ../views/base_element.py:79: in find_element raise NoSuchElementException( Device 2: Button by accessibility id: `try-seed-phrase-button` is not found on the screen; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception ```

    Device sessions

    3. test_fallback_validate_seed_phrase, id: 740222

    # STEP: Device 2: try syncing profile
    Device 2: Find `Button` by `accessibility id`: `show-profiles`

    ``` critical/test_fallback.py:167: in test_fallback_validate_seed_phrase self.sign_in_2.sync_profile(sync_code=self.sync_code, first_user=False) ../views/sign_in_view.py:328: in sync_profile self.show_profiles_button.click() ../views/base_element.py:90: in click element = self.find_element() ../views/base_element.py:79: in find_element raise NoSuchElementException( Device 2: Button by accessibility id: `show-profiles` is not found on the screen; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception ```

    Device sessions

    status-im-auto commented 1 week ago

    0% of end-end tests have passed

    Total executed tests: 3
    Failed tests: 3
    Expected to fail tests: 0
    Passed tests: 0
    IDs of failed tests: 740220,740221,740222 

    Failed tests (3)

    Click to expand
  • Rerun failed tests

  • Class TestFallbackMultipleDevice:

    1. test_fallback_sync_with_error, id: 740220
    ``` Test setup failed: critical/test_fallback.py:15: in prepare_devices self.drivers, self.loop = create_shared_drivers(3) base_test_case.py:330: in create_shared_drivers raise e base_test_case.py:320: in create_shared_drivers test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1 '_asyncio.Future' object has no attribute 'session_id' ```

    2. test_fallback_with_correct_seed_phrase, id: 740221
    ``` Test setup failed: critical/test_fallback.py:15: in prepare_devices self.drivers, self.loop = create_shared_drivers(3) base_test_case.py:330: in create_shared_drivers raise e base_test_case.py:320: in create_shared_drivers test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1 '_asyncio.Future' object has no attribute 'session_id' ```

    3. test_fallback_validate_seed_phrase, id: 740222
    ``` Test setup failed: critical/test_fallback.py:15: in prepare_devices self.drivers, self.loop = create_shared_drivers(3) base_test_case.py:330: in create_shared_drivers raise e base_test_case.py:320: in create_shared_drivers test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1 '_asyncio.Future' object has no attribute 'session_id' ```

    status-im-auto commented 1 week ago

    0% of end-end tests have passed

    Total executed tests: 3
    Failed tests: 3
    Expected to fail tests: 0
    Passed tests: 0
    IDs of failed tests: 740220,740221,740222 

    Failed tests (3)

    Click to expand
  • Rerun failed tests

  • Class TestFallbackMultipleDevice:

    1. test_fallback_sync_with_error, id: 740220
    ``` Test setup failed: critical/test_fallback.py:15: in prepare_devices self.drivers, self.loop = create_shared_drivers(3) base_test_case.py:330: in create_shared_drivers raise e base_test_case.py:320: in create_shared_drivers test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1 '_asyncio.Future' object has no attribute 'session_id' ```

    2. test_fallback_with_correct_seed_phrase, id: 740221
    ``` Test setup failed: critical/test_fallback.py:15: in prepare_devices self.drivers, self.loop = create_shared_drivers(3) base_test_case.py:330: in create_shared_drivers raise e base_test_case.py:320: in create_shared_drivers test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1 '_asyncio.Future' object has no attribute 'session_id' ```

    3. test_fallback_validate_seed_phrase, id: 740222
    ``` Test setup failed: critical/test_fallback.py:15: in prepare_devices self.drivers, self.loop = create_shared_drivers(3) base_test_case.py:330: in create_shared_drivers raise e base_test_case.py:320: in create_shared_drivers test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1 '_asyncio.Future' object has no attribute 'session_id' ```

    status-im-auto commented 1 week ago

    0% of end-end tests have passed

    Total executed tests: 3
    Failed tests: 3
    Expected to fail tests: 0
    Passed tests: 0
    IDs of failed tests: 740220,740221,740222 

    Failed tests (3)

    Click to expand
  • Rerun failed tests

  • Class TestFallbackMultipleDevice:

    1. test_fallback_sync_with_error, id: 740220
    ``` Test setup failed: critical/test_fallback.py:15: in prepare_devices self.drivers, self.loop = create_shared_drivers(3) base_test_case.py:330: in create_shared_drivers raise e base_test_case.py:320: in create_shared_drivers test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1 '_asyncio.Future' object has no attribute 'session_id' ```

    2. test_fallback_with_correct_seed_phrase, id: 740221
    ``` Test setup failed: critical/test_fallback.py:15: in prepare_devices self.drivers, self.loop = create_shared_drivers(3) base_test_case.py:330: in create_shared_drivers raise e base_test_case.py:320: in create_shared_drivers test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1 '_asyncio.Future' object has no attribute 'session_id' ```

    3. test_fallback_validate_seed_phrase, id: 740222
    ``` Test setup failed: critical/test_fallback.py:15: in prepare_devices self.drivers, self.loop = create_shared_drivers(3) base_test_case.py:330: in create_shared_drivers raise e base_test_case.py:320: in create_shared_drivers test_suite_data.current_test.testruns[-1].jobs[drivers[i].session_id] = i + 1 '_asyncio.Future' object has no attribute 'session_id' ```

    status-im-auto commented 1 week ago

    67% of end-end tests have passed

    Total executed tests: 3
    Failed tests: 1
    Expected to fail tests: 0
    Passed tests: 2
    IDs of failed tests: 740222 

    Failed tests (1)

    Click to expand
  • Rerun failed tests

  • Class TestFallbackMultipleDevice:

    1. test_fallback_validate_seed_phrase, id: 740222

    # STEP: Device 2: try syncing profile
    Device 2: Find `Button` by `accessibility id`: `show-profiles`

    ``` critical/test_fallback.py:167: in test_fallback_validate_seed_phrase self.sign_in_2.sync_profile(sync_code=self.sync_code, first_user=False) ../views/sign_in_view.py:329: in sync_profile self.show_profiles_button.click() ../views/base_element.py:90: in click element = self.find_element() ../views/base_element.py:79: in find_element raise NoSuchElementException( Device 2: Button by accessibility id: `show-profiles` is not found on the screen; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception ```

    Device sessions

    Passed tests (2)

    Click to expand

    Class TestFallbackMultipleDevice:

    1. test_fallback_sync_with_error, id: 740220
    Device sessions

    2. test_fallback_with_correct_seed_phrase, id: 740221
    Device sessions

    status-im-auto commented 1 week ago

    67% of end-end tests have passed

    Total executed tests: 3
    Failed tests: 1
    Expected to fail tests: 0
    Passed tests: 2
    IDs of failed tests: 740221 

    Failed tests (1)

    Click to expand
  • Rerun failed tests

  • Class TestFallbackMultipleDevice:

    1. test_fallback_with_correct_seed_phrase, id: 740221

    Device 1: Find `BaseElement` by `xpath`: `//android.view.ViewGroup/android.view.ViewGroup[@content-desc='status-tag-positive']/..`
    Device 1: Click system back button

    ``` critical/test_fallback.py:79: in test_fallback_with_correct_seed_phrase home.notifications_unread_badge.wait_for_visibility_of_element(30) ../views/base_element.py:147: in wait_for_visibility_of_element raise TimeoutException( Device 1: BaseElement by accessibility id:`activity-center-unread-count` is not found on the screen after wait_for_visibility_of_element ```

    Device sessions

    Passed tests (2)

    Click to expand

    Class TestFallbackMultipleDevice:

    1. test_fallback_sync_with_error, id: 740220
    Device sessions

    2. test_fallback_validate_seed_phrase, id: 740222
    Device sessions