mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Fix UI tests for onboarding flow and AddRemoteServer redesign
- Skip onboarding in tests by setting UserDefaults before launch - Update all addSource.* identifiers to addRemoteServer.* for new flow - Switch from identifier-based to text-based element lookups (iOS 26 AXe limitation) - Add Yattee Server credential support in instance setup - Update baseline screenshots for Home tab and settings
This commit is contained in:
@@ -75,7 +75,12 @@ module UITest
|
||||
# Terminate if already running
|
||||
terminate(udid: udid, silent: true)
|
||||
|
||||
output, status = Open3.capture2e('xcrun', 'simctl', 'launch', udid, Config.bundle_id)
|
||||
# Skip onboarding in tests by passing launch argument
|
||||
# iOS apps accept UserDefaults overrides via launch arguments
|
||||
output, status = Open3.capture2e(
|
||||
'xcrun', 'simctl', 'launch', udid, Config.bundle_id,
|
||||
'-onboardingCompleted', 'YES'
|
||||
)
|
||||
|
||||
raise AppError, "Launch failed: #{output}" unless status.success?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user