-
Notifications
You must be signed in to change notification settings - Fork 2k
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 promise and add timeout for more resilience #99403
Conversation
Link to live branch is being generated... |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
4117c23
to
e1ad8dd
Compare
this.page.waitForURL( /.*woocommerce\.com*/, { waitUntil: 'networkidle' } ), | ||
this.page.waitForResponse( /.*new\?.*/ ), | ||
const [ response ] = await Promise.all( [ | ||
this.page.waitForResponse( /.*users\/new\?.*/ ), |
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.
More specific to the API URL to avoid potential future breakage due to new
being too generic
packages/calypso-e2e/src/lib/pages/signup/user-signup-page.ts
Dismissed
Show dismissed
Hide dismissed
packages/calypso-e2e/src/lib/pages/signup/user-signup-page.ts
Dismissed
Show dismissed
Hide dismissed
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.
Thanks for fixing this! LGTM and tested well. 👍
It seems the issue is only happening on CI. Let's see if this can solve the issue on production. 🤞
Related to p1738774264455659/1738772766.101499-slack-C02DQP0FP
Proposed Changes
This PR adds a timeout in conjunction with wait. I suspect there are periods when signup takes more than 10 seconds which is the default timeout.
Testing Instructions
Pre-Release E2E Tests should pass
To test locally:
yarn workspace wp-e2e-tests test test/e2e/specs/onboarding/signup__woo-email.ts
Pre-merge Checklist