mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user