You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8d3e6dc
Browse filesBrowse the repository at this point in the historyBrowse files
- PASS: `npx playwright test tests/playwright/tools/AssetToolMockRepository.spec.mjs --reporter=line --workers=1`
46
+
- Result: 3 passed.
47
+
- PASS: `npm run test:workspace-v2`
48
+
- Result: 5 passed.
49
+
- PASS: `git diff --check`
50
+
51
+
## Playwright Result
52
+
- PASS: targeted Assets Playwright validates Data Upload/Reference, Data `.json`/`.csv`/`.txt` filename capture, Data upload missing-file failure, Sprite/Vector/Palette Reference-only source rules, Image/Audio/Font upload filename behavior, Projectile absence, shared Tags type-ahead, and owner scope.
53
+
54
+
## V8 Coverage
55
+
- PASS/WARN: `toolbox/assets/assets.js` browser V8 coverage collected at 96%.
56
+
- WARN: `src/dev-runtime/persistence/tool-repositories/assets-mock-repository.js` is exercised through Node-side repository assertions and API-backed browser behavior, but is not browser-collected V8 runtime code.
- PASS: `toolbox/assets/assets.js` contains `const ALWAYS_MIXED_SOURCE_ASSET_TYPES = new Set(["Data"]);`.
62
+
- PASS: `toolbox/assets/assets.js` contains `Data can upload .json, .csv, or .txt files`.
63
+
- PASS: `toolbox/assets/assets.js` contains `Sprites are Reference-only for MVP.`
64
+
- PASS: `toolbox/assets/assets.js` contains `Vectors are Reference-only for MVP.`
65
+
- PASS: `toolbox/assets/assets.js` contains `Palette References must reference a palette swatch.`
66
+
- PASS: `rg "catalogFileNameForName|fake filename"` returned no active implementation matches.
67
+
- PASS: Projectile appears only in negative Playwright assertions confirming it is absent.
68
+
69
+
## Skipped Lanes
70
+
- Samples validation: SKIP. Samples are explicitly out of scope; this PR only changes the Assets tool source-rule behavior and its mock repository contract.
71
+
- Full samples smoke: SKIP. The request explicitly says not to run full samples smoke.
72
+
- Broad unrelated toolbox lanes: SKIP. No shared navigation, tool registry, auth, sample JSON, or production runtime behavior changed.
73
+
74
+
## Manual Validation Steps
75
+
1. Open `toolbox/assets/index.html`.
76
+
2. Reset Asset Library.
77
+
3. Add Data and confirm Source offers Upload and Reference.
78
+
4. Save Data Upload without selecting a file and confirm visible failure.
79
+
5. Select `.json`, `.csv`, then `.txt` files and confirm the File detail updates to the selected filename.
80
+
6. Save Data Upload, then add another Data row and choose Reference to confirm the reference selector appears.
81
+
7. Add Sprites and Vectors and confirm only Reference is available and no Upload File picker appears.
82
+
8. Add Palette References and confirm it remains Reference-only.
83
+
9. Add Images, Audio, and Fonts and confirm Upload filename display still works.
84
+
85
+
## Samples Decision
86
+
- SKIP: no sample JSON alignment, sample runtime, or sample smoke behavior is in scope for PR_26163_073.
Coverage source: targeted Playwright/Chromium V8 coverage from tests/playwright/tools/AssetToolMockRepository.spec.mjs.
5
5
Dependencies: no new npm packages.
6
6
Thresholds: none enforced; coverage is advisory.
7
-
Result: WARN only for dev-runtime code that is exercised by tests but not collectible by browser V8 runtime coverage.
7
+
Result: PASS/WARN. Browser runtime coverage was collected for the changed Assets UI module; dev-runtime repository code is covered by assertions and API behavior but is not browser-collected V8 code.
8
8
9
9
Changed runtime JavaScript files:
10
-
(94%) toolbox/assets/assets.js - covered by targeted Assets Playwright; V8 reported executed lines 704/704 and executed functions 67/71.
10
+
(96%) toolbox/assets/assets.js - covered by targeted Assets Playwright; V8 reported executed lines 725/725 and executed functions 69/72.
11
11
(0%) src/dev-runtime/persistence/tool-repositories/assets-mock-repository.js - WARN: dev-runtime repository code is exercised by Node-side repository assertions and browser behavior through the API adapter, but it is not browser runtime JavaScript collected by Playwright V8 coverage.
12
12
13
13
Changed non-runtime validation files:
14
-
(0%) tests/playwright/tools/AssetToolMockRepository.spec.mjs - Playwright spec updated for PR072 behavior; test files are not browser runtime coverage targets.
14
+
(0%) tests/playwright/tools/AssetToolMockRepository.spec.mjs - Playwright spec updated for PR073 behavior; test files are not browser runtime coverage targets.
0 commit comments