diff --git a/tests/wiring.test.mjs b/tests/wiring.test.mjs index 3db6d75..f53ed3f 100644 --- a/tests/wiring.test.mjs +++ b/tests/wiring.test.mjs @@ -111,3 +111,11 @@ test('player damage is per projectile with no global cooldown or volley suppress assert.doesNotMatch(source, /nextPirateVolleyId/); assert.doesNotMatch(source, /volleyId/); }); + +test('portrait status cards sit tightly beneath the top HUD', async () => { + const source = await read('src/mobile-hud.js'); + + assert.match(source, /\.steam-player-card \{[\s\S]*?top: clamp\(80px, 10\.3vh, 90px\)/); + assert.match(source, /\.steam-enemy-card \{[\s\S]*?top: clamp\(80px, 10\.3vh, 90px\)/); + assert.match(source, /@media \(min-width: 700px\)[\s\S]*?\.steam-player-card,[\s\S]*?\.steam-enemy-card \{[\s\S]*?top: clamp\(70px, 20vh, 104px\)/); +});