diff --git a/x-pack/test/functional/apps/maps/vector_styling.js b/x-pack/test/functional/apps/maps/vector_styling.js index 78898f1d1a4d..e593596f9985 100644 --- a/x-pack/test/functional/apps/maps/vector_styling.js +++ b/x-pack/test/functional/apps/maps/vector_styling.js @@ -15,14 +15,12 @@ export default function({ getPageObjects }) { }); describe('categorical styling', () => { - before(async () => { - await PageObjects.maps.openLayerPanel('logstash'); - }); - it('should provide auto complete suggestions', async () => { + await PageObjects.maps.openLayerPanel('logstash'); await PageObjects.maps.setStyleByValue('fillColor', 'machine.os.raw'); await PageObjects.maps.selectCustomColorRamp('fillColor'); const suggestions = await PageObjects.maps.getCategorySuggestions(); + await PageObjects.maps.closeLayerPanel(); expect( suggestions .trim()