Skip to content

Commit

Permalink
[Lens] Stabilize FTR test (#202476)
Browse files Browse the repository at this point in the history
## Summary

Fixes #200120

The navigation bar is not focused for some reason. Making it wait a bit
seems to stabilize it.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
  • Loading branch information
dej611 authored Dec 3, 2024
1 parent 6ef0284 commit 9df7373
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 @@ -73,9 +73,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await visualize.gotoVisualizationLandingPage();
await listingTable.searchForItemWithName('lnsTableVis');
await lens.clickVisualizeListItemTitle('lnsTableVis');
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 9df7373

Please sign in to comment.