-
Notifications
You must be signed in to change notification settings - Fork 68
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
fix(webdriverjs): Enable library to work in pkg
ed programs
#49
Conversation
executeAsyncScript
instead of functionpkg
ed programs
@@ -96,25 +96,28 @@ class AxeInjector { | |||
return new Promise((resolve, reject) => { | |||
/* eslint-disable no-undef */ | |||
this.driver | |||
.executeAsyncScript(function (callback) { | |||
const iframes = Array.from( | |||
.executeAsyncScript( |
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 add a comment explaining why this is necessary and link to vercel/pkg#676
context, | ||
options, | ||
config | ||
` |
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.
Same as above. Add a comment please.
assert.equal(config, catsConfig); | ||
executeAsyncScript: function (callback) { | ||
// Since we are stringifying executeAsyncScript we need to see if config gets passed into executeAsyncScript | ||
const [cats] = callback.match(/\s*("options":\s*\["cats"])/g); |
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.
Cats?
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.
I guess you're not adding this. We have a strange obsession with cats in a lot of our older codebases.
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.
I can change it to bears? 🐻
See: https://github.com/dequelabs/axe-devtools-npm/issues/715
Reviewer checks
Required fields, to be filled out by PR reviewer(s)