@@ -70,7 +70,7 @@ describe('ValidationStep', () => {
70
70
// Wait for preflights to complete and show failures
71
71
await waitFor ( ( ) => {
72
72
expect ( screen . getByText ( 'Host Requirements Not Met' ) ) . toBeInTheDocument ( ) ;
73
- } ) ;
73
+ } , { timeout : 2000 } ) ;
74
74
75
75
// Button should be enabled when CLI flag allows ignoring failures
76
76
const nextButton = screen . getByText ( 'Next: Start Installation' ) ;
@@ -294,10 +294,10 @@ describe('ValidationStep', () => {
294
294
// Mock infra setup endpoint to capture request body
295
295
http . post ( '*/api/linux/install/infra/setup' , async ( { request } ) => {
296
296
const body = await request . json ( ) ;
297
-
297
+
298
298
// Verify the request includes ignoreHostPreflights parameter
299
299
expect ( body ) . toHaveProperty ( 'ignoreHostPreflights' , true ) ;
300
-
300
+
301
301
return HttpResponse . json ( { success : true } ) ;
302
302
} )
303
303
) ;
@@ -348,10 +348,10 @@ describe('ValidationStep', () => {
348
348
// Mock infra setup endpoint to capture request body
349
349
http . post ( '*/api/linux/install/infra/setup' , async ( { request } ) => {
350
350
const body = await request . json ( ) ;
351
-
351
+
352
352
// Verify the request includes ignoreHostPreflights parameter as false
353
353
expect ( body ) . toHaveProperty ( 'ignoreHostPreflights' , false ) ;
354
-
354
+
355
355
return HttpResponse . json ( { success : true } ) ;
356
356
} )
357
357
) ;
@@ -404,9 +404,9 @@ describe('ValidationStep - Error Handling & Edge Cases', () => {
404
404
// Mock infra setup endpoint to return API error
405
405
http . post ( '*/api/linux/install/infra/setup' , ( ) => {
406
406
return HttpResponse . json (
407
- {
407
+ {
408
408
statusCode : 400 ,
409
- message : 'Preflight checks failed. Cannot proceed with installation.'
409
+ message : 'Preflight checks failed. Cannot proceed with installation.'
410
410
} ,
411
411
{ status : 400 }
412
412
) ;
@@ -441,7 +441,7 @@ describe('ValidationStep - Error Handling & Edge Cases', () => {
441
441
server . use (
442
442
http . get ( '*/api/linux/install/host-preflights/status' , ( ) => {
443
443
return HttpResponse . json ( {
444
- titles : [ 'Host Check' ] ,
444
+ titles : [ 'Host Check' ] ,
445
445
status : { state : 'Succeeded' } ,
446
446
output : { fail : [ ] , warn : [ ] , pass : [ { title : 'Test' , message : 'Pass' } ] } ,
447
447
allowIgnoreHostPreflights : false
@@ -534,9 +534,9 @@ describe('ValidationStep - Error Handling & Edge Cases', () => {
534
534
// Mock infra setup endpoint to return CLI flag error
535
535
http . post ( '*/api/linux/install/infra/setup' , ( ) => {
536
536
return HttpResponse . json (
537
- {
537
+ {
538
538
statusCode : 400 ,
539
- message : 'preflight checks failed'
539
+ message : 'preflight checks failed'
540
540
} ,
541
541
{ status : 400 }
542
542
) ;
@@ -680,4 +680,4 @@ describe('ValidationStep - Error Handling & Edge Cases', () => {
680
680
// Button should still be available for another attempt
681
681
expect ( screen . getByText ( 'Next: Start Installation' ) ) . toBeInTheDocument ( ) ;
682
682
} ) ;
683
- } ) ;
683
+ } ) ;
0 commit comments