Skip to content

Commit

Permalink
Delete Sample data after cypress test (#235) (#237)
Browse files Browse the repository at this point in the history
Signed-off-by: Naveen Tatikonda <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] authored Feb 13, 2023
1 parent 27afaa7 commit 19a1038
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cypress/integration/documentsLayer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@ describe('Documents layer', () => {
cy.contains(uniqueName).click();
cy.get('[data-test-subj="layerControlPanel"]').should('contain', 'Documents layer 1');
});

after(() => {
cy.visit(`${BASE_PATH}/app/home#/tutorial_directory`);
cy.get('button[data-test-subj="removeSampleDataSetflights"]').should('be.visible').click();
});
});
5 changes: 5 additions & 0 deletions cypress/integration/opensearchMapLayer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@ describe('Default OpenSearch base map layer', () => {
}
cy.get('[data-test-subj="mapStatusBar"]').should('contain', 'zoom: 22');
});

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

0 comments on commit 19a1038

Please sign in to comment.