Skip to content

[8.0] [Screenshotting] Fix potential race condition when screenshotting (#123820)#125055

Merged
jloleysens merged 1 commit intoelastic:8.0from
jloleysens:backport/8.0/pr-123820
Feb 9, 2022
Merged

[8.0] [Screenshotting] Fix potential race condition when screenshotting (#123820)#125055
jloleysens merged 1 commit intoelastic:8.0from
jloleysens:backport/8.0/pr-123820

Conversation

@jloleysens
Copy link
Copy Markdown
Contributor

Backport

This is an automatic backport to 8.0 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 <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit b2b60ff)
@jloleysens jloleysens added the backport This PR is a backport of another PR label Feb 9, 2022
@jloleysens jloleysens enabled auto-merge (squash) February 9, 2022 10:44
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@jloleysens jloleysens merged commit 5ebb74e into elastic:8.0 Feb 9, 2022
@jloleysens jloleysens deleted the backport/8.0/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

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants