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

Add test helpers for some of the components #280

Open
AndreJoaquim opened this issue Oct 22, 2018 · 1 comment
Open

Add test helpers for some of the components #280

AndreJoaquim opened this issue Oct 22, 2018 · 1 comment

Comments

@AndreJoaquim
Copy link
Contributor

AndreJoaquim commented Oct 22, 2018

Right now, it's a bit difficult to use some components in acceptance tests due to their complexity.
For example, the uni-mobile-number requires the following code:

await fillIn('.uni-mobile-number .uni-select', 'PT');
await fillIn('.uni-mobile-number input[type="number"]', '960000000');
await triggerKeyEvent('.uni-mobile-number input[type="number"]', 'keyup', KeyCodesType.ENTER);

This proposal aims at providing a new helper that looks like the following:

await fillInMobileNumber('PT', '960000000');

This will really ease the development and decrease the time spent in figuring out how to trigger the complete behaviour of a component

@migueldemoura
Copy link
Contributor

Same problem for the uni-datepicker-input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants