diff --git a/src/test/Archives/AllArchivedRecordingsTable.test.tsx b/src/test/Archives/AllArchivedRecordingsTable.test.tsx index 57c57da86..cad6705d3 100644 --- a/src/test/Archives/AllArchivedRecordingsTable.test.tsx +++ b/src/test/Archives/AllArchivedRecordingsTable.test.tsx @@ -18,7 +18,7 @@ import { AllArchivedRecordingsTable } from '@app/Archives/AllArchivedRecordingsT import { NotificationMessage, ArchivedRecording, RecordingDirectory } from '@app/Shared/Services/api.types'; import { defaultServices } from '@app/Shared/Services/Services'; import '@testing-library/jest-dom'; -import { cleanup, screen, within } from '@testing-library/react'; +import { cleanup, screen, within, waitFor } from '@testing-library/react'; import { of } from 'rxjs'; import { render, renderSnapshot } from '../utils'; diff --git a/src/test/Recordings/ActiveRecordingsTable.test.tsx b/src/test/Recordings/ActiveRecordingsTable.test.tsx index 1b01ac846..7b7aa4e4c 100644 --- a/src/test/Recordings/ActiveRecordingsTable.test.tsx +++ b/src/test/Recordings/ActiveRecordingsTable.test.tsx @@ -67,9 +67,11 @@ const mockCreateNotification = { const mockLabelsNotification = { message: { target: mockConnectUrl, - recordingName: 'someRecording', + recording: { + name: 'someRecording', + metadata: { labels: [{ key: 'someLabel', value: 'someUpdatedValue' }] } + }, jvmId: mockJvmId, - metadata: { labels: [{ key: 'someLabel', value: 'someUpdatedValue' }] }, }, } as NotificationMessage; const mockStopNotification = {