Invite tests sporadically failing, claiming a re-use of the invite link
For the last few days we've had sporadic failures with the invite tests, claiming that the invitation link was already used. It needs investigation.
https://circleci.com/gh/Automattic/wp-e2e-tests/12872
I spent some time looking at this:
- It's definitely reproducible locally with inviting followers, and most often happens with our
e2eflowtesting3account. Using another account likee2eflowtestingis very slow to accept, but doesn't throw the same error - I think it's more likely the accept API rather than a calypso thing
- Accepting invites have always been slow - @ebinnion wasn't able to work out why at the time invites were implemented
- We have some logic to try to log on again when accepting an invite - I think may make it worse and I'm trying removing this in #709
- If we can't work it out I reckon it would be best just to exclude the follower test for now
I've merged #709 which seems to improve things generally, and excludes the follower invite test for now.
This test is still failing: https://github.com/Automattic/wp-e2e-tests/pull/751
Should we delete it or investigate further?
How likely does it seem that it's an issue an actual user will have? Do we need a Trac issue to drive some investigation on the API side?