-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds integration test for customImportMap plugin (opensearch-project#272
) adds integration test for customImportMap plugin Signed-off-by: Shivam Dhar <[email protected]> Signed-off-by: Jakub Przybylski <[email protected]>
- Loading branch information
1 parent
47dc7df
commit ca4f028
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.github/workflows/custom-import-map-dashboards-release-e2e-workflow.yml
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,26 @@ | ||
name: customImportMapDashboards Release tests workflow in Bundled OpenSearch Dashboards | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- dev-* | ||
jobs: | ||
changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tests: ${{ steps.filter.outputs.tests }} | ||
steps: | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
tests: | ||
- 'cypress/**/custom-import-map-dashboards/**' | ||
tests: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.tests == 'true' }} | ||
uses: ./.github/workflows/release-e2e-workflow-template.yml | ||
with: | ||
test-name: Observability | ||
test-command: yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/custom-import-map-dashboards/*' |
39 changes: 39 additions & 0 deletions
39
cypress/integration/plugins/custom-import-map-dashboards/import_vector_map_tab.spec.js
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,39 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/// <reference types="cypress" /> | ||
|
||
import { BASE_PATH } from '../../../utils/constants'; | ||
import { | ||
MiscUtils, | ||
} from '@opensearch-dashboards-test/opensearch-dashboards-test-library'; | ||
|
||
const miscUtils = new MiscUtils(cy); | ||
describe('Verify the presence of import custom map tab in region map plugin', () => { | ||
before(() => { | ||
cy.deleteAllIndices(); | ||
miscUtils.addSampleData(); | ||
|
||
cy.visit(`${BASE_PATH}/app/visualize#/`); | ||
|
||
// Click on "Create Visualization" tab | ||
cy.contains('Create visualization').click({ force: true }); | ||
|
||
// Click on "Region Map" icon | ||
cy.contains('Region Map').click({ force: true }); | ||
|
||
// Select index source - [Flights] Flight Log | ||
cy.contains('[Flights] Flight Log').click({ force: true }); | ||
}); | ||
|
||
it('checks import custom map tab is present', () => { | ||
// Click on "Import Vector Map" tab, which is part of customImportMap plugin | ||
cy.contains('Import Vector Map').click({ force: true }); | ||
}) | ||
|
||
after(() => { | ||
miscUtils.removeSampleData(); | ||
}) | ||
}); |
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