mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 09:08:54 -04:00
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:
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.
|
||||
|
||||
Reference in new issue
Block a user