Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Match the Discovery notes fixture to its actual response type

pulse-triage[bot]bbaee0a3f43d
diff --git a/frontend-modern/src/components/Discovery/__tests__/DiscoveryRun.lifecycle.test.tsx b/frontend-modern/src/components/Discovery/__tests__/DiscoveryRun.lifecycle.test.tsx
index e2cdd43843..3c64319c11 100644
--- a/frontend-modern/src/components/Discovery/__tests__/DiscoveryRun.lifecycle.test.tsx
+++ b/frontend-modern/src/components/Discovery/__tests__/DiscoveryRun.lifecycle.test.tsx
@@ -320,7 +320,7 @@ describe('Discovery outcome ownership', () => {
});
it('does not close another guest’s notes editor when an old save finishes', async () => {
- const save = deferred<void>();
+ const save = deferred<ResourceDiscovery>();
vi.mocked(api.updateDiscoveryNotes).mockReturnValueOnce(save.promise);
const { state, setId } = await mount();
state.startEditingNotes();
@@ -330,7 +330,7 @@ describe('Discovery outcome ownership', () => {
await waitFor(() => expect(state.discovery()?.resource_id).toBe('101'));
state.startEditingNotes();
state.setNotesText('New guest draft');
- save.resolve();
+ save.resolve(saved());
await first;
expect(state.editingNotes()).toBe(true);
expect(state.notesText()).toBe('New guest draft');