Commit 0ae85fe
Add real webview screenshot capture using actual compiled bundles
New script capture-real-screenshots.js renders the real extension
webview bundles (dist/webview/details.js, chart.js, usage.js,
diagnostics.js) in headless Playwright/Chromium with:
- VS Code Dark+ theme CSS variable values
- acquireVsCodeApi() mock
- Realistic sample data matching the exact window.__INITIAL_*__ shapes
This produces pixel-accurate screenshots of the actual extension UI
code -- same HTML, same CSS, same JS -- just rendered outside VS Code.
- Update CI workflow to: npm ci, npm run compile, then capture-real
- Add npm run screenshot:real script
- Add harness HTML files to .gitignore
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 890545b commit 0ae85fe
File tree
4 files changed
+436
-11
lines changed- .github/workflows
- scripts
- vscode-extension
4 files changed
+436
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
37 | 36 | | |
38 | | - | |
39 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments