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

feat(expect-puppeteer): added delay option to element.type for toFill matcher #52

Merged
merged 2 commits into from
May 1, 2018

Conversation

rkoval
Copy link
Contributor

@rkoval rkoval commented Apr 26, 2018

Sometimes (I'd guess due to slow hardware), our builds will fail because toFill will end up typing characters out of order in input elements. This PR exposes the delay attribute so we can introduce throttling of typing events such that the events do not occur out of order.

@@ -3,7 +3,9 @@ import toMatchElement from './toMatchElement'
async function toFill(instance, selector, value, options) {
const element = await toMatchElement(instance, selector, options)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, toMatchElement will receive a delay option that is not required. Can you please avoid this?

const { delay, ...toMatchElementOptions } = options || {}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in 84841d1

@gregberge gregberge merged commit ee39ba9 into argos-ci:master May 1, 2018
@gregberge
Copy link
Member

Thanks, I will make a release probably after #51 and #50.

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