Skip to content

Add test helpers for some of the components #280

@AndreJoaquim

Description

@AndreJoaquim

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions