@@ -72,7 +72,7 @@ describe('createCheckoutManager', () => {
7272 error : null ,
7373 checkout : null ,
7474 fetchStatus : 'idle' ,
75- status : 'awaiting_initialization ' ,
75+ status : 'needs_initialization ' ,
7676 } ) ;
7777 } ) ;
7878
@@ -138,7 +138,7 @@ describe('createCheckoutManager', () => {
138138 isStarting : false ,
139139 error : null ,
140140 fetchStatus : 'idle' ,
141- status : 'awaiting_confirmation ' ,
141+ status : 'needs_confirmation ' ,
142142 } ) ;
143143
144144 expect ( listener1 ) . toHaveBeenCalledWith ( expectedState ) ;
@@ -186,7 +186,7 @@ describe('createCheckoutManager', () => {
186186 checkout : mockCheckout ,
187187 error : null ,
188188 fetchStatus : 'idle' ,
189- status : 'awaiting_confirmation ' ,
189+ status : 'needs_confirmation ' ,
190190 } ) ,
191191 ) ;
192192 } ) ;
@@ -230,7 +230,7 @@ describe('createCheckoutManager', () => {
230230 isStarting : false ,
231231 error : mockError ,
232232 fetchStatus : 'error' ,
233- status : 'awaiting_initialization ' ,
233+ status : 'needs_initialization ' ,
234234 } ) ,
235235 ) ;
236236 } ) ;
@@ -473,7 +473,7 @@ describe('createCheckoutManager', () => {
473473 error : null ,
474474 checkout : null ,
475475 fetchStatus : 'idle' ,
476- status : 'awaiting_initialization ' ,
476+ status : 'needs_initialization ' ,
477477 } ) ;
478478
479479 // Should notify listeners
@@ -515,7 +515,7 @@ describe('createCheckoutManager', () => {
515515 manager . clearCheckout ( ) ;
516516 state = manager . getCacheState ( ) ;
517517 expect ( state . checkout ) . toBeNull ( ) ;
518- expect ( state . status ) . toBe ( 'awaiting_initialization ' ) ;
518+ expect ( state . status ) . toBe ( 'needs_initialization ' ) ;
519519 } ) ;
520520 } ) ;
521521
@@ -554,17 +554,17 @@ describe('createCheckoutManager', () => {
554554 } ) ;
555555
556556 it ( 'should derive status based on checkout state' , async ( ) => {
557- // Initially awaiting initialization
558- expect ( manager . getCacheState ( ) . status ) . toBe ( 'awaiting_initialization ' ) ;
557+ // Initially needs initialization
558+ expect ( manager . getCacheState ( ) . status ) . toBe ( 'needs_initialization ' ) ;
559559
560- // After starting checkout - awaiting confirmation
560+ // After starting checkout - needs confirmation
561561 const pendingCheckout = createMockCheckoutResource ( { status : 'pending' } ) ;
562562 const startOperation : MockedFunction < ( ) => Promise < CommerceCheckoutResource > > = vi
563563 . fn ( )
564564 . mockResolvedValue ( pendingCheckout ) ;
565565
566566 await manager . executeOperation ( 'start' , startOperation ) ;
567- expect ( manager . getCacheState ( ) . status ) . toBe ( 'awaiting_confirmation ' ) ;
567+ expect ( manager . getCacheState ( ) . status ) . toBe ( 'needs_confirmation ' ) ;
568568
569569 // After completing checkout - completed
570570 const completedCheckout = createMockCheckoutResource ( { status : 'completed' } ) ;
@@ -631,7 +631,7 @@ describe('createCheckoutManager', () => {
631631 const state2 = manager2 . getCacheState ( ) ;
632632
633633 expect ( state1 . checkout ?. id ) . toBe ( 'checkout1' ) ;
634- expect ( state1 . status ) . toBe ( 'awaiting_confirmation ' ) ;
634+ expect ( state1 . status ) . toBe ( 'needs_confirmation ' ) ;
635635
636636 expect ( state2 . checkout ?. id ) . toBe ( 'checkout2' ) ;
637637 expect ( state2 . isStarting ) . toBe ( false ) ;
0 commit comments