@@ -36,7 +36,7 @@ export function addApiWithoutSchema(cwd: string, opts: Partial<AddApiOptions & {
36
36
const options = _ . assign ( defaultOptions , opts ) ;
37
37
return new Promise < void > ( ( resolve , reject ) => {
38
38
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:' )
40
40
. sendCarriageReturn ( )
41
41
. 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 .* / )
42
42
. sendKeyUp ( 3 )
@@ -66,7 +66,7 @@ export function addApiWithBlankSchema(cwd: string, opts: Partial<AddApiOptions &
66
66
const options = _ . assign ( defaultOptions , opts ) ;
67
67
return new Promise < void > ( ( resolve , reject ) => {
68
68
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:' )
70
70
. sendCarriageReturn ( )
71
71
. 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 .* / )
72
72
. sendKeyUp ( 3 )
@@ -97,7 +97,7 @@ export function addApiWithBlankSchema(cwd: string, opts: Partial<AddApiOptions &
97
97
export function addApiWithBlankSchemaAndConflictDetection ( cwd : string ) {
98
98
return new Promise < void > ( ( resolve , reject ) => {
99
99
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:' )
101
101
. sendCarriageReturn ( )
102
102
. 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 .* / )
103
103
. sendKeyUp ( )
@@ -138,7 +138,7 @@ export function updateApiSchema(cwd: string, projectName: string, schemaName: st
138
138
export function updateApiWithMultiAuth ( cwd : string , settings : any ) {
139
139
return new Promise < void > ( ( resolve , reject ) => {
140
140
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:' )
142
142
. sendCarriageReturn ( )
143
143
. wait ( / .* S e l e c t a s e t t i n g t o e d i t .* / )
144
144
. sendCarriageReturn ( )
@@ -185,7 +185,7 @@ export function updateApiWithMultiAuth(cwd: string, settings: any) {
185
185
export function apiEnableDataStore ( cwd : string , settings : any ) {
186
186
return new Promise < void > ( ( resolve , reject ) => {
187
187
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:' )
189
189
. sendCarriageReturn ( )
190
190
. wait ( / .* S e l e c t a s e t t i n g t o e d i t .* / )
191
191
. sendKeyDown ( )
@@ -209,7 +209,7 @@ export function apiEnableDataStore(cwd: string, settings: any) {
209
209
export function apiDisableDataStore ( cwd : string , settings : any ) {
210
210
return new Promise < void > ( ( resolve , reject ) => {
211
211
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:' )
213
213
. sendCarriageReturn ( )
214
214
. wait ( / .* S e l e c t a s e t t i n g t o e d i t .* / )
215
215
. sendKeyDown ( 2 ) // Disable conflict detection
@@ -229,7 +229,7 @@ export function apiDisableDataStore(cwd: string, settings: any) {
229
229
export function updateAPIWithResolutionStrategyWithoutModels ( cwd : string , settings : any ) {
230
230
return new Promise < void > ( ( resolve , reject ) => {
231
231
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:' )
233
233
. sendCarriageReturn ( )
234
234
. wait ( / .* S e l e c t a s e t t i n g t o e d i t .* / )
235
235
. sendKeyDown ( )
@@ -252,7 +252,7 @@ export function updateAPIWithResolutionStrategyWithoutModels(cwd: string, settin
252
252
export function updateAPIWithResolutionStrategyWithModels ( cwd : string , settings : any ) {
253
253
return new Promise < void > ( ( resolve , reject ) => {
254
254
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:' )
256
256
. sendCarriageReturn ( )
257
257
. wait ( / .* S e l e c t a s e t t i n g t o e d i t .* / )
258
258
. sendKeyDown ( )
@@ -277,7 +277,7 @@ export function updateAPIWithResolutionStrategyWithModels(cwd: string, settings:
277
277
export function updateAPIWithResolutionStrategy ( cwd : string , settings : any ) {
278
278
return new Promise < void > ( ( resolve , reject ) => {
279
279
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:' )
281
281
. sendCarriageReturn ( )
282
282
. wait ( 'Select from the options below' )
283
283
. sendCarriageReturn ( )
@@ -317,7 +317,7 @@ export function addRestApi(cwd: string, settings: any) {
317
317
} else {
318
318
const isFirstRestApi = settings . isFirstRestApi ?? true ;
319
319
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' )
321
321
. send ( KEY_DOWN_ARROW )
322
322
. sendCarriageReturn ( ) ; // REST
323
323
@@ -439,7 +439,7 @@ export function addApi(projectDir: string, settings?: any) {
439
439
let authTypesToSelectFrom = allAuthTypes . slice ( ) ;
440
440
return new Promise < void > ( ( resolve , reject ) => {
441
441
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:' )
443
443
. sendCarriageReturn ( ) ;
444
444
445
445
if ( settings && Object . keys ( settings ) . length > 0 ) {
@@ -557,7 +557,7 @@ function setupOIDC(chain: any, settings?: any) {
557
557
export function addApiWithCognitoUserPoolAuthTypeWhenAuthExists ( projectDir : string ) {
558
558
return new Promise < void > ( ( resolve , reject ) => {
559
559
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:' )
561
561
. sendCarriageReturn ( )
562
562
. 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 .* / )
563
563
. sendKeyUp ( 2 )
@@ -587,7 +587,7 @@ export function addApiWithCognitoUserPoolAuthTypeWhenAuthExists(projectDir: stri
587
587
export function addRestContainerApi ( projectDir : string ) {
588
588
return new Promise < void > ( ( resolve , reject ) => {
589
589
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:' )
591
591
. sendKeyDown ( )
592
592
. sendCarriageReturn ( )
593
593
. wait ( 'Which service would you like to use' )
@@ -628,7 +628,7 @@ export function rebuildApi(projDir: string, apiName: string) {
628
628
export function addRestContainerApiForCustomPolicies ( projectDir : string , settings : { name : string } ) {
629
629
return new Promise < void > ( ( resolve , reject ) => {
630
630
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:' )
632
632
. sendKeyDown ( )
633
633
. sendCarriageReturn ( )
634
634
. wait ( 'Which service would you like to use' )
0 commit comments