[8.x] [QA]Change screenshot size for metricbeat dashboard test (#199378) (#199398)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[QA]Change screenshot size for metricbeat dashboard test
(#199378)](https://github.com/elastic/kibana/pull/199378)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Marius
Dragomir","email":"marius-dr@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-11-07T23:22:34Z","message":"[QA]Change
screenshot size for metricbeat dashboard test (#199378)\n\n##
Summary\r\n\r\nChange the default screenshot compare size for the
metricbeat
dashboard.","sha":"c5df73661dccf44df52ff8bad4b7d4e657c37332","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","release_note:skip","test-stack-integration","v9.0.0","backport:version","v8.17.0","v8.16.1"],"title":"[QA]Change
screenshot size for metricbeat dashboard
test","number":199378,"url":"https://github.com/elastic/kibana/pull/199378","mergeCommit":{"message":"[QA]Change
screenshot size for metricbeat dashboard test (#199378)\n\n##
Summary\r\n\r\nChange the default screenshot compare size for the
metricbeat
dashboard.","sha":"c5df73661dccf44df52ff8bad4b7d4e657c37332"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199378","number":199378,"mergeCommit":{"message":"[QA]Change
screenshot size for metricbeat dashboard test (#199378)\n\n##
Summary\r\n\r\nChange the default screenshot compare size for the
metricbeat
dashboard.","sha":"c5df73661dccf44df52ff8bad4b7d4e657c37332"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Marius Dragomir <marius-dr@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2024-11-08 12:03:31 +11:00 committed by GitHub
parent afb795de1a
commit 1bc408d9c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,7 @@ export default function ({
await PageObjects.common.dismissBanner();
await PageObjects.dashboard.waitForRenderComplete();
await PageObjects.common.sleep(2000);
await browser.setScreenshotSize(1000, 1937);
await browser.setScreenshotSize(1400, 1937);
await PageObjects.common.sleep(2000);
});