From 4046185d554a97bc1dbdb50b6bee6d5cc3edc961 Mon Sep 17 00:00:00 2001 From: localai-org-maint-bot <306269227+localai-org-maint-bot@users.noreply.github.com> Date: Fri, 9 Oct 2026 03:14:28 +0000 Subject: [PATCH] test(traffic): match complete percentile labels Playwright joins adjacent table-cell text. A llama-cpp backend followed by 99 requests then matches p99, although no percentile is shown. Require word boundaries while keeping the absence assertion. Assisted-by: Codex:gpt-6 --- core/http/react-ui/e2e/traffic-models-host.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/http/react-ui/e2e/traffic-models-host.spec.js b/core/http/react-ui/e2e/traffic-models-host.spec.js index 3c7073960..f67763286 100644 --- a/core/http/react-ui/e2e/traffic-models-host.spec.js +++ b/core/http/react-ui/e2e/traffic-models-host.spec.js @@ -17,7 +17,8 @@ test.describe('Traffic models', () => { await expect(bge.locator('td.dk-num').last()).toHaveText('-') // The failed load of flux-dev is in the backend-operation buffer. await expect(page.locator('tr[data-entity="flux-dev"]')).toContainText('1') - await expect(page.getByText(/p50|p95|p99/)).toHaveCount(0) + // A row's concatenated text can contain llama-cpp followed by 99 requests. + await expect(page.getByText(/\bp(?:50|95|99)\b/i)).toHaveCount(0) }) test('a row opens in place with the split, the buffer and the links', async ({ page }) => {