-
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
feat: add disableFrame method #39
Conversation
@@ -5,6 +5,7 @@ | |||
</head> | |||
<body> | |||
<h1>Foo</h1> | |||
<input type="text" name="firstname" id="firstname"> |
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 is the reason for doing this? It doesn't look like it's used in the test you created.
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.
Its just to add a violation.
private iframeSelector(): string { | ||
let selector = 'iframe'; | ||
for (const disabledFrameSelector of this.disabledFrameSelectors) { | ||
selector += `:not(${disabledFrameSelector})`; |
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 will fail if the selector passed in includes a comma-separated list: disableFrame('#topLevel, #otherLevel')
as iframe:not(#topLevel, #otherLevel)
is not a valid selector. Is that a problem?
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 what we do in attest-webdriverio
which also has this method.
Issue: dequelabs/axe-devtools-npm#636
Reviewer checks
Required fields, to be filled out by PR reviewer(s)