LocalAI/core/http/react-ui
Ettore Di Giacinto a271c72931 fix(react-ui/e2e): scope backendTrigger to <main> so it skips LanguageSwitcher
The LanguageSwitcher added in the i18n PR (#9642) lives in the sidebar
and also uses aria-haspopup="listbox" — same attribute the import-form
SearchableSelect uses. The Batch D / E tests' helper resolved the trigger
with `page.locator('button[aria-haspopup="listbox"]').first()`, which now
returns the language switcher (rendered first in DOM order, in the
sidebar) instead of the backend dropdown.

After clicking the wrong button, getByRole('option', { name: 'llama-cpp' })
naturally never resolves — language options aren't backend names — and
the test times out at 30s.

Scope the locator to the <main className="main-content"> wrapper so only
buttons inside the route's main content area match. The page layout has
the Sidebar outside <main>, so this cleanly excludes it.

Assisted-by: Claude:claude-opus-4-7[1m] [Claude Code]
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2026-05-04 08:58:25 +00:00
..
e2e fix(react-ui/e2e): scope backendTrigger to <main> so it skips LanguageSwitcher 2026-05-04 08:58:25 +00:00
public/locales feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
scripts feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
src fix(react-ui): reflect disabled state on SearchableSelect button 2026-05-04 08:21:03 +00:00
bun.lock feat(ui): Interactive model config editor with autocomplete (#9149) 2026-04-07 14:42:23 +02:00
eslint.config.js feat(ui): move to React for frontend (#8772) 2026-03-05 21:47:12 +01:00
i18next-parser.config.js feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
index.html feat(react-ui): editorial refresh with Nord palette and polished primitives (#9550) 2026-04-24 23:35:59 +02:00
package-lock.json feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
package.json feat(react-ui): add multilingual (i18n) support (#9642) 2026-05-02 22:42:08 +02:00
playwright.config.js feat(ui, gallery): Show model backends and add searchable model/backend selector (#9060) 2026-03-18 21:14:41 +01:00
vite.config.js fix(ui): fix /app redirect 2026-03-05 21:43:46 +00:00