Skip to content

Commit

Permalink
[8.x] [Lens] Stabilize FTR test (#202476) (#203970)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Lens] Stabilize FTR test
(#202476)](#202476)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Marco
Liberati","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-03T15:00:31Z","message":"[Lens]
Stabilize FTR test (#202476)\n\n## Summary\r\n\r\nFixes
#200120\r\n\r\nThe navigation bar is not focused for some reason. Making
it wait a bit\r\nseems to stabilize it.\r\n\r\n### Checklist\r\n\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"9df737384642b57dc059e854be1236721f1a9bb3","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","backport
missing","Feature:Functional
Testing","v9.0.0","backport:prev-minor"],"number":202476,"url":"https://github.com/elastic/kibana/pull/202476","mergeCommit":{"message":"[Lens]
Stabilize FTR test (#202476)\n\n## Summary\r\n\r\nFixes
#200120\r\n\r\nThe navigation bar is not focused for some reason. Making
it wait a bit\r\nseems to stabilize it.\r\n\r\n### Checklist\r\n\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"9df737384642b57dc059e854be1236721f1a9bb3"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202476","number":202476,"mergeCommit":{"message":"[Lens]
Stabilize FTR test (#202476)\n\n## Summary\r\n\r\nFixes
#200120\r\n\r\nThe navigation bar is not focused for some reason. Making
it wait a bit\r\nseems to stabilize it.\r\n\r\n### Checklist\r\n\r\n-
[x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"9df737384642b57dc059e854be1236721f1a9bb3"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <[email protected]>
  • Loading branch information
dej611 and kibanamachine authored Dec 13, 2024
1 parent 60e99a4 commit 17a7b59
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions x-pack/test/functional/apps/lens/group2/persistent_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await listingTable.searchForItemWithName('lnsTableVis');
await lens.clickVisualizeListItemTitle('lnsTableVis');
await lens.goToTimeRange();
await navigationalSearch.focus();
await navigationalSearch.searchFor('type:application lens');
await navigationalSearch.clickOnOption(0);
await retry.try(async () => {
await navigationalSearch.focus();
await navigationalSearch.searchFor('type:application lens');
await navigationalSearch.clickOnOption(0);
});
await lens.waitForEmptyWorkspace();
await lens.switchToVisualization('lnsLegacyMetric');
await lens.dragFieldToWorkspace('@timestamp', 'legacyMtrVis');
Expand Down

0 comments on commit 17a7b59

Please sign in to comment.