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 <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto committed 2026-10-20 21:40:01 +00:00
1 parent b694b3f89c
commit 4057160b86
1 file changed
+2 -1
@@ -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.