mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-05 08:16:22 +00:00
test: look for the archive toast by its new wording in the undo reopen test
This commit is contained in:
@@ -318,7 +318,7 @@ describe('Archive with the list beside the reading pane', () => {
|
||||
fireEvent.click(await screen.findByText('stub archive', {}, { timeout: 5000 }));
|
||||
await waitFor(() => expect(selectedId()).toBe('m2'));
|
||||
const archived = await waitFor(() => {
|
||||
const found = useToastStore.getState().toasts.find((toast) => toast.title === 'notifications.email_archived');
|
||||
const found = useToastStore.getState().toasts.find((toast) => toast.title === 'mail_list_extra.archived');
|
||||
expect(found?.action).toBeTruthy();
|
||||
return found!;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user