From 4057160b8614875781f4e1c7a01a08ec648be3d5 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 20 Oct 2026 15:15:58 +0000 Subject: [PATCH] test(ui): click the shell title in the Studio slash-key spec The add-on shell titles the page, and the Studio overview no longer draws a second title, but the generator tabs keep theirs, so a bare h1 locator matched two elements. Click the first, which is the shell's. Assisted-by: Claude Code:claude-sonnet-5-5 node Signed-off-by: Ettore Di Giacinto --- core/http/react-ui/e2e/studio-composer.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/http/react-ui/e2e/studio-composer.spec.js b/core/http/react-ui/e2e/studio-composer.spec.js index f6aa25d62..cd389d06d 100644 --- a/core/http/react-ui/e2e/studio-composer.spec.js +++ b/core/http/react-ui/e2e/studio-composer.spec.js @@ -134,7 +134,8 @@ test.describe('Studio composer: keys', () => { test('/ focuses the prompt from anywhere on the page', async ({ page }) => { await mockStudio(page) await page.goto('/app/studio') - await page.locator('h1.page-title').click() + // The add-on shell titles the page; click that title, away from every field. + await page.locator('h1.page-title').first().click() await page.keyboard.press('/') await expect(prompt(page)).toBeFocused() // Typing a slash in the prompt is a slash, not a jump.