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(wdio): Upgrade to support, and use types of v7 #364

Merged
merged 4 commits into from
Sep 15, 2021
Merged

Conversation

WilcoFiers
Copy link
Contributor

Adds support for WDIO v7. This changes the types over to use v7's types. Using axe-core/webdriverio v4.3 with wdio v6 will now see any as the argument for client.

// Treat everything as Browser<'async'>:
// - Anything sync can also run async, since JS can await sync functions
// - Ignore MultiRemoteBrowser, which is just Browser with extra props
this.client = client as Browser<'async'>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed to simplify this a little. Typescript does not like the union type .execute() here.

michael-siek
michael-siek previously approved these changes Sep 14, 2021
packages/webdriverio/package.json Outdated Show resolved Hide resolved
Co-authored-by: Steven Lambert <2433219+straker@users.noreply.github.com>
@WilcoFiers WilcoFiers merged commit 734e7bd into develop Sep 15, 2021
@WilcoFiers WilcoFiers deleted the wdio-v7 branch September 15, 2021 15:03
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.

None yet

3 participants