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:
Ettore Di Giacinto committed 2026-10-20 21:40:01 +00:00
1 parent e98c42ca94
commit 43f4ff4183
1 file changed
+3 -1
+3 -1
View File
@@ -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 }) => {