test(screenshots): restore screenshot-neutrality after the determinism refactor
The determinism conversion silently dropped/renamed screenshots vs the committed baselines, so CI flagged ~35 baselines as "removed". Restore them: - pl_editor-*: re-add the "pl_editor-" prefix the conversion dropped (5). - Buffer screenshots that lost their path: (eeschema draw-wires/loaded-css, pcbnew draw-lines/loaded-css, pcbnew-move, dark-mode, eeschema-crosshair, aui-resize) re-add path:'test-results/<name>' so they SAVE and still feed the in-test pixel-diff analysis (17). - Dropped animating/loading captures re-added via stableShot / raw screenshot: timer-03/05/06, dialogs-timer-running/started, wxgrid-02/03, 01-loading (7). Delete 5 obsolete wizard baselines (eeschema/gerbview/pl_editor/symbol_editor/ generic -wizard-00-initial): every app is now seeded to bypass the first-run setup wizard (that was the point of removing the wizard for/if loop), so those states are no longer produced — pl_editor.spec asserts "no wizard appears" instead. Net: every committed baseline has a producer again (0 "removed"); determinism guard green; affected specs pass (e2e 40, kicad 12) and emit the restored PNGs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BVX1pHMvRPYHdp6ZfEawrk
This commit is contained in:
parent
4c3a4cacd4
commit
c1eb08108b
16 changed files with 47 additions and 23 deletions
|
|
@ -142,7 +142,7 @@ test.describe('PCBnew move with "m" (#9)', () => {
|
|||
const drawnId = newItems[0].id;
|
||||
const pos0 = await getPos(page, drawnId);
|
||||
|
||||
const beforeMove = await page.screenshot({ scale: 'css' });
|
||||
const beforeMove = await page.screenshot({ path: 'test-results/pcbnew-move-00-before.png', scale: 'css' });
|
||||
|
||||
// Hover onto the line, select it, press m, nudge right, commit with Enter. These
|
||||
// are documented interaction dwells: selection, move-mode entry, and per-arrow
|
||||
|
|
@ -166,7 +166,7 @@ test.describe('PCBnew move with "m" (#9)', () => {
|
|||
await page.keyboard.press('Enter');
|
||||
await page.waitForTimeout(500); // eslint-disable-line -- documented interaction dwell
|
||||
|
||||
const afterMove = await page.screenshot({ scale: 'css' });
|
||||
const afterMove = await page.screenshot({ path: 'test-results/pcbnew-move-01-after.png', scale: 'css' });
|
||||
|
||||
const pos1 = await getPos(page, drawnId);
|
||||
const dx = pos1.x - pos0.x;
|
||||
|
|
|
|||
Loading…
Reference in a new issue