mirror of https://github.com/grafana/grafana.git
Chore: Fix Flaky test DashboardDatasourceBehaviour (#105682)
Add spy to prevent flaky test
This commit is contained in:
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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue