mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(quality) improved expect
This commit is contained in:
parent
c1638ab54d
commit
3c9c9f56a0
@ -148,7 +148,8 @@ describe('PlanForm', () => {
|
||||
// The following query contains { hidden: true }.
|
||||
// This is a workaround because react-modal adds aria-hidden to <body> which breaks accessibility
|
||||
fireEvent.click(screen.getByRole('button', { name: /app.admin.partner_modal.create_partner/, hidden: true }));
|
||||
await waitFor(() => screen.getByText(/app.admin.plan_form.alert_partner_notification/));
|
||||
expect(screen.getByText(/app.admin.plan_form.alert_partner_notification/)).toBeInTheDocument();
|
||||
await waitFor(() => {
|
||||
expect(screen.getByText(/app.admin.plan_form.alert_partner_notification/)).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user