-
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
Flaky E2E: Go to the new post page #82497
Comments
Something I've noticed: they are mostly, if not all, coming from the Jetpack Private site user. |
My guess, mostly a hunch from the years of experience writing tests against Calypso, is that we aren't waiting long enough for the cookie to settle after the user login step. It's hard to explain, but what I've observed happen in the past is that if we don't wait long enough for the redirect to On Simple sites the processing is done quite fast and so this is usually not a problem, plus the POMs we have developed over the years effectively waits for the cookie to settle. However, AT sites process much more slowly. My guess is that when the login process is occurring, the current implementation of the POMs is essentially firing "done" sooner than it should. This leaves the slow AT users in a partially-logged in state. Furthermore, the "done" signal lets Jest move on to the next step in the test, which in the case of Editor/Block related tests, is to directly navigate to the Post Editor URL. Because the login process didn't exactly complete though, the navigation fails because the editor only loads if the user is fully authenticated. Anyway, this is just my guess - we will probably have to iterate on any fix for this to see if it sticks. |
This has been really tricky to debug. Ultimately, it's an issue with Jetpack SSO on these atomic sites. However, now that we've scaled back our parallelization, we are hitting this a lot less. So I think we can bump down to normal, and put on the backlog. |
For future us: the issue was caused by the jetpack SSO redirect loop not working, and getting stuck essentially in a redirect loop. Here's how it goes:
All of ☝ is so far correct! What then fails is that it then redirects us back to the editor on the atomic host at So... Why is our Jetpack SSO auth not sticking when we land back in the editor? |
Spec file
specs/blocks/blocks__jetpack-earn.ts
TeamCity ID
10915856
Logs
#80730
The text was updated successfully, but these errors were encountered: