| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,17 +35,19 @@ jobs: | |||
| 35 | 35 | curl -Ls "https://get.maestro.mobile.dev" | bash | |
| 36 | 36 | echo "$HOME/.maestro/bin" >> $GITHUB_PATH | |
| 37 | 37 | ||
| 38 | + - name: Enable KVM | ||
| 39 | + run: | | ||
| 40 | + echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | ||
| 41 | + sudo udevadm control --reload-rules | ||
| 42 | + sudo udevadm trigger --name-match=kvm | ||
| 43 | + | ||
| 38 | 44 | - name: Build, install, and run E2E tests | |
| 39 | 45 | uses: reactivecircus/android-emulator-runner@v2 | |
| 40 | 46 | with: | |
| 41 | 47 | api-level: 31 | |
| 42 | 48 | arch: x86_64 | |
| 43 | 49 | script: >- | |
| 44 | - cd examples/hello-world && | ||
| 45 | - pn run android --no-logs && | ||
| 46 | - sleep 5 && | ||
| 47 | - cd ../.. && | ||
| 48 | - maestro test tests/e2e/android.yaml | ||
| 50 | + bash -lc "cd examples/hello-world && pn run android --no-logs && cd ../.. && maestro test tests/e2e/android.yaml" | ||
| 49 | 51 | ||
| 50 | 52 | e2e-ios: | |
| 51 | 53 | runs-on: macos-latest | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ env: | |||
| 3 | 3 | APP_ID: com.pythonnative.android_template | |
| 4 | 4 | --- | |
| 5 | 5 | - runFlow: flows/main.yaml | |
| 6 | - - runFlow: flows/navigation.yaml | ||
| 7 | - - runFlow: flows/layout_screen.yaml | ||
| 6 | + - runFlow: flows/navigation_android.yaml | ||
| 7 | + - runFlow: flows/layout_android.yaml | ||
| 8 | 8 | - runFlow: flows/list_screen.yaml | |
| 9 | 9 | - runFlow: flows/settings_screen.yaml | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,17 @@ | |||
| 1 | + appId: ${APP_ID} | ||
| 2 | + --- | ||
| 3 | + # Switch to the Layout screen and verify the parts that fit in the | ||
| 4 | + # 320x640 Android CI viewport. | ||
| 5 | + - launchApp | ||
| 6 | + - extendedWaitUntil: | ||
| 7 | + visible: "Hello from PythonNative Demo!" | ||
| 8 | + timeout: 30000 | ||
| 9 | + - tapOn: "Layout" | ||
| 10 | + - extendedWaitUntil: | ||
| 11 | + visible: "Flex layout" | ||
| 12 | + timeout: 10000 | ||
| 13 | + - assertVisible: "flex: 1" | ||
| 14 | + - assertVisible: "Aspect ratio" | ||
| 15 | + - assertVisible: "1:1" | ||
| 16 | + - assertVisible: "16:9" | ||
| 17 | + - assertVisible: "Absolute positioning" | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,23 @@ | |||
| 1 | + appId: ${APP_ID} | ||
| 2 | + --- | ||
| 3 | + # Navigate Home -> Showcase -> Forms and back on Android. | ||
| 4 | + - launchApp | ||
| 5 | + - extendedWaitUntil: | ||
| 6 | + visible: "Hello from PythonNative Demo!" | ||
| 7 | + timeout: 30000 | ||
| 8 | + - tapOn: "View Showcase" | ||
| 9 | + - extendedWaitUntil: | ||
| 10 | + visible: "Greetings from Home" | ||
| 11 | + timeout: 10000 | ||
| 12 | + - scroll | ||
| 13 | + - scroll | ||
| 14 | + - extendedWaitUntil: | ||
| 15 | + visible: "View Forms" | ||
| 16 | + timeout: 10000 | ||
| 17 | + - tapOn: "View Forms" | ||
| 18 | + - assertVisible: "Forms" | ||
| 19 | + - assertVisible: "You navigated two levels deep." | ||
| 20 | + - back | ||
| 21 | + - extendedWaitUntil: | ||
| 22 | + visible: "Greetings from Home" | ||
| 23 | + timeout: 10000 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments