From bbb56a28eaf936c41f3a7242f6f8c9eada15e285 Mon Sep 17 00:00:00 2001 From: -l Date: Mon, 7 Oct 2024 15:20:18 +0200 Subject: [PATCH] removes onblur from tests which dont need it --- .../__tests__/NationalIdentityNumber.test.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/dnb-eufemia/src/extensions/forms/Field/NationalIdentityNumber/__tests__/NationalIdentityNumber.test.tsx b/packages/dnb-eufemia/src/extensions/forms/Field/NationalIdentityNumber/__tests__/NationalIdentityNumber.test.tsx index 0a4488b540e..e57defe9a9b 100644 --- a/packages/dnb-eufemia/src/extensions/forms/Field/NationalIdentityNumber/__tests__/NationalIdentityNumber.test.tsx +++ b/packages/dnb-eufemia/src/extensions/forms/Field/NationalIdentityNumber/__tests__/NationalIdentityNumber.test.tsx @@ -202,8 +202,6 @@ describe('Field.NationalIdentityNumber', () => { /> ) - fireEvent.blur(document.querySelector('input')) - expect(screen.queryByRole('alert')).toBeNull() }) @@ -230,8 +228,6 @@ describe('Field.NationalIdentityNumber', () => { /> ) - fireEvent.blur(document.querySelector('input')) - expect(screen.queryByRole('alert')).toBeNull() }) @@ -384,8 +380,6 @@ describe('Field.NationalIdentityNumber', () => { /> ) - fireEvent.blur(document.querySelector('input')) - expect(screen.queryByRole('alert')).toBeNull() }) @@ -399,8 +393,6 @@ describe('Field.NationalIdentityNumber', () => { /> ) - fireEvent.blur(document.querySelector('input')) - await waitFor(() => { expect(screen.queryByRole('alert')).toBeInTheDocument() expect(screen.queryByRole('alert')).toHaveTextContent( @@ -419,8 +411,6 @@ describe('Field.NationalIdentityNumber', () => { /> ) - fireEvent.blur(document.querySelector('input')) - await waitFor(() => { expect(screen.queryByRole('alert')).toBeInTheDocument() expect(screen.queryByRole('alert')).toHaveTextContent( @@ -441,8 +431,6 @@ describe('Field.NationalIdentityNumber', () => { /> ) - fireEvent.blur(document.querySelector('input')) - await waitFor(() => { expect(screen.queryByRole('alert')).toBeInTheDocument() expect(screen.queryByRole('alert')).toHaveTextContent(