Skip to content

Commit

Permalink
update maps tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Apr 4, 2020
1 parent 40b9dbd commit 31f43fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function({ getPageObjects, getService }) {
});

after(async () => {
await PageObjects.maps.gotoMapListingPage({ isOnUnsavedMap: true });
await PageObjects.maps.gotoMapListingPage();
});

async function getRequestTimestamp() {
Expand Down Expand Up @@ -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();
Expand Down
4 changes: 4 additions & 0 deletions x-pack/test/functional/apps/maps/vector_styling.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/functional/apps/maps/visualize_create_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 31f43fd

Please sign in to comment.