feat: replace browser login with imported Reddit sessions

This commit is contained in:
jjbrunton committed 2026-08-08 16:48:59 +01:00
1 parent 2b0545afcf
commit c483c7b8be
76 files changed
+2048 -2828

No files matched your search

+9
View File
@@ -200,6 +200,15 @@ describe('dashboard foundation', () => {
expect(timerRequests).toBe(2);
});
it('styles the recent-messages retry control when its request fails', async () => {
installSuccessfulApi();
server.use(http.get('/api/messages', () => HttpResponse.json({ error: 'Messages unavailable' }, { status: 503 })));
renderDashboard();
const retryButton = await screen.findByRole('button', { name: 'Retry messages' });
expect(retryButton).toHaveClass('button', 'secondary');
});
it('shows refresh progress while preserving the current overview', async () => {
installSuccessfulApi();
const user = userEvent.setup();