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:
Arkadiusz Fal
2026-10-05 23:37:14 +02:00
parent dea4f590ec
commit 498a282396
5 changed files with 66 additions and 4 deletions

View File

@@ -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