mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-09 14:42:41 -04:00
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:
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 }) => {
|
||||
|
||||
Reference in new issue
Block a user