Chore: Fix Flaky test DashboardDatasourceBehaviour (#105682)

Add spy to prevent flaky test
pull/105933/head
Alexa V 2 months ago committed by GitHub
parent be037e77dc
commit b1b9151cd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      public/app/features/dashboard-scene/scene/DashboardDatasourceBehaviour.test.tsx

@ -596,6 +596,10 @@ describe('DashboardDatasourceBehaviour', () => {
});
it('Should re-run query after transformations reprocess', async () => {
// sometimes this tests fails with a console error `AggregateError` with an XMLHttpRequest component
// this is not related to the test, but a side effect of the interaction with scenes, mixed ds or even js dom
// considering it a flaky test, we are explicitly ignoring it by mocking console.error
jest.spyOn(console, 'error').mockImplementation();
const sourcePanel = new VizPanel({
title: 'Panel A',
pluginId: 'table',

Loading…
Cancel
Save