Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ const miscUtils = new MiscUtils(cy);
if (Cypress.env('DATASOURCE_MANAGEMENT_ENABLED')) {
describe('Default data sources', () => {
before(() => {
// Clean up before creating new data sources for testing
cy.deleteAllDataSourcesOnUI();
// Clean up after all test are run
cy.deleteAllDataSources();
// remove the default data source
cy.setAdvancedSetting({
defaultDataSource: '',
});
Comment on lines -13 to +18
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the behavor of delete datasource on ui about the datasource

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my local testing, both methods work, but deleting the data source in the UI behaves inconsistently and results in flaky errors more often

});

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