Repository navigation
feat: add Usage tab with provider limits and UI font, density and time settings #4814
visual-regression.yml
on: pull_request
webview-visual
4m 35s
theme-fixtures
2m 13s
extension-host-visual
4m 33s
Annotations
12 errors and 5 notices
|
extension-host-visual
Process completed with exit code 1.
|
|
src/visual/electron.visual.ts:212:6 › renders chat-dark in the real VS Code Extension Host:
apps/vscode-e2e/src/visual/electron.visual.ts#L259
1) src/visual/electron.visual.ts:212:6 › renders chat-dark in the real VS Code Extension Host ────
Error: expect(locator).toHaveScreenshot(expected) failed
Locator: locator('.part.sidebar')
2070 pixels (ratio 0.01 of all image pixels) are different.
Snapshot: electron-chat-dark-sidebar.png
Call log:
- Expect "toHaveScreenshot(electron-chat-dark-sidebar.png)" with timeout 60000ms
- verifying given screenshot expectation
- waiting for locator('.part.sidebar')
- locator resolved to <div role="none" id="workbench.parts.sidebar" class="part sidebar left pane-composite-part">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- attempting scroll into view action
- waiting for element to be stable
- 2070 pixels (ratio 0.01 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('.part.sidebar')
- locator resolved to <div role="none" id="workbench.parts.sidebar" class="part sidebar left pane-composite-part">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- attempting scroll into view action
- waiting for element to be stable
- captured a stable screenshot
- 2070 pixels (ratio 0.01 of all image pixels) are different.
257 | .frameLocator("iframe")
258 | .locator('[data-testid="context-tokens-count"],[data-testid="context-window-size"]')
> 259 | await expect(sidebar).toHaveScreenshot(`electron-${scenario.name}-sidebar.png`, {
| ^
260 | mask: [tokenCountMask],
261 | })
262 |
at /__w/Zoo-Code/Zoo-Code/apps/vscode-e2e/src/visual/electron.visual.ts:259:26
|
|
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:45:1 › shows the empty state:
webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx#L58
6) [chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:45:1 › shows the empty state, and hides the limits section when no provider has a usage API
Error: A snapshot doesn't exist at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/__screenshots__/usage-settings-empty.png, writing actual.
56 | await expect(story.getByTestId("usage-export-csv")).toHaveCount(0)
57 |
> 58 | await expect(story).toHaveScreenshot("usage-settings-empty.png")
| ^
59 | })
60 |
at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx:58:2
|
|
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:29:1 › shows quiet statuses for provider limits that cannot be read:
webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx#L42
5) [chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:29:1 › shows quiet statuses for provider limits that cannot be read, and keeps the history
Error: A snapshot doesn't exist at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/__screenshots__/usage-settings-degraded.png, writing actual.
40 | await expect(story.getByTestId("usage-stats")).toBeVisible()
41 |
> 42 | await expect(story).toHaveScreenshot("usage-settings-degraded.png")
| ^
43 | })
44 |
45 | test("shows the empty state, and hides the limits section when no provider has a usage API", async ({
at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx:42:2
|
|
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code high-contrast-light theme:
webview-ui/playwright/layout-contracts.ts#L126
4) [chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code high-contrast-light theme
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 18
- Array []
+ Array [
+ "$5.72 clips horizontally",
+ "417.8k clips horizontally",
+ "19% from cache clips horizontally",
+ "Anthropic clips horizontally",
+ "GitHub Copilot clips horizontally",
+ "claude-sonnet-5Anthropic clips horizontally",
+ "claude-haiku-5Anthropic clips horizontally",
+ "gpt-5GitHub Copilot clips horizontally",
+ "Refactor the auth middleware clips horizontally",
+ "Anthropic · claude-sonnet-5 clips horizontally",
+ "Add a loading spinner to the Save button clips horizontally",
+ "Anthropic · claude-sonnet-5 clips horizontally",
+ "Investigate the flaky checkout test clips horizontally",
+ "Anthropic · claude-haiku-5 clips horizontally",
+ "Write unit tests for the billing service clips horizontally",
+ "GitHub Copilot · gpt-5 clips horizontally",
+ ]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
at ../playwright/layout-contracts.ts:126
124 | }, WCAG_TEXT_SPACING)
125 |
> 126 | await expect.poll(() => root.evaluate(collectBoundedLayoutFailures)).toEqual([])
| ^
127 |
128 | for (const actionRow of actionRows) {
129 | const containment = await actionRow.evaluate((row) => {
at expectBoundedLayout (/__w/Zoo-Code/Zoo-Code/webview-ui/playwright/layout-contracts.ts:126:71)
at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx:25:3
|
|
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code high-contrast-light theme:
webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx#L23
4) [chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code high-contrast-light theme
Error: A snapshot doesn't exist at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/__screenshots__/usage-settings-high-contrast-light.png, writing actual.
21 | await expect(story.getByTestId("usage-daily-chart")).toBeVisible()
22 |
> 23 | await expect(story).toHaveScreenshot(`usage-settings-${theme.name}.png`)
| ^
24 | const exportButton = story.getByTestId("usage-export-csv")
25 | await expectBoundedLayout(page, story, { focusedControl: exportButton })
26 | })
at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx:23:3
|
|
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code high-contrast theme:
webview-ui/playwright/layout-contracts.ts#L126
3) [chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code high-contrast theme
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 18
- Array []
+ Array [
+ "$5.72 clips horizontally",
+ "417.8k clips horizontally",
+ "19% from cache clips horizontally",
+ "Anthropic clips horizontally",
+ "GitHub Copilot clips horizontally",
+ "claude-sonnet-5Anthropic clips horizontally",
+ "claude-haiku-5Anthropic clips horizontally",
+ "gpt-5GitHub Copilot clips horizontally",
+ "Refactor the auth middleware clips horizontally",
+ "Anthropic · claude-sonnet-5 clips horizontally",
+ "Add a loading spinner to the Save button clips horizontally",
+ "Anthropic · claude-sonnet-5 clips horizontally",
+ "Investigate the flaky checkout test clips horizontally",
+ "Anthropic · claude-haiku-5 clips horizontally",
+ "Write unit tests for the billing service clips horizontally",
+ "GitHub Copilot · gpt-5 clips horizontally",
+ ]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
at ../playwright/layout-contracts.ts:126
124 | }, WCAG_TEXT_SPACING)
125 |
> 126 | await expect.poll(() => root.evaluate(collectBoundedLayoutFailures)).toEqual([])
| ^
127 |
128 | for (const actionRow of actionRows) {
129 | const containment = await actionRow.evaluate((row) => {
at expectBoundedLayout (/__w/Zoo-Code/Zoo-Code/webview-ui/playwright/layout-contracts.ts:126:71)
at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx:25:3
|
|
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code high-contrast theme:
webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx#L23
3) [chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code high-contrast theme
Error: A snapshot doesn't exist at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/__screenshots__/usage-settings-high-contrast.png, writing actual.
21 | await expect(story.getByTestId("usage-daily-chart")).toBeVisible()
22 |
> 23 | await expect(story).toHaveScreenshot(`usage-settings-${theme.name}.png`)
| ^
24 | const exportButton = story.getByTestId("usage-export-csv")
25 | await expectBoundedLayout(page, story, { focusedControl: exportButton })
26 | })
at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx:23:3
|
|
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code light theme:
webview-ui/playwright/layout-contracts.ts#L126
2) [chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code light theme
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 18
- Array []
+ Array [
+ "$5.72 clips horizontally",
+ "417.8k clips horizontally",
+ "19% from cache clips horizontally",
+ "Anthropic clips horizontally",
+ "GitHub Copilot clips horizontally",
+ "claude-sonnet-5Anthropic clips horizontally",
+ "claude-haiku-5Anthropic clips horizontally",
+ "gpt-5GitHub Copilot clips horizontally",
+ "Refactor the auth middleware clips horizontally",
+ "Anthropic · claude-sonnet-5 clips horizontally",
+ "Add a loading spinner to the Save button clips horizontally",
+ "Anthropic · claude-sonnet-5 clips horizontally",
+ "Investigate the flaky checkout test clips horizontally",
+ "Anthropic · claude-haiku-5 clips horizontally",
+ "Write unit tests for the billing service clips horizontally",
+ "GitHub Copilot · gpt-5 clips horizontally",
+ ]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
at ../playwright/layout-contracts.ts:126
124 | }, WCAG_TEXT_SPACING)
125 |
> 126 | await expect.poll(() => root.evaluate(collectBoundedLayoutFailures)).toEqual([])
| ^
127 |
128 | for (const actionRow of actionRows) {
129 | const containment = await actionRow.evaluate((row) => {
at expectBoundedLayout (/__w/Zoo-Code/Zoo-Code/webview-ui/playwright/layout-contracts.ts:126:71)
at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx:25:3
|
|
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code light theme:
webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx#L23
2) [chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code light theme
Error: A snapshot doesn't exist at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/__screenshots__/usage-settings-light.png, writing actual.
21 | await expect(story.getByTestId("usage-daily-chart")).toBeVisible()
22 |
> 23 | await expect(story).toHaveScreenshot(`usage-settings-${theme.name}.png`)
| ^
24 | const exportButton = story.getByTestId("usage-export-csv")
25 | await expectBoundedLayout(page, story, { focusedControl: exportButton })
26 | })
at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx:23:3
|
|
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code dark theme:
webview-ui/playwright/layout-contracts.ts#L126
1) [chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code dark theme
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 18
- Array []
+ Array [
+ "$5.72 clips horizontally",
+ "417.8k clips horizontally",
+ "19% from cache clips horizontally",
+ "Anthropic clips horizontally",
+ "GitHub Copilot clips horizontally",
+ "claude-sonnet-5Anthropic clips horizontally",
+ "claude-haiku-5Anthropic clips horizontally",
+ "gpt-5GitHub Copilot clips horizontally",
+ "Refactor the auth middleware clips horizontally",
+ "Anthropic · claude-sonnet-5 clips horizontally",
+ "Add a loading spinner to the Save button clips horizontally",
+ "Anthropic · claude-sonnet-5 clips horizontally",
+ "Investigate the flaky checkout test clips horizontally",
+ "Anthropic · claude-haiku-5 clips horizontally",
+ "Write unit tests for the billing service clips horizontally",
+ "GitHub Copilot · gpt-5 clips horizontally",
+ ]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
at ../playwright/layout-contracts.ts:126
124 | }, WCAG_TEXT_SPACING)
125 |
> 126 | await expect.poll(() => root.evaluate(collectBoundedLayoutFailures)).toEqual([])
| ^
127 |
128 | for (const actionRow of actionRows) {
129 | const containment = await actionRow.evaluate((row) => {
at expectBoundedLayout (/__w/Zoo-Code/Zoo-Code/webview-ui/playwright/layout-contracts.ts:126:71)
at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx:25:3
|
|
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code dark theme:
webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx#L23
1) [chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code dark theme
Error: A snapshot doesn't exist at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/__screenshots__/usage-settings-dark.png, writing actual.
21 | await expect(story.getByTestId("usage-daily-chart")).toBeVisible()
22 |
> 23 | await expect(story).toHaveScreenshot(`usage-settings-${theme.name}.png`)
| ^
24 | const exportButton = story.getByTestId("usage-export-csv")
25 | await expectBoundedLayout(page, story, { focusedControl: exportButton })
26 | })
at /__w/Zoo-Code/Zoo-Code/webview-ui/src/components/settings/__tests__/UsageSettings.visual.tsx:23:3
|
|
theme-fixtures
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|
|
🎭 Playwright Run Summary
1 failed
src/visual/electron.visual.ts:212:6 › renders chat-dark in the real VS Code Extension Host ─────
8 passed (1.9m)
|
|
extension-host-visual
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|
|
🎭 Playwright Run Summary
6 failed
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code dark theme
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code light theme
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code high-contrast theme
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:9:2 › renders the Usage tab with provider limits and history in the VS Code high-contrast-light theme
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:29:1 › shows quiet statuses for provider limits that cannot be read, and keeps the history
[chromium] › src/components/settings/__tests__/UsageSettings.visual.tsx:45:1 › shows the empty state, and hides the limits section when no provider has a usage API
83 passed (3.1m)
|
|
webview-visual
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
extension-host-visual-regression
|
16.4 MB |
sha256:995db7610ab1e893bbc2d58a8f76fd77432257186a38b30b6119467b07455eae
|
|
|
webview-visual-regression
|
1.01 MB |
sha256:efed8dc5f7040678a0cf152c631ec50854d821dae39b81166ef53925a6471caf
|
|