-
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(puppeteer): get results from within iframes #42
Conversation
1db4050
to
b44186b
Compare
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 link to the relevant issue in the source.
Also, WHAT?!?!?
// We don't set `brand` since `axe-webdriverjs` doesn't. | ||
// TODO: Once axe-core 3.1.3 is released remove the cast (as that release fixes the types) | ||
window.axe.configure(brandingConfig as Axe.Spec); | ||
// This prevents axe from running in iframes. |
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.
What?!?
packages/puppeteer/src/browser.ts
Outdated
// TODO: Once axe-core 3.1.3 is released remove the cast (as that release fixes the types) | ||
window.axe.configure(brandingConfig as Axe.Spec); | ||
// This prevents axe from running in iframes. | ||
// TODO: Uncomment when that is fixed in axe-core |
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 link the axe-core issue here.
@@ -26,7 +26,9 @@ describe('doc-dylang.html', function () { | |||
await this.page.close(); | |||
}); | |||
|
|||
it('should find violations with customized helpUrl', async function () { | |||
// Fails since we can't set branding due to a bug. | |||
// TODO: Run once we fix setting branding |
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 link the relevant axe-core issue here.
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.
This is super strange.
Issue: https://github.com/dequelabs/axe-devtools-npm/issues/650
Root cause is dequelabs/axe-core#2340
Reviewer checks
Required fields, to be filled out by PR reviewer(s)