Rebuild Fleet around attention and compact live matches

This commit is contained in:
2026-10-07 18:52:26 -04:00
parent e35b84475d
commit 9999e80226
7 changed files with 614 additions and 512 deletions
+2 -2
View File
@@ -47,12 +47,12 @@ describe('status accessibility', () => {
roster: [{ num: 0, name: 'Player One', score: 30000, ping: 40, guid: '1' }]
} }).body;
const card = body.match(/<a\b[^>]*>/)?.[0] ?? '';
const titleId = card.match(/aria-labelledby="([^"]+)"/)?.[1];
const titleId = card.match(/aria-labelledby="([^"]+)"/)?.[1]?.split(' ')[0];
expect(titleId).toBeTruthy();
expect(body).toContain(`id="${titleId}"`);
expect(card).not.toContain('aria-label=');
expect(body).toContain('Online');
expect(body).toContain('Round 30');
expect(body).toMatch(/<dt[^>]*>Round<\/dt><dd[^>]*>30<\/dd>/);
expect(body).toContain('Player One');
expect(body).not.toMatch(/aria-live=|role="status"/);
});