From ca284491aa4e5602b24252cf639fae36f76911ff Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 3 Nov 2026 23:14:28 +0000 Subject: [PATCH] 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 --- core/http/react-ui/e2e/addons-gallery.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/http/react-ui/e2e/addons-gallery.spec.js b/core/http/react-ui/e2e/addons-gallery.spec.js index ec045c920f..0631ef60bd 100644 --- a/core/http/react-ui/e2e/addons-gallery.spec.js +++ b/core/http/react-ui/e2e/addons-gallery.spec.js @@ -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.