test: bind vacuum golden to smoothing default (#209)

Issue: #209
User-Visible: no
This commit is contained in:
Matysh
2026-08-28 23:18:02 +03:00
parent 9d2ef12c96
commit afd1ba6175
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -224,6 +224,7 @@ export const GOLDEN_SCENARIOS = Object.freeze([
theme: 'light', viewport: { width: 1000, height: 900 }, ...stage },
{ id: 'vacuum-trail-smoothing-dark', fixture: 'visual', space: 'golden-geometry', mode: 'view',
vacuumTrail: {
maxDeviationCm: 17.5,
current: [
[[180, 220], [360, 220], [360, 420], [520, 420]],
[[650, 240], [780, 240], [780, 500], [650, 620], [850, 760]],
+1
View File
@@ -394,6 +394,7 @@ test('vacuum smoothing golden covers current gaps and the previous run', () => {
const scenario = GOLDEN_SCENARIOS.find((item) => item.id === 'vacuum-trail-smoothing-dark');
assert.ok(scenario);
assert.equal(scenario.mode, 'view');
assert.equal(scenario.vacuumTrail?.maxDeviationCm, 17.5);
assert.equal(scenario.vacuumTrail?.current.length, 2);
assert.equal(scenario.vacuumTrail?.current.flat().length >= 8, true);
assert.equal(scenario.vacuumTrail?.previous.length >= 4, true);