UI Tests fixes. (#1322)

* Fix broken UI tests and update snapshots.

* Tweak workflow.

* Update schedule and zip the result bundle.
This commit is contained in:
Doug
2023-07-13 16:10:41 +01:00
committed by GitHub
parent 3ff257c075
commit dff18d7851
10 changed files with 28 additions and 16 deletions
+11
View File
@@ -110,6 +110,9 @@ lane :unit_tests do
end
lane :ui_tests do |options|
# Use a fresh simulator state to ensure hardware keyboard isn't attached.
reset_simulator_contents()
create_simulator_if_necessary(
name: "iPad (9th generation)",
type: "com.apple.CoreSimulator.SimDeviceType.iPad-9th-generation"
@@ -138,6 +141,14 @@ lane :ui_tests do |options|
scheme: "UITests",
binary_basename: "ElementX.app"
)
# Zip the result bundle for faster upload.
zip(
path: "./fastlane/test_output/UITests.xcresult",
output_path: "./fastlane/test_output/UITests.xcresult.zip"
)
# Shell working directory is already inside the fastlane dir.
sh("rm -rf ./test_output/UITests.xcresult")
end