Skip to content

Commit

Permalink
Address Review Comments
Browse files Browse the repository at this point in the history
Signed-off-by: Naveen Tatikonda <[email protected]>
  • Loading branch information
naveentatikonda committed Feb 14, 2023
1 parent c9cad2a commit 55ee6d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cypress/integration/add_saved_object.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ describe('Add flights dataset saved object', () => {
cy.wait(60000);
});

after(() => {
cy.visit(`${BASE_PATH}/app/home#/tutorial_directory`);
cy.get('button[data-test-subj="removeSampleDataSetflights"]').should('be.visible').click();
});

it('check if maps saved object of flights dataset can be found and open', () => {
cy.visit(`${BASE_PATH}/app/maps-dashboards`);
cy.contains('[Flights] Maps Cancelled Flights Destination Location').click();
cy.get('[data-test-subj="layerControlPanel"]').should('contain', 'Cancelled flights');
});

after(() => {
cy.visit(`${BASE_PATH}/app/home#/tutorial_directory`);
cy.get('button[data-test-subj="removeSampleDataSetflights"]').should('be.visible').click();
});
});
4 changes: 2 additions & 2 deletions server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ export class CustomImportMapPlugin
geospatial(geospatialService, router);
opensearch(opensearchService, router);

if (home) this.addMapsSavedObjects(home, config);

// Register saved object types
core.savedObjects.registerType(mapSavedObjectsType);

// Register capabilities
core.capabilities.registerProvider(capabilitiesProvider);

if (home) this.addMapsSavedObjects(home, config);

return {};
}

Expand Down

0 comments on commit 55ee6d4

Please sign in to comment.