mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 09:08:54 -04:00
test(ui): drop Settings from the 404 places
Settings is a tab of the Operate hub and not a destination of its own, so the 404 page does not list it. Assert that it is absent. Assisted-by: Claude Code:claude-sonnet-5-5 playwright Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
1 file changed
+3
-1
@@ -9,9 +9,11 @@ test.describe('404', () => {
|
||||
await expect(nf).toContainText('/app/no-such-page')
|
||||
await expect(nf.getByRole('link', { name: 'Go home' })).toHaveAttribute('href', '/app')
|
||||
const places = nf.getByRole('navigation', { name: 'Where to go' })
|
||||
for (const name of ['Home', 'Models', 'Chat', 'Add-ons', 'Settings', 'Build', 'Operate']) {
|
||||
for (const name of ['Home', 'Models', 'Chat', 'Add-ons', 'Build', 'Operate']) {
|
||||
await expect(places.getByRole('link', { name })).toBeVisible()
|
||||
}
|
||||
// Settings is a tab of the Operate hub, so the places do not list it.
|
||||
await expect(places.getByRole('link', { name: 'Settings' })).toHaveCount(0)
|
||||
})
|
||||
|
||||
test('has no search, because the app has none to offer', async ({ page }) => {
|
||||
|
||||
Reference in new issue
Block a user