Clarify server actions and group maintenance failures

This commit is contained in:
2026-10-07 19:21:53 -04:00
parent bcecc42dd1
commit c39563daef
15 changed files with 559 additions and 111 deletions
+8
View File
@@ -30,6 +30,14 @@ describe('historical match chat', () => {
expect(body).not.toContain('Loading chat');
});
it('explains an offline host without claiming live updates or offering a manual refresh', () => {
const body = render(ChatPanel, { props: { server: 't5_zombie_theater_1', hostOffline: true, hostName: 'Dallas 1' } }).body.replaceAll(/<!--.*?-->/g, '');
expect(body).toContain('Chat resumes when Dallas 1 reconnects.');
expect(body).not.toContain('Live ·');
expect(body).not.toContain('Loading chat');
expect(body).not.toContain('Refresh chat');
});
it('explains when a historical match has no saved messages', () => {
const body = render(ChatPanel, { props: { history: [] } }).body;
expect(body).toContain('No chat messages were saved for this match.');