mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Add URL scheme UI tests for deep link navigation
Test yattee:// custom scheme URLs navigate to correct screens: playlists, bookmarks, history, downloads, channels, subscriptions, continue-watching, and search. Handles iOS system confirmation dialog via coordinate taps since it's invisible to AXe. Settings deep link is excluded (known app bug - doesn't render when pushed to nav stack).
This commit is contained in:
@@ -35,6 +35,14 @@ module UITest
|
||||
udid
|
||||
end
|
||||
|
||||
# Open a URL in the simulator (triggers deep link handling)
|
||||
# @param udid [String] UDID of the simulator
|
||||
# @param url [String] URL to open
|
||||
def open_url(udid, url)
|
||||
output, status = Open3.capture2e('xcrun', 'simctl', 'openurl', udid, url)
|
||||
raise SimulatorError, "openurl failed: #{output}" unless status.success?
|
||||
end
|
||||
|
||||
# Shutdown a simulator by UDID
|
||||
# @param udid [String] UDID of the simulator
|
||||
def shutdown(udid)
|
||||
|
||||
Reference in New Issue
Block a user