Clarify server actions and group maintenance failures
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user