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

fix(puppeteer): get results from within iframes #42

Merged
merged 5 commits into from
Jul 9, 2020

Conversation

AdnoC
Copy link
Contributor

@AdnoC AdnoC commented Jul 1, 2020

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)

  • Code is reviewed for security

@AdnoC AdnoC changed the title Fix puppeteer iframes fix(puppeteer): get results from within iframes Jul 2, 2020
Copy link
Member

@stephenmathieson stephenmathieson left a 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.
Copy link
Member

Choose a reason for hiding this comment

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

What?!?

// 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
Copy link
Member

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
Copy link
Member

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.

@AdnoC AdnoC dismissed stephenmathieson’s stale review July 8, 2020 14:49

Added link to axe-core issue

Copy link
Member

@stephenmathieson stephenmathieson left a 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.

@AdnoC AdnoC merged commit 4c4ef7a into develop Jul 9, 2020
@AdnoC AdnoC deleted the fix-puppeteer-iframes branch July 9, 2020 12:53
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.

2 participants