From 6839ddda14384878d2c36d6d29325a7d7f0828d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Po=C5=9Bpiech?= Date: Thu, 15 Feb 2024 14:25:27 +0100 Subject: [PATCH] refactor --- packages/uniforms/__suites__/BaseForm.tsx | 2 ++ 1 file changed, 2 insertions(+) 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 }); });