Skip to content

Commit

Permalink
fix functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Mar 15, 2022
1 parent 8eb1ceb commit 6019eb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x-pack/test/functional/apps/maps/lens/choropleth_chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 6019eb6

Please sign in to comment.