mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-03-15 12:29:16 +01:00
(bug) fix test
This commit is contained in:
parent
0ac3caf96a
commit
792db1ee29
@ -158,7 +158,7 @@ describe('PlanForm', () => {
|
||||
const plan = plans[1];
|
||||
const machine = machines[1];
|
||||
render(<PlanForm action="update" plan={plan} onError={onError} onSuccess={onSuccess} beforeSubmit={beforeSubmit} />);
|
||||
await waitFor(() => screen.getByRole('combobox', { name: /app.admin.plan_pricing_form.copy_prices_from/ }));
|
||||
await waitFor(() => screen.getByLabelText(new RegExp(machine.name)));
|
||||
// update machine price
|
||||
fireEvent.change(screen.getByLabelText(new RegExp(machine.name)), { target: { value: 42.42 } });
|
||||
// send the form
|
||||
|
Loading…
x
Reference in New Issue
Block a user