mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
test: bind vacuum golden to smoothing default (#209)
Issue: #209 User-Visible: no
This commit is contained in:
@@ -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]],
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user