mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-05 22:29:05 +00:00
test: close House Plan panel acceptance gaps
Issue: #486 User-Visible: no
This commit is contained in:
@@ -721,6 +721,17 @@ const MUTANT_DEFINITIONS = [
|
||||
replace: ' if False: # mutant: unverifiable ownership is accepted',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'panel-readonly-empty-bypasses-write-capability',
|
||||
guard: 'node demo/smoke_houseplan_panel.mjs',
|
||||
because: 'an empty read-only panel must stay passive and lazy; bypassing the server write '
|
||||
+ 'capability would expose Add space and load onboarding for a household viewer (#486 AC10)',
|
||||
patches: [{
|
||||
file: 'src/houseplan-card.ts',
|
||||
find: ' if (this._serverCanWrite !== null) return this._serverCanWrite;',
|
||||
replace: ' if (this._serverCanWrite !== null) return true; // mutant: read-only becomes writer',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'version-recovery-treats-unknown-as-mismatch',
|
||||
guard: 'node --test --test-name-pattern="malformed values stay unknown" '
|
||||
|
||||
Reference in New Issue
Block a user