mirror of
https://github.com/yattee/yattee.git
synced 2026-10-24 13:42:54 +00:00
Open Settings from yattee://settings
SettingsView owns its navigation stack, so pushing it onto a section's stack rendered nothing. Select the Settings section where the layout has one, otherwise present Home's settings sheet; open the Settings window on macOS.
This commit is contained in:
@@ -170,10 +170,6 @@ RSpec.describe 'URL Schemes', :smoke do
|
||||
@axe.screenshot('url-scheme-continue-watching')
|
||||
end
|
||||
|
||||
# NOTE: yattee://settings deep link is broken in the app -
|
||||
# handlePendingNavigation pushes .settings onto homePath but it doesn't render.
|
||||
# Skipping until the app's deep link handler is fixed to present Settings properly.
|
||||
|
||||
it 'opens Search via yattee://search?q=test' do
|
||||
open_url('yattee://search?q=test')
|
||||
sleep 1
|
||||
@@ -184,6 +180,16 @@ RSpec.describe 'URL Schemes', :smoke do
|
||||
expect(@axe).to have_element('Search')
|
||||
@axe.screenshot('url-scheme-search')
|
||||
end
|
||||
|
||||
# Last in the group: on iPhone Settings opens as a sheet over Home, and the
|
||||
# next deep link dismisses it.
|
||||
it 'opens Settings via yattee://settings' do
|
||||
open_url('yattee://settings')
|
||||
sleep 1
|
||||
wait_for_text('Appearance')
|
||||
expect(@axe).to have_text('Appearance')
|
||||
@axe.screenshot('url-scheme-settings')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user