Chore: Fix Flaky test DashboardDatasourceBehaviour (#105682)

Add spy to prevent flaky test
This commit is contained in:
Alexa V
2025-05-21 10:55:46 +02:00
committed by GitHub
parent be037e77dc
commit b1b9151cd7
@@ -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',