Skip to content

Commit 630906c

Browse files
committed
Make validate test more resilient
1 parent f8f9b16 commit 630906c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/__tests__/validate-plugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ test('can validate using plugin', async () => {
2323
// After "touching" the input (focusing and blurring), validation error
2424
// should appear.
2525
expect(getByTestId('username-errors')).toHaveTextContent(
26-
'The username field is required.'
26+
/the username field is required/i
2727
)
2828
})

0 commit comments

Comments
 (0)