@@ -36,7 +36,7 @@ export function addApiWithoutSchema(cwd: string, opts: Partial<AddApiOptions & {
3636 const options = _ . assign ( defaultOptions , opts ) ;
3737 return new Promise < void > ( ( resolve , reject ) => {
3838 spawn ( getCLIPath ( options . testingWithLatestCodebase ) , [ 'add' , 'api' ] , { cwd, stripColors : true } )
39- . wait ( 'Please select from one of the below mentioned services:' )
39+ . wait ( 'Select from one of the below mentioned services:' )
4040 . sendCarriageReturn ( )
4141 . wait ( / .* H e r e i s t h e G r a p h Q L A P I t h a t w e w i l l c r e a t e . S e l e c t a s e t t i n g t o e d i t o r c o n t i n u e .* / )
4242 . sendKeyUp ( 3 )
@@ -66,7 +66,7 @@ export function addApiWithBlankSchema(cwd: string, opts: Partial<AddApiOptions &
6666 const options = _ . assign ( defaultOptions , opts ) ;
6767 return new Promise < void > ( ( resolve , reject ) => {
6868 spawn ( getCLIPath ( options . testingWithLatestCodebase ) , [ 'add' , 'api' ] , { cwd, stripColors : true } )
69- . wait ( 'Please select from one of the below mentioned services:' )
69+ . wait ( 'Select from one of the below mentioned services:' )
7070 . sendCarriageReturn ( )
7171 . wait ( / .* H e r e i s t h e G r a p h Q L A P I t h a t w e w i l l c r e a t e . S e l e c t a s e t t i n g t o e d i t o r c o n t i n u e .* / )
7272 . sendKeyUp ( 3 )
@@ -97,7 +97,7 @@ export function addApiWithBlankSchema(cwd: string, opts: Partial<AddApiOptions &
9797export function addApiWithBlankSchemaAndConflictDetection ( cwd : string ) {
9898 return new Promise < void > ( ( resolve , reject ) => {
9999 spawn ( getCLIPath ( defaultOptions . testingWithLatestCodebase ) , [ 'add' , 'api' ] , { cwd, stripColors : true } )
100- . wait ( 'Please select from one of the below mentioned services:' )
100+ . wait ( 'Select from one of the below mentioned services:' )
101101 . sendCarriageReturn ( )
102102 . wait ( / .* H e r e i s t h e G r a p h Q L A P I t h a t w e w i l l c r e a t e . S e l e c t a s e t t i n g t o e d i t o r c o n t i n u e .* / )
103103 . sendKeyUp ( )
@@ -138,7 +138,7 @@ export function updateApiSchema(cwd: string, projectName: string, schemaName: st
138138export function updateApiWithMultiAuth ( cwd : string , settings : any ) {
139139 return new Promise < void > ( ( resolve , reject ) => {
140140 spawn ( getCLIPath ( settings . testingWithLatestCodebase ) , [ 'update' , 'api' ] , { cwd, stripColors : true } )
141- . wait ( 'Please select from one of the below mentioned services:' )
141+ . wait ( 'Select from one of the below mentioned services:' )
142142 . sendCarriageReturn ( )
143143 . wait ( / .* S e l e c t a s e t t i n g t o e d i t .* / )
144144 . sendCarriageReturn ( )
@@ -185,7 +185,7 @@ export function updateApiWithMultiAuth(cwd: string, settings: any) {
185185export function apiEnableDataStore ( cwd : string , settings : any ) {
186186 return new Promise < void > ( ( resolve , reject ) => {
187187 spawn ( getCLIPath ( settings . testingWithLatestCodebase ) , [ 'update' , 'api' ] , { cwd, stripColors : true } )
188- . wait ( 'Please select from one of the below mentioned services:' )
188+ . wait ( 'Select from one of the below mentioned services:' )
189189 . sendCarriageReturn ( )
190190 . wait ( / .* S e l e c t a s e t t i n g t o e d i t .* / )
191191 . sendKeyDown ( )
@@ -209,7 +209,7 @@ export function apiEnableDataStore(cwd: string, settings: any) {
209209export function apiDisableDataStore ( cwd : string , settings : any ) {
210210 return new Promise < void > ( ( resolve , reject ) => {
211211 spawn ( getCLIPath ( settings . testingWithLatestCodebase ) , [ 'update' , 'api' ] , { cwd, stripColors : true } )
212- . wait ( 'Please select from one of the below mentioned services:' )
212+ . wait ( 'Select from one of the below mentioned services:' )
213213 . sendCarriageReturn ( )
214214 . wait ( / .* S e l e c t a s e t t i n g t o e d i t .* / )
215215 . sendKeyDown ( 2 ) // Disable conflict detection
@@ -229,7 +229,7 @@ export function apiDisableDataStore(cwd: string, settings: any) {
229229export function updateAPIWithResolutionStrategyWithoutModels ( cwd : string , settings : any ) {
230230 return new Promise < void > ( ( resolve , reject ) => {
231231 spawn ( getCLIPath ( settings . testingWithLatestCodebase ) , [ 'update' , 'api' ] , { cwd, stripColors : true } )
232- . wait ( 'Please select from one of the below mentioned services:' )
232+ . wait ( 'Select from one of the below mentioned services:' )
233233 . sendCarriageReturn ( )
234234 . wait ( / .* S e l e c t a s e t t i n g t o e d i t .* / )
235235 . sendKeyDown ( )
@@ -252,7 +252,7 @@ export function updateAPIWithResolutionStrategyWithoutModels(cwd: string, settin
252252export function updateAPIWithResolutionStrategyWithModels ( cwd : string , settings : any ) {
253253 return new Promise < void > ( ( resolve , reject ) => {
254254 spawn ( getCLIPath ( settings . testingWithLatestCodebase ) , [ 'update' , 'api' ] , { cwd, stripColors : true } )
255- . wait ( 'Please select from one of the below mentioned services:' )
255+ . wait ( 'Select from one of the below mentioned services:' )
256256 . sendCarriageReturn ( )
257257 . wait ( / .* S e l e c t a s e t t i n g t o e d i t .* / )
258258 . sendKeyDown ( )
@@ -277,7 +277,7 @@ export function updateAPIWithResolutionStrategyWithModels(cwd: string, settings:
277277export function updateAPIWithResolutionStrategy ( cwd : string , settings : any ) {
278278 return new Promise < void > ( ( resolve , reject ) => {
279279 spawn ( getCLIPath ( settings . testingWithLatestCodebase ) , [ 'update' , 'api' ] , { cwd, stripColors : true } )
280- . wait ( 'Please select from one of the below mentioned services:' )
280+ . wait ( 'Select from one of the below mentioned services:' )
281281 . sendCarriageReturn ( )
282282 . wait ( 'Select from the options below' )
283283 . sendCarriageReturn ( )
@@ -317,7 +317,7 @@ export function addRestApi(cwd: string, settings: any) {
317317 } else {
318318 const isFirstRestApi = settings . isFirstRestApi ?? true ;
319319 let chain = spawn ( getCLIPath ( ) , [ 'add' , 'api' ] , { cwd, stripColors : true } )
320- . wait ( 'Please select from one of the below mentioned services' )
320+ . wait ( 'Select from one of the below mentioned services' )
321321 . send ( KEY_DOWN_ARROW )
322322 . sendCarriageReturn ( ) ; // REST
323323
@@ -439,7 +439,7 @@ export function addApi(projectDir: string, settings?: any) {
439439 let authTypesToSelectFrom = allAuthTypes . slice ( ) ;
440440 return new Promise < void > ( ( resolve , reject ) => {
441441 let chain = spawn ( getCLIPath ( defaultOptions . testingWithLatestCodebase ) , [ 'add' , 'api' ] , { cwd : projectDir , stripColors : true } )
442- . wait ( 'Please select from one of the below mentioned services:' )
442+ . wait ( 'Select from one of the below mentioned services:' )
443443 . sendCarriageReturn ( ) ;
444444
445445 if ( settings && Object . keys ( settings ) . length > 0 ) {
@@ -557,7 +557,7 @@ function setupOIDC(chain: any, settings?: any) {
557557export function addApiWithCognitoUserPoolAuthTypeWhenAuthExists ( projectDir : string ) {
558558 return new Promise < void > ( ( resolve , reject ) => {
559559 spawn ( getCLIPath ( defaultOptions . testingWithLatestCodebase ) , [ 'add' , 'api' ] , { cwd : projectDir , stripColors : true } )
560- . wait ( 'Please select from one of the below mentioned services:' )
560+ . wait ( 'Select from one of the below mentioned services:' )
561561 . sendCarriageReturn ( )
562562 . wait ( / .* H e r e i s t h e G r a p h Q L A P I t h a t w e w i l l c r e a t e . S e l e c t a s e t t i n g t o e d i t o r c o n t i n u e .* / )
563563 . sendKeyUp ( 2 )
@@ -587,7 +587,7 @@ export function addApiWithCognitoUserPoolAuthTypeWhenAuthExists(projectDir: stri
587587export function addRestContainerApi ( projectDir : string ) {
588588 return new Promise < void > ( ( resolve , reject ) => {
589589 spawn ( getCLIPath ( ) , [ 'add' , 'api' ] , { cwd : projectDir , stripColors : true } )
590- . wait ( 'Please select from one of the below mentioned services:' )
590+ . wait ( 'Select from one of the below mentioned services:' )
591591 . sendKeyDown ( )
592592 . sendCarriageReturn ( )
593593 . wait ( 'Which service would you like to use' )
@@ -628,7 +628,7 @@ export function rebuildApi(projDir: string, apiName: string) {
628628export function addRestContainerApiForCustomPolicies ( projectDir : string , settings : { name : string } ) {
629629 return new Promise < void > ( ( resolve , reject ) => {
630630 spawn ( getCLIPath ( ) , [ 'add' , 'api' ] , { cwd : projectDir , stripColors : true } )
631- . wait ( 'Please select from one of the below mentioned services:' )
631+ . wait ( 'Select from one of the below mentioned services:' )
632632 . sendKeyDown ( )
633633 . sendCarriageReturn ( )
634634 . wait ( 'Which service would you like to use' )
0 commit comments