You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For what version of Nuxt UI are you suggesting this?
v3.0.0-alpha.x
Description
Hey. I'd like to be able to write a simple test, validating that an input field is required and shows correct validation message. Might look something like this:
describe('login page',async()=>{awaitsetup();it('requires the email field',async()=>{constpage=awaitcreatePage('/sign-in');awaitpage.getByTestId('sign-in').click();expect(awaitpage.getByTestId('email-error').isVisible()).toBe(true);});});
It does not seem to be possible to add data attributes, in this case, email-error to the error message that appears on failed form validation.
This is obviously just an example, but I'm sure it'd be useful on many other components.
Additional context
No response
The text was updated successfully, but these errors were encountered:
For what version of Nuxt UI are you suggesting this?
v3.0.0-alpha.x
Description
Hey. I'd like to be able to write a simple test, validating that an input field is required and shows correct validation message. Might look something like this:
It does not seem to be possible to add data attributes, in this case,
email-error
to the error message that appears on failed form validation.This is obviously just an example, but I'm sure it'd be useful on many other components.
Additional context
No response
The text was updated successfully, but these errors were encountered: