Skip to content

Commit

Permalink
[8.12] [Obs UX] Fix hosts view flaky test (#173243) (#173298)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.12`:
- [[Obs UX] Fix hosts view flaky test
(#173243)](#173243)

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

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

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-12-13T16:25:33Z","message":"[Obs
UX] Fix hosts view flaky test (#173243)\n\nfixes
https://github.com/elastic/kibana/issues/172773\r\n\r\n##
Summary\r\n\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4528\r\n\r\nCo-authored-by:
Kibana Machine
<[email protected]>","sha":"2f69f1b59788432d0f8f5bc515d32a2df12da9ed","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","Team:obs-ux-infra_services","v8.13.0"],"number":173243,"url":"https://github.com/elastic/kibana/pull/173243","mergeCommit":{"message":"[Obs
UX] Fix hosts view flaky test (#173243)\n\nfixes
https://github.com/elastic/kibana/issues/172773\r\n\r\n##
Summary\r\n\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4528\r\n\r\nCo-authored-by:
Kibana Machine
<[email protected]>","sha":"2f69f1b59788432d0f8f5bc515d32a2df12da9ed"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173243","number":173243,"mergeCommit":{"message":"[Obs
UX] Fix hosts view flaky test (#173243)\n\nfixes
https://github.com/elastic/kibana/issues/172773\r\n\r\n##
Summary\r\n\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4528\r\n\r\nCo-authored-by:
Kibana Machine
<[email protected]>","sha":"2f69f1b59788432d0f8f5bc515d32a2df12da9ed"}}]}]
BACKPORT-->

Co-authored-by: Carlos Crespo <[email protected]>
  • Loading branch information
kibanamachine and crespocarlos authored Dec 13, 2023
1 parent 9a12256 commit 3b421f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion x-pack/test/functional/apps/infra/hosts_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});

it('should have an option to open the chart in lens', async () => {
await pageObjects.infraHostsView.clickAndValidateMetriChartActionOptions();
await retry.try(async () => {
await pageObjects.infraHostsView.clickAndValidateMetricChartActionOptions();
});
});
});

Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/functional/page_objects/infra_hosts_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function InfraHostsViewProvider({ getService }: FtrProviderContext) {
return container.findAllByCssSelector('[data-test-subj*="hostsView-metricChart-"]');
},

async clickAndValidateMetriChartActionOptions() {
async clickAndValidateMetricChartActionOptions() {
const element = await testSubjects.find('hostsView-metricChart-tx');
await element.moveMouseTo();
const button = await element.findByTestSubject('embeddablePanelToggleMenuIcon');
Expand Down

0 comments on commit 3b421f3

Please sign in to comment.