From 1460a2df25e4dafb182a9c499340a9409fbd2a5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Iv=C3=A1n=20L=C3=B3pez=20Gonz=C3=A1lez?= Date: Thu, 2 May 2024 16:26:04 +0100 Subject: [PATCH] web: Fix some tests --- web/src/components/storage/PartitionsField.test.jsx | 6 +++--- web/src/components/storage/ProposalSettingsSection.test.jsx | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/src/components/storage/PartitionsField.test.jsx b/web/src/components/storage/PartitionsField.test.jsx index aa6ff7e62b..e7f20052cc 100644 --- a/web/src/components/storage/PartitionsField.test.jsx +++ b/web/src/components/storage/PartitionsField.test.jsx @@ -183,10 +183,10 @@ beforeEach(() => { props = { volumes: [rootVolume, swapVolume], templates: [], - devices: [], - system: [sda], + availableDevices: [], + volumeDevices: [sda], target: "DISK", - targetDevice: undefined, + targetDevices: [], configureBoot: false, bootDevice: undefined, defaultBootDevice: undefined, diff --git a/web/src/components/storage/ProposalSettingsSection.test.jsx b/web/src/components/storage/ProposalSettingsSection.test.jsx index 7071a83780..35f9f9b934 100644 --- a/web/src/components/storage/ProposalSettingsSection.test.jsx +++ b/web/src/components/storage/ProposalSettingsSection.test.jsx @@ -106,6 +106,7 @@ beforeEach(() => { installationDevices: [sda, sdb] }, availableDevices: [], + volumeDevices: [], encryptionMethods: [], volumeTemplates: [], onChange: jest.fn()