diff --git a/x-pack/test/functional/apps/maps/lens/choropleth_chart.ts b/x-pack/test/functional/apps/maps/lens/choropleth_chart.ts index aadca225055a1..daa490f8ef051 100644 --- a/x-pack/test/functional/apps/maps/lens/choropleth_chart.ts +++ b/x-pack/test/functional/apps/maps/lens/choropleth_chart.ts @@ -11,6 +11,7 @@ import { FtrProviderContext } from '../../../ftr_provider_context'; export default function ({ getService, getPageObjects }: FtrProviderContext) { const PageObjects = getPageObjects(['visualize', 'lens', 'maps']); const testSubjects = getService('testSubjects'); + const filterBar = getService('filterBar'); describe('choropleth chart', () => { it('should allow creation of choropleth chart', async () => { @@ -48,6 +49,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.lens.dragFieldToWorkspace('geo.dest'); + // add filter to force data fetch to set activeData + await filterBar.addFilter('bytes', 'is between', '200', '10000'); + await testSubjects.click('lnsSuggestion-worldCountriesByCountOfRecords > lnsSuggestion'); await PageObjects.maps.openLegend();