V1Wizard: Change qcow search param to qcow2 (HMS-3684)

This commit changes the optional search param `target=qcow` to be
`target=qcow2` so it is in alignment with the UI.
This commit is contained in:
lucasgarfield 2024-03-20 16:54:22 +01:00 committed by Lucas Garfield
parent 76fba98773
commit 7c5a040ad7
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ const TargetEnvironment = ({ label, isRequired, ...props }) => {
const preloadTarget = searchParams.get('target');
useEffect(() => {
preloadTarget === 'iso' && handleSetEnvironment('image-installer', true);
preloadTarget === 'qcow' && handleSetEnvironment('guest-image', true);
preloadTarget === 'qcow2' && handleSetEnvironment('guest-image', true);
}, [preloadTarget]);
useEffect(() => {

View file

@ -1612,7 +1612,7 @@ describe('set target using query parameter', () => {
test('guest-installer (query parameter provided)', async () => {
({ router } = await renderCustomRoutesWithReduxRouter(
'imagewizard?target=qcow',
'imagewizard?target=qcow2',
{},
routes
));