From 31f43fd6788546cf76534e3eea2390e882be2283 Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Sat, 4 Apr 2020 22:25:02 +0300 Subject: [PATCH] update maps tests --- .../functional/apps/maps/documents_source/search_hits.js | 6 +++++- x-pack/test/functional/apps/maps/vector_styling.js | 4 ++++ x-pack/test/functional/apps/maps/visualize_create_menu.js | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/x-pack/test/functional/apps/maps/documents_source/search_hits.js b/x-pack/test/functional/apps/maps/documents_source/search_hits.js index 6c9280c59988..9b5dad017fb3 100644 --- a/x-pack/test/functional/apps/maps/documents_source/search_hits.js +++ b/x-pack/test/functional/apps/maps/documents_source/search_hits.js @@ -16,7 +16,7 @@ export default function({ getPageObjects, getService }) { }); after(async () => { - await PageObjects.maps.gotoMapListingPage({ isOnUnsavedMap: true }); + await PageObjects.maps.gotoMapListingPage(); }); async function getRequestTimestamp() { @@ -89,6 +89,10 @@ export default function({ getPageObjects, getService }) { await PageObjects.maps.setLayerQuery('logstash', 'machine.os.raw : "ios"'); }); + after(async () => { + await PageObjects.maps.gotoMapListingPage({ isOnUnsavedMap: true }); + }); + it('should apply layer query to search request', async () => { await inspector.open(); await inspector.openInspectorRequestsView(); diff --git a/x-pack/test/functional/apps/maps/vector_styling.js b/x-pack/test/functional/apps/maps/vector_styling.js index 78898f1d1a4d..2e3b55bd572e 100644 --- a/x-pack/test/functional/apps/maps/vector_styling.js +++ b/x-pack/test/functional/apps/maps/vector_styling.js @@ -14,6 +14,10 @@ export default function({ getPageObjects }) { await PageObjects.maps.loadSavedMap('document example'); }); + after(async () => { + await PageObjects.maps.gotoMapListingPage({ isOnUnsavedMap: true }); + }); + describe('categorical styling', () => { before(async () => { await PageObjects.maps.openLayerPanel('logstash'); diff --git a/x-pack/test/functional/apps/maps/visualize_create_menu.js b/x-pack/test/functional/apps/maps/visualize_create_menu.js index 333377dde700..1a4f174ee60b 100644 --- a/x-pack/test/functional/apps/maps/visualize_create_menu.js +++ b/x-pack/test/functional/apps/maps/visualize_create_menu.js @@ -15,7 +15,7 @@ export default function({ getPageObjects }) { }); after(async () => { - await PageObjects.maps.gotoMapListingPage({ isOnUnsavedMap: true }); + await PageObjects.maps.gotoMapListingPage(); }); it('should show maps application in create menu', async () => {