Skip to content

Commit

Permalink
issue with delete datasource
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <[email protected]>
  • Loading branch information
abbyhu2000 committed Dec 12, 2024
1 parent 4262c63 commit e6bcf67
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ describe('dataset selector', { scrollBehavior: false }, () => {
cy.get(`button[id="no_auth"]`).click();

cy.getElementByTestId('createDataSourceButton').click();
cy.getElementByTestId('editSetDefaultDataSource').click(); // set as default

cy.wait('@createDataSourceRequest').then((interception) => {
expect(interception.response.statusCode).to.equal(200);
Expand Down Expand Up @@ -158,11 +157,11 @@ describe('dataset selector', { scrollBehavior: false }, () => {
after(() => {
cy.deleteIndex('timestamp-nanos');
// delete the data source connection
miscUtils.visitPage('app/management/opensearch-dashboards/dataSources/');
cy.wait(10000);
cy.waitForLoaderNewHeader();
cy.get(`[class="euiTableRowCell"]`).contains(SECONDARY_ENGINE.name).click();
cy.getElementByTestId('editDatasourceDeleteIcon').click();
cy.getElementByTestId('confirmModalConfirmButton').click();
// miscUtils.visitPage('app/management/opensearch-dashboards/dataSources/');
// cy.wait(10000);
// cy.waitForLoaderNewHeader();
// cy.get(`[class="euiTableRowCell"]`).contains(SECONDARY_ENGINE.name).click();
// cy.getElementByTestId('editDatasourceDeleteIcon').click();
// cy.getElementByTestId('confirmModalConfirmButton').click();
});
});

0 comments on commit e6bcf67

Please sign in to comment.