diff --git a/src/sharedData/visualization/components/VisualizationConfigForm.test.js b/src/sharedData/visualization/components/VisualizationConfigForm.test.js index e2ddb260b0..8b97993f7c 100644 --- a/src/sharedData/visualization/components/VisualizationConfigForm.test.js +++ b/src/sharedData/visualization/components/VisualizationConfigForm.test.js @@ -722,7 +722,7 @@ test.each([ testParams.expectedDataEntriesFetchInput ); - // Block navigation if there are unsaved changes + // Blocked navigation window.dispatchEvent(new Event('beforeunload')); expect(preventDefault).toHaveBeenCalledTimes(1);