Fix flaky navigation frontend submenu e2e test#78270
Conversation
|
Size Change: 0 B Total Size: 7.95 MB ℹ️ View Unchanged
|
|
Flaky tests detected in 52aba8d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/25846252998
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Fixes #77711. The flaky test in question verifies a saved post, with a REST API fetch, before the saving has finished. This screenshot shows very clearly that the "Saving..." progress indicator is still visible when the REST fetch (and the failed assertion on the fetch result) is performed:
I'm fixing this by adding a wait for the notice that announces a finished save. This is the standard way to do this in our e2e suite, used in a large number of other tests.