Skip to content
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

Merged
merged 13 commits into from
Mar 15, 2024

Conversation

BenPag
Copy link
Collaborator

@BenPag BenPag commented Mar 11, 2024

Part of #1258

Proposed Changes

  • split existing e2e test into playwright and jest spec tests

@janivo
Copy link
Collaborator

janivo commented Mar 12, 2024

@BenPag can you resolve the conflicts?

Comment on lines 67 to 73
it('should set max length property', async () => {
await checkSettingOfProp('maxLength', '3');
});

it('should set min length property', async () => {
await checkSettingOfProp('minLength', '3');
});
Copy link
Collaborator

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
// ...

Copy link
Collaborator Author

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

@janivo janivo merged commit 03bf546 into master Mar 15, 2024
4 checks passed
@janivo janivo deleted the elements-migrate-ino-textarea-tests branch March 15, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants