test(addons): expect the Host access tab last in the keyboard spec

The host access step added a fourth tab after Sources, so End now
selects Host access. The spec still expected Sources and failed on
every run.

Assisted-by: Claude:claude-sonnet-5-5 playwright
This commit is contained in:
Ettore Di Giacinto committed 2026-11-03 23:14:30 +00:00
1 parent 29670dbd41
commit ca284491aa
1 file changed
+2 -1
@@ -698,7 +698,8 @@ test.describe('Add-ons: access, keyboard, layout and language', () => {
await expect(tab(page, 'Find add-ons')).toHaveAttribute('aria-selected', 'true')
await expect(page).toHaveURL(/tab=browse/)
await page.keyboard.press('End')
await expect(tab(page, 'Sources')).toHaveAttribute('aria-selected', 'true')
// Host access is the last tab for an administrator.
await expect(tab(page, 'Host access')).toHaveAttribute('aria-selected', 'true')
await page.keyboard.press('Home')
await expect(tab(page, 'Installed')).toHaveAttribute('aria-selected', 'true')
// The selected tab is the only one in the tab order.