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(webdriverjs): upgrade to axe-core 4.3 #312

Merged
merged 14 commits into from
Aug 11, 2021
Merged

Conversation

WilcoFiers
Copy link
Contributor

No description provided.

Comment on lines 35 to 39
return (
window &&
window.axe &&
typeof window.axe.runPartial === 'function'
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
return (
window &&
window.axe &&
typeof window.axe.runPartial === 'function'
)
return (typeof window.axe.runPartial === 'function')

straker
straker previously requested changes Aug 3, 2021
packages/webdriverjs/src/browser.ts Outdated Show resolved Hide resolved
packages/webdriverjs/src/index.ts Outdated Show resolved Hide resolved
packages/webdriverjs/src/browser.ts Outdated Show resolved Hide resolved
straker
straker previously requested changes Aug 4, 2021
packages/webdriverjs/src/test/test.ts Show resolved Hide resolved
straker
straker previously approved these changes Aug 5, 2021
@straker
Copy link
Contributor

straker commented Aug 9, 2021

So I am not a fan of the double function recursion. I find it confusing and hard to follow exactly how it works (such as error handling and what the final result is).

However, I'd like to ask @nloding and @michael-siek for their opinion on the code since you two are the maintainers. If you find the approach acceptable I can approve the PR.

@michael-siek
Copy link
Member

I agree with @straker I think it would be easier to read with a single recursive function since a developer would have to go back and forth to get a full understanding of what is going on.

@nloding
Copy link

nloding commented Aug 9, 2021

I'm in agreement. Since we've learned that it's all synchronous regardless, it makes the code harder to follow and, IMO, is tech debt.

straker
straker previously requested changes Aug 9, 2021
Copy link
Contributor

@straker straker left a comment

Choose a reason for hiding this comment

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

Please refactor the double function recursion.

@WilcoFiers WilcoFiers merged commit b416e74 into develop Aug 11, 2021
@WilcoFiers WilcoFiers deleted the selenium-shadowdom branch August 11, 2021 14:36
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

4 participants