Skip to content

Commit bc13041

Browse files
authored
fix: E2e testing (#206)
* ci: fix pull tests * ci: fix env test
1 parent f6bee62 commit bc13041

File tree

2 files changed

+1
-7
lines changed
  • packages

2 files changed

+1
-7
lines changed

packages/amplify-codegen-e2e-core/src/init/amplifyPull.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function amplifyPull(
5555
}
5656

5757
if (settings.emptyDir) {
58-
chain.wait(/Successfully pulled backend environment .+ from the cloud\./).wait("Run 'amplify pull' to sync upstream changes.");
58+
chain.wait(/Successfully pulled backend environment .+ from the cloud\./).wait("Run 'amplify pull' to sync future upstream changes.");
5959
} else {
6060
chain.wait('Post-pull status').wait('Current Environment').wait(tableHeaderRegex).wait(tableSeperator);
6161
}

packages/amplify-codegen-e2e-tests/src/environment/env.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { nspawn as spawn, getCLIPath, getSocialProviders } from 'amplify-codegen
33
export function addEnvironment(cwd: string, settings: { envName: string; numLayers?: number }): Promise<void> {
44
return new Promise((resolve, reject) => {
55
const chain = spawn(getCLIPath(), ['env', 'add'], { cwd, stripColors: true })
6-
.wait('Do you want to use an existing environment?')
7-
.sendLine('n')
86
.wait('Enter a name for the environment')
97
.sendLine(settings.envName)
108
.wait('Select the authentication method you want to use:')
@@ -29,8 +27,6 @@ export function addEnvironment(cwd: string, settings: { envName: string; numLaye
2927
export function addEnvironmentWithImportedAuth(cwd: string, settings: { envName: string; currentEnvName: string }): Promise<void> {
3028
return new Promise((resolve, reject) => {
3129
spawn(getCLIPath(), ['env', 'add'], { cwd, stripColors: true })
32-
.wait('Do you want to use an existing environment?')
33-
.sendConfirmNo()
3430
.wait('Enter a name for the environment')
3531
.sendLine(settings.envName)
3632
.wait('Select the authentication method you want to use:')
@@ -143,8 +139,6 @@ export function addEnvironmentHostedUI(cwd: string, settings: { envName: string
143139
const { FACEBOOK_APP_ID, FACEBOOK_APP_SECRET, GOOGLE_APP_ID, GOOGLE_APP_SECRET, AMAZON_APP_ID, AMAZON_APP_SECRET } = getSocialProviders();
144140
return new Promise((resolve, reject) => {
145141
spawn(getCLIPath(), ['env', 'add'], { cwd, stripColors: true })
146-
.wait('Do you want to use an existing environment?')
147-
.sendLine('n')
148142
.wait('Enter a name for the environment')
149143
.sendLine(settings.envName)
150144
.wait('Select the authentication method you want to use:')

0 commit comments

Comments
 (0)