-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(elements/ino-textarea): migrate stencil e2e tests to spec test #1305
Conversation
@BenPag can you resolve the conflicts? |
# Conflicts: # packages/elements/setupSpecTests.ts
packages/elements/src/components/ino-textarea/ino-textarea.spec.ts
Outdated
Show resolved
Hide resolved
it('should set max length property', async () => { | ||
await checkSettingOfProp('maxLength', '3'); | ||
}); | ||
|
||
it('should set min length property', async () => { | ||
await checkSettingOfProp('minLength', '3'); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could implement these as E2E test.
e.g.:
// given an ino-textarea with max-length=3
await textarea.fill('ABC')
expect(textarea).toBeValid()
await textarea.fill('ABCD')
expect(textarea).not.toBeValid()
// same for min-length
// ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot test the minlength
property. For some reasons the validation is not applied when I wrap the ino-textarea
in a form
element
Part of #1258
Proposed Changes