Skip to content

Commit 32e7197

Browse files
authored
test: Fix flaky Tests for SwiftUI (#5519)
1 parent ee700c5 commit 32e7197

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ui-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
xcode_version: 16.2
5151
build_with_make: true
5252
macos_version: macos-15
53+
fastlane_command_extra_arguments: device:"iPhone 16 (18.5)"
5354

5455
ui-tests-swift:
5556
name: UI Tests for iOS-Swift Xcode ${{matrix.xcode}} - V5 # Up the version with every change to keep track of flaky tests

fastlane/Fastfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,11 @@ platform :ios do
236236
)
237237
end
238238

239-
lane :ui_tests_ios_swiftui do
239+
lane :ui_tests_ios_swiftui do |options|
240240
run_ui_tests(
241241
scheme: "iOS-SwiftUI",
242-
result_bundle_name: "ui_tests_ios_swiftui"
242+
result_bundle_name: "ui_tests_ios_swiftui",
243+
device: options[:device]
243244
)
244245
end
245246

0 commit comments

Comments
 (0)