Skip to content

Commit 70a77a5

Browse files
committed
fix
Signed-off-by: Qxisylolo <[email protected]>
1 parent 4322350 commit 70a77a5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cypress/integration/core-opensearch-dashboards/opensearch-dashboards/datasource-management-plugin/4_set_default_datasource.spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ const miscUtils = new MiscUtils(cy);
1010
if (Cypress.env('DATASOURCE_MANAGEMENT_ENABLED')) {
1111
describe('Default data sources', () => {
1212
before(() => {
13-
// Clean up before creating new data sources for testing
14-
cy.deleteAllDataSourcesOnUI();
13+
// Clean up after all test are run
14+
cy.deleteAllDataSources();
15+
// remove the default data source
16+
cy.setAdvancedSetting({
17+
defaultDataSource: '',
18+
});
1519
});
1620

1721
describe('The default data source can behave normal when edit data source table', () => {

0 commit comments

Comments
 (0)