diff --git a/.github/workflows/emulator.yml b/.github/workflows/emulator.yml index 490c17ed..01b36b71 100644 --- a/.github/workflows/emulator.yml +++ b/.github/workflows/emulator.yml @@ -109,11 +109,11 @@ jobs: # 34: sometimes work, but doesn't seem stable, even w/o caching images script: - android_integration - - bootstrap_flakes - - bootstrap_channels - - poke_around - - test_channels_uiautomator - - test_channels_shell + # bootstrap_flakes + # bootstrap_channels + # poke_around + # test_channels_uiautomator + # test_channels_shell steps: - name: Checkout repository diff --git a/tests/emulator/android_integration.py b/tests/emulator/android_integration.py index 2349c267..da85f824 100644 --- a/tests/emulator/android_integration.py +++ b/tests/emulator/android_integration.py @@ -1,3 +1,5 @@ +import time + import bootstrap_channels from common import screenshot, wait_for @@ -42,6 +44,21 @@ def run(d): wait_for(d, 'https://dontkillmyapp.com') screenshot(d, 'am-wants-permission') + # ... there's a notification now, get rid of it + time.sleep(1) + screenshot(d, 'am-wants-permission-second-later') + if 'text="TermuxAm Socket Server Error"' in d.ui.dump_hierarchy(): + d.ui.open_notification() + screenshot(d, 'notification-opened') + d.ui(text='TermuxAm Socket Server Error').click() + time.sleep(.25) + screenshot(d, 'error-notification-clicked') + if 'text="TermuxAm Socket Server Error"' in d.ui.dump_hierarchy(): + d.ui(text='TermuxAm Socket Server Error').swipe_ext('right') + screenshot(d, 'error-notification-swiped-right') + d.ui.press('back') + screenshot(d, 'back') + # Grant nix app 'Draw over other apps' permission nod.permissions += 'android.permission.SYSTEM_ALERT_WINDOW' @@ -51,6 +68,7 @@ def run(d): screenshot(d, 'settings-opening') wait_for(d, 'Search settings') wait_for(d, 'Network') + screenshot(d, 'settings-awaited') d.ui.press('back') screenshot(d, 'back-from-settings')