-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add map as embeddable to dashboard (#231)
* Add map as embeddable to dashboard Signed-off-by: Junqiu Lei <junqiu@amazon.com> * Create new map from dashboard visualization and save return Signed-off-by: Junqiu Lei <junqiu@amazon.com> * Enable interval refresh in dashboard Signed-off-by: Junqiu Lei <junqiu@amazon.com> * Enable filters in dashboard Signed-off-by: Junqiu Lei <junqiu@amazon.com> * Enable query in dashboard Signed-off-by: Junqiu Lei <junqiu@amazon.com> * Add cypress test Signed-off-by: Junqiu Lei <junqiu@amazon.com> * Fix maps listing in visualization listing page Signed-off-by: Junqiu Lei <junqiu@amazon.com> * Refactor controller Signed-off-by: Junqiu Lei <junqiu@amazon.com> * Resolve feedback Signed-off-by: Junqiu Lei <junqiu@amazon.com> --------- Signed-off-by: Junqiu Lei <junqiu@amazon.com>
- Loading branch information
1 parent
73be418
commit e48407b
Showing
24 changed files
with
1,090 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { BASE_PATH } from '../utils/constants'; | ||
|
||
describe('Add map to dashboard', () => { | ||
before(() => { | ||
cy.visit(`${BASE_PATH}/app/home#/tutorial_directory/sampleData`, { | ||
retryOnStatusCodeFailure: true, | ||
timeout: 60000, | ||
}); | ||
cy.get('div[data-test-subj="sampleDataSetCardflights"]', { timeout: 60000 }) | ||
.contains(/(Add|View) data/) | ||
.click(); | ||
cy.wait(60000); | ||
}); | ||
|
||
it('Add new map to dashboard', () => { | ||
const testMapName = 'saved-map-' + Date.now().toString(); | ||
cy.visit(`${BASE_PATH}/app/dashboards`); | ||
cy.get('button[data-test-subj="newItemButton"]').click(); | ||
cy.get('button[data-test-subj="dashboardAddNewPanelButton"]').click(); | ||
cy.get('button[data-test-subj="visType-customImportMap"]').click(); | ||
cy.wait(5000).get('button[data-test-subj="mapSaveButton"]').click(); | ||
cy.wait(5000).get('[data-test-subj="savedObjectTitle"]').type(testMapName); | ||
cy.wait(5000).get('[data-test-subj="confirmSaveSavedObjectButton"]').click(); | ||
cy.get('.embPanel__titleText').should('contain', testMapName); | ||
}); | ||
|
||
after(() => { | ||
cy.visit(`${BASE_PATH}/app/home#/tutorial_directory`); | ||
cy.get('button[data-test-subj="removeSampleDataSetflights"]').should('be.visible').click(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.