diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestPhysicalDisks.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestPhysicalDisks.test.tsx index b29495882f..961f6e2b4b 100644 --- a/frontend-modern/src/components/Workloads/__tests__/GuestPhysicalDisks.test.tsx +++ b/frontend-modern/src/components/Workloads/__tests__/GuestPhysicalDisks.test.tsx @@ -1,5 +1,5 @@ import { cleanup, fireEvent, render, screen, waitFor, within } from '@solidjs/testing-library'; -import { createSignal } from 'solid-js'; +import { createSignal, type JSX } from 'solid-js'; import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest'; import { AlertsAPI } from '@/api/alerts'; import { useAlertsActivation } from '@/stores/alertsActivation'; @@ -17,6 +17,14 @@ const queryState = vi.hoisted(() => ({ enabled: false, })); +// The expanded disk detail now shows its history charts in view; the chart +// measures itself with ResizeObserver, which jsdom lacks. Its rendering is +// covered by the HistoryChart and DiskDetail suites. +vi.mock('@/components/shared/HistoryChart', () => ({ + HistoryChartHoverGroup: (props: { children: JSX.Element }) =>