Expose suspended accounts in dashboard
This commit is contained in:
1 parent
7d039265e7
commit
6a009a41b4
7 files changed
+49
-6
No files matched your search
@@ -96,6 +96,18 @@ describe('accounts page', () => {
|
||||
expect(screen.getByText('Waiting for a refreshed session')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('shows a confirmed Reddit suspension separately from a refreshable session pause', async () => {
|
||||
server.use(http.get('/api/accounts', () => HttpResponse.json([
|
||||
{ ...account, isRunning: false, status: 'suspended' },
|
||||
])));
|
||||
renderAccounts();
|
||||
|
||||
expect(await screen.findByText('u/example-account is suspended by Reddit.')).toBeInTheDocument();
|
||||
expect(screen.getAllByText('Account suspended')).toHaveLength(1);
|
||||
expect(screen.getByText(/cannot send, scan, or sync/i)).toBeInTheDocument();
|
||||
expect(screen.queryByText('One account is paused.')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('explains a held account with what Reddit actually said, plus the profile evidence', async () => {
|
||||
server.use(http.get('/api/accounts', () => HttpResponse.json([{ ...account, establishment }])));
|
||||
renderAccounts();
|
||||
|
||||
Reference in new issue
Block a user