|
1 | 1 | name: iOS shell |
2 | 2 |
|
3 | | -# Builds the experimental iOS shell in ios-shell/ for the simulator and runs its UI tests in 5 |
| 3 | +# Builds the experimental iOS shell in ios-shell/ for the simulator and runs its UI tests in 6 |
4 | 4 | # parallel jobs, each on its own simulator: |
5 | 5 | # - real: suite 1, against the hosted web app at my.open.bot (a Release build, a fresh install per |
6 | 6 | # test, and the Debug-only session-cookie journey), plus the Release and store build checks; |
7 | 7 | # - flow-a, flow-b: suite 2, ShellFlowUITests in 2 halves, against two mock |
8 | 8 | # stacks of the real built web app (app/workbench/mock-server.ts); |
9 | 9 | # - edges: the hardening tests, the probe site (ios-shell/Probe) and the unit tests; |
| 10 | +# - webnav: WebNavUITests on the DebugWebNav configuration (no tab bar, the web app's own |
| 11 | +# navigation), on mock stack A; |
10 | 12 | # - slide: SlideBackUITests on the DebugSlide configuration (the same app with Info.plist's |
11 | 13 | # OpenBotSlideBack on), on mock stack A; slide_repeat runs them more than once. |
12 | 14 | # |
|
24 | 26 | branches: |
25 | 27 | - ios-webview-shell |
26 | 28 | - ios-webview-shell/** |
| 29 | + - ios-shell-web-nav |
27 | 30 | paths: |
28 | 31 | - ios-shell/** |
29 | 32 | - .github/workflows/ios-shell.yml |
@@ -71,11 +74,11 @@ jobs: |
71 | 74 | fail-fast: false |
72 | 75 | matrix: |
73 | 76 | # real_backend_only: suite 1 alone. An iPad: everything but the real-backend suites. |
74 | | - shard: ${{ fromJSON(inputs.real_backend_only && '["real"]' || (inputs.device == 'ipad' && '["flow-a","flow-b","edges","slide"]' || '["real","flow-a","flow-b","edges","slide"]')) }} |
| 77 | + shard: ${{ fromJSON(inputs.real_backend_only && '["real"]' || (inputs.device == 'ipad' && '["flow-a","flow-b","edges","slide","webnav"]' || '["real","flow-a","flow-b","edges","slide","webnav"]')) }} |
75 | 78 | env: |
76 | 79 | SHARD: ${{ matrix.shard }} |
77 | 80 | # The slide job's app has the slide back on (project.yml's DebugSlide); every other job's has it off. |
78 | | - BUILD_CONFIG: ${{ matrix.shard == 'slide' && 'DebugSlide' || 'Debug' }} |
| 81 | + BUILD_CONFIG: ${{ matrix.shard == 'slide' && 'DebugSlide' || (matrix.shard == 'webnav' && 'DebugWebNav' || 'Debug') }} |
79 | 82 | SLIDE_REPEAT: ${{ inputs.slide_repeat || '1' }} |
80 | 83 | steps: |
81 | 84 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
@@ -135,8 +138,8 @@ jobs: |
135 | 138 | - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 |
136 | 139 | with: |
137 | 140 | path: DerivedData |
138 | | - key: ios-shell-dd-${{ matrix.shard == 'slide' && 'DebugSlide' || 'Debug' }}-${{ steps.dd-key-1.outputs.tree }} |
139 | | - restore-keys: ios-shell-dd-${{ matrix.shard == 'slide' && 'DebugSlide' || 'Debug' }}- |
| 141 | + key: ios-shell-dd-${{ matrix.shard == 'slide' && 'DebugSlide' || (matrix.shard == 'webnav' && 'DebugWebNav' || 'Debug') }}-${{ steps.dd-key-1.outputs.tree }} |
| 142 | + restore-keys: ios-shell-dd-${{ matrix.shard == 'slide' && 'DebugSlide' || (matrix.shard == 'webnav' && 'DebugWebNav' || 'Debug') }}- |
140 | 143 |
|
141 | 144 | # The app builds while the web app does. |
142 | 145 | - name: Start the Debug build in the background |
@@ -343,6 +346,8 @@ jobs: |
343 | 346 | edges) only=(-only-testing:$t/HardeningUITests -only-testing:$t/ShellUITests -only-testing:$t/SelfHostedUITests |
344 | 347 | -only-testing:$t/HandoffConfigTests -only-testing:$t/ShellURLsTests -only-testing:$t/ShellBackTests -only-testing:$t/ServerAddressTests |
345 | 348 | -skip-testing:$t/ShellUITests/testLoadsHostedWebApp) ;; |
| 349 | + webnav) export TEST_RUNNER_OPENBOT_SHELL_EXPECT_WEBNAV=1 |
| 350 | + only=(-only-testing:$t/WebNavUITests) ;; |
346 | 351 | slide) export TEST_RUNNER_OPENBOT_SHELL_EXPECT_SLIDE=1 |
347 | 352 | # And the probe in plain mode: with the slide on, plain mode must still show its page. |
348 | 353 | only=(-only-testing:$t/SlideBackUITests -only-testing:$t/ShellUITests/testProbeSite) |
|
0 commit comments