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

✨ Work with control flow syntax #144

Merged
merged 2 commits into from
Nov 17, 2020
Merged

✨ Work with control flow syntax #144

merged 2 commits into from
Nov 17, 2020

Conversation

wwilsman
Copy link
Contributor

@wwilsman wwilsman commented Nov 16, 2020

What is this?

Protractor and many WebDriver libraries allow a control flow syntax where asynchronous code can be written as if it were synchronous. While this feature is largely deprecated, current Protractor docs and legacy test suites still use this control flow syntax. Rather than requiring a user to rewrite their entire test suite away from control flow towards async/await in order to use Percy, we can enable control flow usage by utilizing Protractor's browser.call method which adds an async function to the control flow context.

@wwilsman wwilsman added the ✨ enhancement New feature or request label Nov 16, 2020
Copy link
Contributor

@Robdel12 Robdel12 left a comment

Choose a reason for hiding this comment

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

I dig 🏁

@wwilsman wwilsman merged commit 56b16da into master Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants