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(api): add page.emulateVisionDeficiency(type) #5901
Conversation
5f90313
to
b0c8e75
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.
LGTM
const screenshot = await page.screenshot(); | ||
expect(screenshot).toBeGolden('screenshot-sanity.png'); | ||
} | ||
}); |
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.
nit: I'd personally have one individual it
for each test rather than the blocks (I think it leads to nicer errors if a test fails) but take it or leave it
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 see what you're saying. I think the reason it's done this way for existing tests is because we'd otherwise have to duplicate the page.setViewport
+ page.goto
setup for each subtest.
To make it possible for contributors to check this out locally, I've temporarily checked in a random Chromium roll for a binary that works on macOS. Before merging, we'd separate this out to a separate commit which rolls Chromium + updatesThis has now happened as part of #5879.src/protocol.d.ts
.