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
This commit is contained in:
localai-org-maint-bot committed 2026-10-09 03:14:42 +00:00
1 parent 65623166f0
commit 4046185d55
1 file changed
+2 -1
@@ -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 }) => {