Skip to content

Commit

Permalink
[Lens] Unskips share tests (elastic#149922)
Browse files Browse the repository at this point in the history
## Summary

Closes elastic#149163

We have seen this before. We should use the Lens wait for chart
rendering function and not the global one. This stabilizes the tests

Run 100 times
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1827

### 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
stratoula authored Feb 1, 2023
1 parent 4cf8f6e commit ea69956
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions x-pack/test/functional/apps/lens/group2/share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const filterBarService = getService('filterBar');
const queryBar = getService('queryBar');

// Failing: See https://github.com/elastic/kibana/issues/149163
describe.skip('lens share tests', () => {
describe('lens share tests', () => {
before(async () => {
await PageObjects.visualize.gotoVisualizationLandingPage();
});
Expand Down Expand Up @@ -73,7 +72,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

await browser.navigateTo(url);
// check that it's the same configuration in the new URL when ready
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.lens.waitForVisualization('xyVisChart');
expect(await PageObjects.lens.getDimensionTriggerText('lnsXY_yDimensionPanel')).to.eql(
'Average of bytes'
);
Expand All @@ -93,7 +92,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await filterBarService.addFilter({ field: 'bytes', operation: 'is', value: '1' });
await queryBar.setQuery('host.keyword www.elastic.co');
await queryBar.submitQuery();
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.lens.waitForVisualization('xyVisChart');

const url = await PageObjects.lens.getUrl('snapshot');
await browser.openNewTab();
Expand All @@ -102,7 +101,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

await browser.navigateTo(url);
// check that it's the same configuration in the new URL when ready
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.lens.waitForVisualization('xyVisChart');
expect(await filterBarService.getFiltersLabel()).to.eql(['bytes: 1']);
expect(await queryBar.getQueryString()).to.be('host.keyword www.elastic.co');
await browser.closeCurrentWindow();
Expand Down

0 comments on commit ea69956

Please sign in to comment.