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

[8.1] [Screenshotting] Fix potential race condition when screenshotting (#123820) #125054

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

jloleysens
Copy link
Contributor

Backport

This is an automatic backport to 8.1 of:

Questions ?

Please refer to the Backport tool documentation

…astic#123820)

* extract message from error objects

* only warn for 400 and up status codes

* naively wait for vis ready after resizing the browser viewport

* use a single default viewport size, enable layout to set default page viewport for every page that is created

* refactor viewport -> windowSize in chromium args

* allow overriding defaults and use new windowSize arg for chromium args

* always round page dimension numbers. note: this will break if we ever have a "undefined" set as a key value

* added comment

* update snapshot to new width value

* make defaultViewport a required field on createPage

* added comment

* style: use async-await rather than .then chaining. also added a comment

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit b2b60ff)
@jloleysens jloleysens enabled auto-merge (squash) February 9, 2022 10:44
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jloleysens jloleysens merged commit e40c8e7 into elastic:8.1 Feb 9, 2022
@jloleysens jloleysens deleted the backport/8.1/pr-123820 branch February 9, 2022 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants