Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,32 @@ jobs:
test_targets:
- target: test/functional/ios/driver_test.rb,test/functional/ios/patch_test.rb
name: test1
platform: ios
wdaName: WebDriverAgentRunner-Runner.app
- target: test/functional/ios/webdriver/create_session_test.rb,test/functional/ios/webdriver/w3c_actions_test.rb
name: test2
platform: ios
wdaName: WebDriverAgentRunner-Runner.app
- target: test/functional/ios/webdriver/device_test.rb
name: test3
platform: ios
wdaName: WebDriverAgentRunner-Runner.app
- target: test/functional/ios/ios/device_test.rb
name: test4
platform: ios
wdaName: WebDriverAgentRunner-Runner.app
- target: test/functional/ios/ios/device_wda_attachment_test.rb,test/functional/ios/ios/search_context_test.rb
name: test5
platform: ios
wdaName: WebDriverAgentRunner-Runner.app
- target: test/functional/ios/ios/image_comparison_test.rb
name: test6
platform: ios
wdaName: WebDriverAgentRunner-Runner.app
- target: test/functional/ios/tv_driver_test.rb
name: test7
platform: tvOS
wdaName: WebDriverAgentRunner_tvOS-Runner.app

runs-on: macos-15

Expand Down Expand Up @@ -70,6 +84,10 @@ jobs:
appium plugin install execute-driver
nohup appium --use-plugins=images,execute-driver --relaxed-security --log-timestamp --log-no-colors 2>&1 > appium.log &

- run: |
appium driver run xcuitest download-wda-sim --platform=${{matrix.test_targets.platform}} --outdir=${{ github.workspace }}/wda
name: Downloading prebuilt WDA

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -83,6 +101,7 @@ jobs:
env:
IGNORE_VERSION_SKIP: true
CI: true
LOCAL_PREBUILT_WDA: ${{ github.workspace }}/wda/${{matrix.test_targets.wdaName}}

- name: Save server output
if: ${{ always() }}
Expand Down Expand Up @@ -140,6 +159,10 @@ jobs:
appium plugin install execute-driver
nohup appium --use-plugins=images,execute-driver --relaxed-security --log-timestamp --log-no-colors > appium.log &

- run: |
appium driver run xcuitest download-wda-sim --platform=${{matrix.test_targets.platform}} --outdir=${{ github.workspace }}/wda
name: Downloading prebuilt WDA

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -152,6 +175,7 @@ jobs:
env:
IGNORE_VERSION_SKIP: true
CI: true
LOCAL_PREBUILT_WDA: ${{ github.workspace }}/wda/WebDriverAgentRunner-Runner.app

- name: Save server output
if: ${{ always() }}
Expand Down
5 changes: 5 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ def ios(platform_name = :ios)
cap = add_xctestrun(real_device, cap.dup, xcode_org_id)
end

if ENV['LOCAL_PREBUILT_WDA']
cap[:caps][:usePreinstalledWDA] = true
cap[:caps][:prebuiltWDAPath] = ENV['LOCAL_PREBUILT_WDA']
end

cap
end

Expand Down
Loading