-
Notifications
You must be signed in to change notification settings - Fork 65
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
Conversation
2643f22
to
d5fdb8c
Compare
e91eb0b
to
3acd66f
Compare
packages/webdriverjs/src/browser.ts
Outdated
return ( | ||
window && | ||
window.axe && | ||
typeof window.axe.runPartial === 'function' | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return ( | |
window && | |
window.axe && | |
typeof window.axe.runPartial === 'function' | |
) | |
return (typeof window.axe.runPartial === 'function') |
0be3b5e
to
4fdcffa
Compare
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. |
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. |
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. |
There was a problem hiding this 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.
No description provided.