Test portrait HUD stack spacing

This commit is contained in:
Admin 2026-09-18 01:18:47 +00:00
parent 6b0e926d05
commit d3e19fdd42

View File

@ -111,3 +111,11 @@ test('player damage is per projectile with no global cooldown or volley suppress
assert.doesNotMatch(source, /nextPirateVolleyId/); assert.doesNotMatch(source, /nextPirateVolleyId/);
assert.doesNotMatch(source, /volleyId/); 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\)/);
});