diff --git a/packages/uniforms/__suites__/BaseForm.tsx b/packages/uniforms/__suites__/BaseForm.tsx index 1c5d36346..a060a50f2 100644 --- a/packages/uniforms/__suites__/BaseForm.tsx +++ b/packages/uniforms/__suites__/BaseForm.tsx @@ -31,6 +31,7 @@ export function testBaseForm(BaseForm: typeof UniformsBaseForm) {
, ); + expect(container.getElementsByTagName('div')).toHaveLength(3); }); @@ -74,6 +75,7 @@ export function testBaseForm(BaseForm: typeof UniformsBaseForm) { } />, ); + fireEvent.submit(screen.getByTestId('form')); expect(onSubmit).toHaveBeenLastCalledWith({ submit: 1 }); });