mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 09:49: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:
@@ -72,6 +72,21 @@ module UITest
|
||||
URI.parse(yattee_server_url).host
|
||||
end
|
||||
|
||||
# Yattee Server username for testing (configurable via env)
|
||||
def yattee_server_username
|
||||
ENV.fetch('YATTEE_SERVER_USERNAME', nil)
|
||||
end
|
||||
|
||||
# Yattee Server password for testing (configurable via env)
|
||||
def yattee_server_password
|
||||
ENV.fetch('YATTEE_SERVER_PASSWORD', nil)
|
||||
end
|
||||
|
||||
# Whether Yattee Server credentials are configured
|
||||
def yattee_server_credentials?
|
||||
yattee_server_username && yattee_server_password
|
||||
end
|
||||
|
||||
# Invidious URL for testing (configurable via env)
|
||||
def invidious_url
|
||||
ENV.fetch('INVIDIOUS_URL', 'https://invidious.home.arekf.net')
|
||||
|
||||
Reference in New Issue
Block a user