From 7281707abe89b2430c7e984d920d10cdaf4ae7fa Mon Sep 17 00:00:00 2001 From: localai-org-maint-bot <306269227+localai-org-maint-bot@users.noreply.github.com> Date: Sun, 20 Sep 2026 03:06:35 +0000 Subject: [PATCH] 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 --- core/http/react-ui/e2e/agent-kb-models.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/http/react-ui/e2e/agent-kb-models.spec.js b/core/http/react-ui/e2e/agent-kb-models.spec.js index b2573937a..1eceb7545 100644 --- a/core/http/react-ui/e2e/agent-kb-models.spec.js +++ b/core/http/react-ui/e2e/agent-kb-models.spec.js @@ -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', })