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

tests: add more screenshot tests #1713

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jrandolf-2
Copy link
Contributor

Adds a screenshot fixture and adds more test.

@jrandolf-2 jrandolf-2 requested a review from OrKoN January 17, 2024 12:23
@jrandolf-2 jrandolf-2 force-pushed the jrandolf/screenshots branch 6 times, most recently from f34365b to d9db826 Compare January 17, 2024 12:48
@OrKoN
Copy link
Collaborator

OrKoN commented Jan 17, 2024

Looks like tests fail

@jrandolf-2 jrandolf-2 force-pushed the jrandolf/screenshots branch 5 times, most recently from 098a8a2 to 8b2e2af Compare January 18, 2024 10:00
@@ -771,12 +771,12 @@ export class BrowsingContextImpl {
switch (params.origin) {
case 'document': {
script = String(() => {
const element = document.documentElement;
const rect = document.body.getBoundingClientRect();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would not it make the problem worse meaning given that the body can be made of size 0x0 while the content is still visible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, that's a good argument.

@OrKoN
Copy link
Collaborator

OrKoN commented Jun 7, 2024

@sadym-chromium assert_screenshot looks useful, let's revert the mapper changes though. WDYT?

@sadym-chromium
Copy link
Collaborator

@sadym-chromium assert_screenshot looks useful, let's revert the mapper changes though. WDYT?

agree

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.

3 participants