feat(web): migrate dashboard to WidgetGrid with layout persistence #497
@@ -94,7 +94,11 @@ describe("DashboardPage", (): void => {
|
||||
});
|
||||
|
||||
it("should show loading spinner initially", (): void => {
|
||||
vi.mocked(layoutsApi.fetchDefaultLayout).mockReturnValue(new Promise(() => {}));
|
||||
// Never-resolving promise to test loading state
|
||||
vi.mocked(layoutsApi.fetchDefaultLayout).mockReturnValue(
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function -- intentionally never-resolving
|
||||
new Promise(() => {})
|
||||
);
|
||||
|
||||
render(<DashboardPage />);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user