Skip to content

Commit d1e4fe3

Browse files
authored
fix(e2e): api add walkthrough question (#305)
1 parent e4a7456 commit d1e4fe3

File tree

1 file changed

+14
-14
lines changed
  • packages/amplify-codegen-e2e-core/src/categories

1 file changed

+14
-14
lines changed

packages/amplify-codegen-e2e-core/src/categories/api.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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(/.*Here is the GraphQL API that we will create. Select a setting to edit or continue.*/)
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(/.*Here is the GraphQL API that we will create. Select a setting to edit or continue.*/)
7272
.sendKeyUp(3)
@@ -97,7 +97,7 @@ export function addApiWithBlankSchema(cwd: string, opts: Partial<AddApiOptions &
9797
export 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(/.*Here is the GraphQL API that we will create. Select a setting to edit or continue.*/)
103103
.sendKeyUp()
@@ -138,7 +138,7 @@ export function updateApiSchema(cwd: string, projectName: string, schemaName: st
138138
export 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(/.*Select a setting to edit.*/)
144144
.sendCarriageReturn()
@@ -185,7 +185,7 @@ export function updateApiWithMultiAuth(cwd: string, settings: any) {
185185
export 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(/.*Select a setting to edit.*/)
191191
.sendKeyDown()
@@ -209,7 +209,7 @@ export function apiEnableDataStore(cwd: string, settings: any) {
209209
export 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(/.*Select a setting to edit.*/)
215215
.sendKeyDown(2) // Disable conflict detection
@@ -229,7 +229,7 @@ export function apiDisableDataStore(cwd: string, settings: any) {
229229
export 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(/.*Select a setting to edit.*/)
235235
.sendKeyDown()
@@ -252,7 +252,7 @@ export function updateAPIWithResolutionStrategyWithoutModels(cwd: string, settin
252252
export 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(/.*Select a setting to edit.*/)
258258
.sendKeyDown()
@@ -277,7 +277,7 @@ export function updateAPIWithResolutionStrategyWithModels(cwd: string, settings:
277277
export 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) {
557557
export 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(/.*Here is the GraphQL API that we will create. Select a setting to edit or continue.*/)
563563
.sendKeyUp(2)
@@ -587,7 +587,7 @@ export function addApiWithCognitoUserPoolAuthTypeWhenAuthExists(projectDir: stri
587587
export 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) {
628628
export 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

Comments
 (0)