Rebuild Fleet around attention and compact live matches
This commit is contained in:
@@ -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"/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user