Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
👋 @mmtr, Can you review this change? Since we forced e2e to use the WP Admin screen, the GB e2e tests are failing on TeamCity. I suspect the tests are failing because the test could not load the WP Admin screen in the stipulated time. The tests are passing locally after increasing the default timeout. However, I am not sure if this is a good solution to fix the test.
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 investigating the test failures and suggesting a fix! However, I am not too sure about this change. I think there is a problem to be fixed in the tests. After testing locally using the
trunk
version, I was able to reproduce the error sometimes, but I have found that the problem happens when a Modal is displayed, please see attached screenshotThere 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, @epeicher, for quickly testing it. I tried to reproduce the modal case. However, the modal is not always visible. The primary problem here is that the previous navigation is timing out even though the selector is correctly resolved.
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 think this is what is happening:
Add New Page
button here, and it timeouts because the Modal is blocking that. The test that calls that is the failing one here.I think the proper fix would be either ensuring the Modal is not displayed for the test user or dismissing the Modal if it is displayed as a previous step in the test.
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.
This is the way to go.
Notices are displayed only once, if you manually log in into the site and dismiss then, they shouldn't appear any more and therefore, the next run of the E2E test will pass.
I see the most recent runs are green, so I think we're good?
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, @mmtr, for chiming in.
Yes. I think so.
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.
FWIW, a similar E2E test was failing here, and I prepared a PR to fix it (#98607).
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, @mmtr, for fixing the tests. 👍