mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user