diff --git a/public/app/features/alerting/unified/RuleEditorCloudRules.test.tsx b/public/app/features/alerting/unified/RuleEditorCloudRules.test.tsx index 3443e9b1422..b1429b3a32d 100644 --- a/public/app/features/alerting/unified/RuleEditorCloudRules.test.tsx +++ b/public/app/features/alerting/unified/RuleEditorCloudRules.test.tsx @@ -38,6 +38,12 @@ jest.mock('app/features/query/components/QueryEditorRow', () => ({ jest.spyOn(config, 'getAllDataSources'); +// these tests are rather slow because we have to wait for various API calls and mocks to be called +// and wait for the UI to be in particular states, drone seems to time out quite often so +// we're increasing the timeout here to remove the flakey-ness of this test +// ideally we'd move this to an e2e test but it's quite involved to set up the test environment +jest.setTimeout(60 * 1000); + const mocks = { getAllDataSources: jest.mocked(config.getAllDataSources), searchFolders: jest.mocked(searchFolders), diff --git a/public/app/features/alerting/unified/RuleEditorExisting.test.tsx b/public/app/features/alerting/unified/RuleEditorExisting.test.tsx index 1debcd414ab..d0dbaf8c397 100644 --- a/public/app/features/alerting/unified/RuleEditorExisting.test.tsx +++ b/public/app/features/alerting/unified/RuleEditorExisting.test.tsx @@ -48,6 +48,8 @@ jest.mock('app/features/query/components/QueryEditorRow', () => ({ jest.spyOn(config, 'getAllDataSources'); +jest.setTimeout(60 * 1000); + const mocks = { getAllDataSources: jest.mocked(config.getAllDataSources), searchFolders: jest.mocked(searchFolders), diff --git a/public/app/features/alerting/unified/RuleEditorGrafanaRules.test.tsx b/public/app/features/alerting/unified/RuleEditorGrafanaRules.test.tsx index 0f3e8a1e23e..f35a627b2ca 100644 --- a/public/app/features/alerting/unified/RuleEditorGrafanaRules.test.tsx +++ b/public/app/features/alerting/unified/RuleEditorGrafanaRules.test.tsx @@ -41,6 +41,8 @@ jest.mock('app/features/query/components/QueryEditorRow', () => ({ jest.spyOn(config, 'getAllDataSources'); +jest.setTimeout(60 * 1000); + const mocks = { getAllDataSources: jest.mocked(config.getAllDataSources), searchFolders: jest.mocked(searchFolders),