test: prove the multi-floor overlay in the production bundle

User-Visible: no
Issue: #162
This commit is contained in:
Codex
2026-09-03 19:21:39 +03:00
parent 9899d628ac
commit 26b0b58320
7 changed files with 275 additions and 4 deletions
+12
View File
@@ -381,6 +381,18 @@ const MUTANT_DEFINITIONS = [
replace: ' const kept = routes;',
}],
},
{
id: 'vacuum-overlay-back-to-the-dock-space-filter',
guard: 'npm run bundle:sync && node demo/smoke_vacuum_multifloor.mjs',
because: 'the overlay layer must see every robot of the plan, not only those whose DOCK '
+ 'is in the space on screen: the old filter is exactly why a multi-floor robot could '
+ 'never appear on its second floor (#162, AC2)',
patches: [{
file: 'src/houseplan-card.ts',
find: ' ${this._renderVacuums(this._renderDevices, view, space.id)}',
replace: ' ${this._renderVacuums(devs, view, space.id)}',
}],
},
{
id: 'area-snapshot-cleanup-ignores-authority',
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '