[8.7] fix test/functional/apps/dashboard/group3/dashboard_time_picker·ts (#150820) (#150938)

# Backport

This will backport the following commits from `main` to `8.7`:
- [fix test/functional/apps/dashboard/group3/dashboard_time_picker·ts
(#150820)](https://github.com/elastic/kibana/pull/150820)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2023-02-10T19:32:32Z","message":"fix
test/functional/apps/dashboard/group3/dashboard_time_picker·ts
(#150820)\n\nFixes
https://github.com/elastic/kibana/issues/148736","sha":"51f3a5423ea4b8abe087567583b278b50813f9cc","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Presentation","release_note:skip","auto-backport","v8.7.0","v8.8.0"],"number":150820,"url":"https://github.com/elastic/kibana/pull/150820","mergeCommit":{"message":"fix
test/functional/apps/dashboard/group3/dashboard_time_picker·ts
(#150820)\n\nFixes
https://github.com/elastic/kibana/issues/148736","sha":"51f3a5423ea4b8abe087567583b278b50813f9cc"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/150820","number":150820,"mergeCommit":{"message":"fix
test/functional/apps/dashboard/group3/dashboard_time_picker·ts
(#150820)\n\nFixes
https://github.com/elastic/kibana/issues/148736","sha":"51f3a5423ea4b8abe087567583b278b50813f9cc"}}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
This commit is contained in:
Kibana Machine 2023-02-10 15:50:40 -05:00 committed by GitHub
parent f3bcdde09c
commit 0622d0845f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,6 +118,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await browser.refresh();
const alert = await browser.getAlert();
await alert?.accept();
await elasticChart.setNewChartUiDebugFlag(true);
await PageObjects.dashboard.gotoDashboardLandingPage();
await PageObjects.dashboard.clickNewDashboard();
await PageObjects.dashboard.addVisualizations([PIE_CHART_VIS_NAME]);
@ -126,7 +129,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'2015-09-19 06:31:44.000',
'2015-09-23 18:31:44.000'
);
await elasticChart.setNewChartUiDebugFlag(true);
await pieChart.expectPieSliceCount(10);
});
});