-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(e2e): local e2e test hanging for sendYes
#13010
Changes from 2 commits
023528f
7bdc7f3
295ec90
4ad7631
8543186
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
AWS_ACCESS_KEY_ID=<your-access-key> | ||
AWS_SECRET_ACCESS_KEY=<your-secret-access-key> | ||
AWS_SESSION_TOKEN=<optional-session-token> | ||
CLI_REGION=<region> | ||
|
||
# Used for Auth Hosted UI | ||
FACEBOOK_APP_ID=fbAppId | ||
|
@@ -20,12 +21,9 @@ APPLE_KEY_ID=2QLZXKYJ8J | |
APPLE_PRIVATE_KEY=----BEGIN PRIVATE KEY-----MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgIltgNsTgTfSzUadYiCS0VYtDDMFln/J8i1yJsSIw5g+gCgYIKoZIzj0DAQehRANCAASI8E0L/DhR/mIfTT07v3VwQu6q8I76lgn7kFhT0HvWoLuHKGQFcFkXXCgztgBrprzd419mUChAnKE6y89bWcNw----END PRIVATE KEY---- | ||
APPLE_PRIVATE_KEY_2=----BEGIN PRIVATE KEY-----MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgIltgNsTgTfSzUadYiCS0VYtDDMFln/J8i1yJsSIw5g+gCgYIKoZIzj0DAQehRANCAASI8E0L/DhR/mIfTT07v3VwQu6q8I76lgn7kFhT0HvWoLuHKGQFcFkXXCgztgBrprzd419mUChAnKE6y89bWcNw----END PRIVATE KEY---- | ||
|
||
#Used for delete test | ||
AWS_ACCESS_KEY_ID=<your-access-key> | ||
AWS_SECRET_ACCESS_KEY=<your-secret-access-key> | ||
CLI_REGION=<region> | ||
|
||
# Used for cleanup script | ||
CIRCLECI_TOKEN = '<your token>' # Token used for querying CircleCI to get the build details | ||
CIRCLE_PROJECT_USERNAME='<your github username>' | ||
CIRCLE_PROJECT_REPONAME='amplify-cli' | ||
|
||
AMPLIFY_PATH= | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add comment that explains what this does. Something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done 295ec90 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this correct change?
If e2e tests pass then it's fine I guess.
Otherwise the
wait
argument can be subset of prompt for exampleAre you sure you want to continue
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I accidentally commit this change..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it passed the e2e test and it's sort of useful, I'll just leave it here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all e2e tests? if pipeline is green good to keep this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all e2e tests tho 🫢
Ok...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it does matter https://github.com/aws-amplify/amplify-cli/blob/dev/packages/amplify-cli/src/extensions/amplify-helpers/push-resources.ts#L105
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah.
if you want to capture both variants then either
.wait('Are you sure you want to continue')
OR
.wait(/<some awesome regex to capture both/)
see
amplify-cli/packages/amplify-e2e-core/src/utils/nexpect.ts
Line 75 in 7bc0b56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(not sure if we have 2 variants)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make it simple, I just removed the change 😂 4ad7631