Skip to content

Commit

Permalink
removes onblur from tests which dont need it
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Oct 8, 2024
1 parent 667c0a5 commit bbb56a2
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ describe('Field.NationalIdentityNumber', () => {
/>
)

fireEvent.blur(document.querySelector('input'))

expect(screen.queryByRole('alert')).toBeNull()
})

Expand All @@ -230,8 +228,6 @@ describe('Field.NationalIdentityNumber', () => {
/>
)

fireEvent.blur(document.querySelector('input'))

expect(screen.queryByRole('alert')).toBeNull()
})

Expand Down Expand Up @@ -384,8 +380,6 @@ describe('Field.NationalIdentityNumber', () => {
/>
)

fireEvent.blur(document.querySelector('input'))

expect(screen.queryByRole('alert')).toBeNull()
})

Expand All @@ -399,8 +393,6 @@ describe('Field.NationalIdentityNumber', () => {
/>
)

fireEvent.blur(document.querySelector('input'))

await waitFor(() => {
expect(screen.queryByRole('alert')).toBeInTheDocument()
expect(screen.queryByRole('alert')).toHaveTextContent(
Expand All @@ -419,8 +411,6 @@ describe('Field.NationalIdentityNumber', () => {
/>
)

fireEvent.blur(document.querySelector('input'))

await waitFor(() => {
expect(screen.queryByRole('alert')).toBeInTheDocument()
expect(screen.queryByRole('alert')).toHaveTextContent(
Expand All @@ -441,8 +431,6 @@ describe('Field.NationalIdentityNumber', () => {
/>
)

fireEvent.blur(document.querySelector('input'))

await waitFor(() => {
expect(screen.queryByRole('alert')).toBeInTheDocument()
expect(screen.queryByRole('alert')).toHaveTextContent(
Expand Down

0 comments on commit bbb56a2

Please sign in to comment.