test: close House Plan panel acceptance gaps

Issue: #486
User-Visible: no
This commit is contained in:
Matysh
2026-09-08 00:55:40 +03:00
parent 8a97d4e30d
commit 597488f77e
45 changed files with 587 additions and 413 deletions
+4
View File
@@ -21,6 +21,10 @@ test('#486 menu and container-owned panel layout have explicit accessibility and
assert.match(panel, /new CustomEvent\('hass-toggle-menu', \{[\s\S]*bubbles: true,[\s\S]*composed: true/);
assert.match(panel, /width: 44px;[\s\S]*height: 44px;/);
assert.match(panel, /setAttribute\('aria-label', label\)/);
assert.match(panel, /document\.createElement\('header'\)/);
assert.match(panel, /toolbar\.setAttribute\('role', 'toolbar'\)/);
assert.doesNotMatch(panel, /appbar\.setAttribute\('role', 'toolbar'\)/,
'the toolbar may not replace the app bar header landmark');
assert.match(panel, /grid-template-rows: auto minmax\(0, 1fr\)/);
assert.match(panel, /\.content \{[\s\S]*min-width: 0;[\s\S]*min-height: 0;[\s\S]*overflow: hidden;/);
assert.doesNotMatch(panel, /100dvh|100vh|safe-area-inset/,