Increase default Jest timeout to 30s #5901
Merged
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.
Summary
The E2E test
Template mode recommendations with non-reader-theme active › makes correct recommendations when user is not technical and the current theme is not a reader theme
has become flaky as it now sometimes times out while attempting to install thehestia
theme.To resolve this, this PR increases the default Jest timeout from 10s to 30s. Alternatively, the 30s timeout could be applied specifically to the aforementioned test, but that may also have to be done for similar tests that sometimes have long timeouts (like the ones that
await
on installing themes and plugins, for example).Example of flaky test: https://github.com/ampproject/amp-wp/runs/1930306642#step:12:17