AXON-1465: increased startWork e2e test time #1265
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.
What Is This Change?
This PR enhances the E2E test suite's reliability by addressing test state pollution issues and improves CI observability for flaky tests
Added WireMock reset: Introduced resetWireMockMappings() helper function to reset all WireMock mappings before each test, preventing state pollution between test runs
Updated StartWork Test: Increased Timeout: Extended startWorkFlow test timeout from 50s to 60s to accommodate slower CI environments
Added Playwright Reporters: Configured both list and github reporters for better test output formatting and CI integration
Optimized Artifact Generation: Changed video/trace capture from retain-on-failure to on-first-retry to reduce storage overhead while maintaining debugging capability
Always Upload E2E Artifacts: upload test artifacts on all runs (not just failures) enabling better analysis of flaky tests
Enhanced Annotations: CI now includes annotations for flaky tests in addition to failures
How Has This Been Tested?
Basic checks:
npm run lintnpm run testAdvanced checks:
Recommendations: