@@ -752,7 +752,7 @@ afterEach(() => {
752752 input . textContent = 'run combo' ;
753753 fireEvent . input ( input ) ;
754754 fireEvent . click ( screen . getByRole ( 'button' , { name : / ^ t e a m $ / i } ) ) ;
755- fireEvent . click ( screen . getByText ( / m o d e _ a u d i t → m o d e _ p l a n / i) ) ;
755+ fireEvent . click ( screen . getByText ( / m o d e _ a u d i t → m o d e _ r e v i e w → m o d e _ p l a n / i) ) ;
756756
757757 expect ( screen . getByText ( 'combo_send_confirm_title' ) ) . toBeDefined ( ) ;
758758 expect ( screen . getAllByRole ( 'button' , { name : / ^ s e n d $ / i } ) . length ) . toBeGreaterThanOrEqual ( 1 ) ;
@@ -768,7 +768,7 @@ afterEach(() => {
768768 input . textContent = 'run combo' ;
769769 fireEvent . input ( input ) ;
770770 fireEvent . click ( screen . getByRole ( 'button' , { name : / ^ t e a m $ / i } ) ) ;
771- fireEvent . click ( screen . getByText ( / m o d e _ a u d i t → m o d e _ p l a n / i) ) ;
771+ fireEvent . click ( screen . getByText ( / m o d e _ a u d i t → m o d e _ r e v i e w → m o d e _ p l a n / i) ) ;
772772
773773 expect ( screen . getByText ( 'combo_send_confirm_title' ) ) . toBeDefined ( ) ;
774774 expect ( ws . sendSessionCommand ) . not . toHaveBeenCalled ( ) ;
@@ -812,7 +812,7 @@ afterEach(() => {
812812 fireEvent . click ( screen . getByRole ( 'button' , { name : / ^ t e a m $ / i } ) ) ;
813813
814814 expect ( screen . getByText ( 'combo_requires_participants_hint' ) ) . toBeDefined ( ) ;
815- const comboBtn = screen . getByRole ( 'button' , { name : / m o d e _ a u d i t → m o d e _ p l a n / i } ) as HTMLButtonElement ;
815+ const comboBtn = screen . getByRole ( 'button' , { name : / m o d e _ a u d i t → m o d e _ r e v i e w → m o d e _ p l a n / i } ) as HTMLButtonElement ;
816816 expect ( comboBtn . disabled ) . toBe ( true ) ;
817817 expect ( comboBtn . title ) . toBe ( 'combo_requires_participants_hint' ) ;
818818 } ) ;
@@ -923,7 +923,9 @@ afterEach(() => {
923923 expect ( screen . queryByText ( / ^ m o d e _ b r a i n s t o r m $ / i) ) . toBeNull ( ) ;
924924 expect ( screen . queryByText ( / ^ m o d e _ d i s c u s s $ / i) ) . toBeNull ( ) ;
925925 expect ( screen . queryByText ( / ^ m o d e _ c o n f i g $ / i) ) . toBeNull ( ) ;
926- expect ( screen . getByText ( / m o d e _ a u d i t → m o d e _ p l a n / i) ) . toBeDefined ( ) ;
926+ expect ( screen . queryByText ( / ^ m o d e _ a u d i t → m o d e _ p l a n $ / i) ) . toBeNull ( ) ;
927+ expect ( screen . queryByText ( / ^ m o d e _ r e v i e w → m o d e _ p l a n $ / i) ) . toBeNull ( ) ;
928+ expect ( screen . getByText ( / m o d e _ a u d i t → m o d e _ r e v i e w → m o d e _ p l a n / i) ) . toBeDefined ( ) ;
927929 } ) ;
928930
929931 it ( 'puts the global rounds selector at the top of the P2P dropdown and saves changes' , async ( ) => {
@@ -982,7 +984,7 @@ afterEach(() => {
982984 input . textContent = 'first combo' ;
983985 fireEvent . input ( input ) ;
984986 fireEvent . click ( screen . getByRole ( 'button' , { name : / ^ t e a m $ / i } ) ) ;
985- fireEvent . click ( screen . getByText ( / m o d e _ a u d i t → m o d e _ p l a n / i) ) ;
987+ fireEvent . click ( screen . getByText ( / m o d e _ a u d i t → m o d e _ r e v i e w → m o d e _ p l a n / i) ) ;
986988
987989 const dialog = screen . getByText ( 'combo_send_confirm_title' ) . closest ( '.dialog' ) as HTMLElement ;
988990 fireEvent . click ( within ( dialog ) . getByRole ( 'checkbox' ) ) ;
@@ -994,7 +996,7 @@ afterEach(() => {
994996 p2pAtTargets : [
995997 { session : '__all__' , mode : 'config' } ,
996998 ] ,
997- p2pMode : 'audit>plan' ,
999+ p2pMode : 'audit>review> plan' ,
9981000 p2pSessionConfig : {
9991001 'my-session' : { enabled : true , mode : 'audit' } ,
10001002 } ,
@@ -1006,7 +1008,7 @@ afterEach(() => {
10061008 input . textContent = 'second combo' ;
10071009 fireEvent . input ( input ) ;
10081010 fireEvent . click ( screen . getByRole ( 'button' , { name : / ^ t e a m $ / i } ) ) ;
1009- fireEvent . click ( screen . getByText ( / m o d e _ a u d i t → m o d e _ p l a n / i) ) ;
1011+ fireEvent . click ( screen . getByText ( / m o d e _ a u d i t → m o d e _ r e v i e w → m o d e _ p l a n / i) ) ;
10101012
10111013 expect ( screen . queryByText ( 'combo_send_confirm_title' ) ) . toBeNull ( ) ;
10121014 expectLastSendPayload ( ws , {
@@ -1015,7 +1017,7 @@ afterEach(() => {
10151017 p2pAtTargets : [
10161018 { session : '__all__' , mode : 'config' } ,
10171019 ] ,
1018- p2pMode : 'audit>plan' ,
1020+ p2pMode : 'audit>review> plan' ,
10191021 p2pSessionConfig : {
10201022 'my-session' : { enabled : true , mode : 'audit' } ,
10211023 } ,
@@ -1034,7 +1036,7 @@ afterEach(() => {
10341036 fireEvent . input ( input ) ;
10351037
10361038 fireEvent . click ( screen . getByRole ( 'button' , { name : / ^ t e a m $ / i } ) ) ;
1037- fireEvent . click ( screen . getByText ( / m o d e _ a u d i t → m o d e _ p l a n / i) ) ;
1039+ fireEvent . click ( screen . getByText ( / m o d e _ a u d i t → m o d e _ r e v i e w → m o d e _ p l a n / i) ) ;
10381040
10391041 const dialog = screen . getByText ( 'combo_send_confirm_title' ) . closest ( '.dialog' ) as HTMLElement ;
10401042 fireEvent . click ( within ( dialog ) . getByRole ( 'button' , { name : / ^ s e n d $ / i } ) ) ;
@@ -1045,7 +1047,7 @@ afterEach(() => {
10451047 p2pAtTargets : [
10461048 { session : '__all__' , mode : 'config' } ,
10471049 ] ,
1048- p2pMode : 'audit>plan' ,
1050+ p2pMode : 'audit>review> plan' ,
10491051 p2pSessionConfig : {
10501052 'my-session' : { enabled : true , mode : 'audit' } ,
10511053 } ,
0 commit comments