test: защитить hover-gate маркеров (#564)

Issue: #564
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-09-14 03:16:00 +03:00
parent ba74cd1556
commit 0af582daa5
@@ -162,6 +162,7 @@ test('issue 212 feedback is owned by actual dispatch and lasts 200 ms', () => {
test('issue 212 removes the global touch latch and gates every shared hover selector', () => {
const card = source('houseplan-card.ts');
const styles = source('styles.ts');
assert.doesNotMatch(card, /private static _touchSeen/);
assert.match(card, /PointerModalityController/);
assert.match(card, /_clearTransientHover/);
@@ -170,6 +171,11 @@ test('issue 212 removes the global touch latch and gates every shared hover sele
/POINTER_HOVER_TARGET_SELECTOR\s*=\s*'[^']*hp-device-preview[^']*'/,
'device preview must receive the card-owned pointer hover gate',
);
assert.match(
styles,
/:host\(\[data-pointer-hover\]\)\s+\.dev:not\(\.unavail\)\[data-hp-device-hover\]\s*\{/,
'semantic device hover paint must remain gated by the current pointer modality',
);
for (const name of [
'styles.ts',