Skip to content

Commit

Permalink
Revert "test: fixed end to end test prompts for auth (aws-amplify#7316)"
Browse files Browse the repository at this point in the history
This reverts commit 42dd0ec.
  • Loading branch information
AmmarKarachi committed May 18, 2021
1 parent f952f88 commit 6b2d4fc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
34 changes: 17 additions & 17 deletions packages/amplify-e2e-core/src/categories/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,16 +511,16 @@ export function addAuthWithDefaultSocial(cwd: string, settings: any): Promise<vo
.wait('Enter your Amazon App Secret for your OAuth flow:')
.send(AMAZON_APP_SECRET)
.sendCarriageReturn()
.wait('Enter your Services ID for your OAuth flow:')
.wait('Enter your Sign in with Apple Client ID for your OAuth flow:')
.send(APPLE_APP_ID)
.sendCarriageReturn()
.wait('Enter your Team ID for your OAuth flow:')
.wait('Enter your Sign in with Apple Team ID for your OAuth flow:')
.send(APPLE_TEAM_ID)
.sendCarriageReturn()
.wait('Enter your Key ID for your OAuth flow:')
.wait('Enter your Sign in with Apple Key ID for your OAuth flow:')
.send(APPLE_KEY_ID)
.sendCarriageReturn()
.wait('Enter your Private Key for your OAuth flow:')
.wait('Enter your Sign in with Apple Private Key for your OAuth flow:')
.send(APPLE_PRIVATE_KEY)
.sendCarriageReturn()
.sendEof()
Expand Down Expand Up @@ -658,16 +658,16 @@ export function addAuthUserPoolOnly(cwd: string, settings: any): Promise<void> {
.wait('Enter your Amazon App Secret for your OAuth flow')
.send(AMAZON_APP_SECRET)
.sendCarriageReturn()
.wait('Enter your Services ID for your OAuth flow')
.wait('Enter your Sign in with Apple Client ID for your OAuth flow')
.send(APPLE_APP_ID)
.sendCarriageReturn()
.wait('Enter your Team ID for your OAuth flow')
.wait('Enter your Sign in with Apple Team ID for your OAuth flow')
.send(APPLE_TEAM_ID)
.sendCarriageReturn()
.wait('Enter your Key ID for your OAuth flow')
.wait('Enter your Sign in with Apple Key ID for your OAuth flow')
.send(APPLE_KEY_ID)
.sendCarriageReturn()
.wait('Enter your Private Key for your OAuth flow')
.wait('Enter your Sign in with Apple Private Key for your OAuth flow')
.send(APPLE_PRIVATE_KEY)
.sendCarriageReturn()
.wait('Do you want to configure Lambda Triggers for Cognito')
Expand Down Expand Up @@ -850,7 +850,7 @@ export function addAuthWithMaxOptions(cwd: string, settings: any): Promise<void>
.wait('Enter your Amazon App ID for your identity pool')
.send('amazonIDPOOL')
.sendCarriageReturn()
.wait('Enter your Bundle Identifier for your identity pool')
.wait('Enter your Apple App ID for your identity pool')
.send('appleIDPOOL')
.sendCarriageReturn()
.wait('Please provide a name for your user pool')
Expand Down Expand Up @@ -942,13 +942,13 @@ export function addAuthWithMaxOptions(cwd: string, settings: any): Promise<void>
.sendLine(AMAZON_APP_ID)
.wait('Enter your Amazon App Secret for your OAuth flow')
.sendLine(AMAZON_APP_SECRET)
.wait('Enter your Services ID for your OAuth flow')
.wait('Enter your Sign in with Apple Client ID for your OAuth flow')
.sendLine(APPLE_APP_ID)
.wait('Enter your Team ID for your OAuth flow')
.wait('Enter your Sign in with Apple Team ID for your OAuth flow')
.sendLine(APPLE_TEAM_ID)
.wait('Enter your Key ID for your OAuth flow')
.wait('Enter your Sign in with Apple Key ID for your OAuth flow')
.sendLine(APPLE_KEY_ID)
.wait('Enter your Private Key for your OAuth flow')
.wait('Enter your Sign in with Apple Private Key for your OAuth flow')
.sendLine(APPLE_PRIVATE_KEY)
.wait('Do you want to configure Lambda Triggers for Cognito')
.sendLine('y')
Expand Down Expand Up @@ -1163,13 +1163,13 @@ export function addAuthUserPoolOnlyWithOAuth(cwd: string, settings: AddAuthUserP
.sendLine(settings.amazonAppId)
.wait('Enter your Amazon App Secret for your OAuth flow')
.sendLine(settings.amazonAppSecret)
.wait('Enter your Services ID for your OAuth flow:')
.wait('Enter your Sign in with Apple Client ID for your OAuth flow:')
.sendLine(settings.appleAppClientId)
.wait('Enter your Team ID for your OAuth flow:')
.wait('Enter your Sign in with Apple Team ID for your OAuth flow:')
.sendLine(settings.appleAppTeamId)
.wait('Enter your Key ID for your OAuth flow:')
.wait('Enter your Sign in with Apple Key ID for your OAuth flow:')
.sendLine(settings.appleAppKeyID)
.wait('Enter your Private Key for your OAuth flow:')
.wait('Enter your Sign in with Apple Private Key for your OAuth flow:')
.sendLine(settings.appleAppPrivateKey)
.wait('Do you want to configure Lambda Triggers for Cognito')
.sendConfirmNo()
Expand Down
8 changes: 4 additions & 4 deletions packages/amplify-e2e-tests/src/environment/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ export function addEnvironmentHostedUI(cwd: string, settings: { envName: string
.sendLine(AMAZON_APP_ID)
.wait('Enter your Amazon App Secret for your OAuth flow:')
.sendLine(AMAZON_APP_SECRET)
.wait('Enter your Services ID for your OAuth flow:')
.wait('Enter your Sign in with Apple Client ID for your OAuth flow:')
.sendLine(APPLE_APP_ID)
.wait('Enter your Team ID for your OAuth flow:')
.wait('Enter your Sign in with Apple Team ID for your OAuth flow:')
.sendLine(APPLE_TEAM_ID)
.wait('Enter your Key ID for your OAuth flow:')
.wait('Enter your Sign in with Apple Key ID for your OAuth flow:')
.sendLine(APPLE_KEY_ID)
.wait('Enter your Private Key for your OAuth flow:')
.wait('Enter your Sign in with Apple Private Key for your OAuth flow:')
.sendLine(APPLE_PRIVATE_KEY)
.wait('Try "amplify add api" to create a backend API and then "amplify publish" to deploy everything')
.run((err: Error) => {
Expand Down

0 comments on commit 6b2d4fc

Please sign in to comment.