test(agents): match submit label with its icon

The save icon contributes to the button accessible name. Match the text
suffix so the knowledge-base selector test reaches the POST assertion.

Assisted-by: Codex:gpt-6
This commit is contained in:
localai-org-maint-bot committed 2026-09-20 03:06:35 +00:00
1 parent e92243ad12
commit 7281707abe
1 file changed
+1 -1
@@ -37,7 +37,7 @@ test('agent knowledge-base selectors filter models and save their selections', a
await reranker.getByRole('option', { name: /rank-model/ }).click()
const saved = page.waitForRequest(request => request.method() === 'POST' && new URL(request.url()).pathname === '/api/agents')
await page.getByRole('button', { name: 'Create Agent', exact: true }).click()
await page.getByRole('button', { name: /Create Agent$/ }).click()
expect((await saved).postDataJSON()).toMatchObject({
name: 'research', model: 'chat-model', embedding_model: 'embed-model', reranker_model: 'rank-model',
})