Skip to content

Fix flaky / failing tests.#29

Merged
adriaandotcom merged 1 commit into
simpleanalytics:mainfrom
paulber33:Fix-Tests
Jun 18, 2026
Merged

Fix flaky / failing tests.#29
adriaandotcom merged 1 commit into
simpleanalytics:mainfrom
paulber33:Fix-Tests

Conversation

@paulber33

@paulber33 paulber33 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR fixes CI instability and PHP 8.5 compatibility issues affecting E2E tests.

1. wp-env CI failure after Node version change

GitHub Actions started failing due to a Node version change affecting wp-env startup behavior (see WordPress/gutenberg#78762).

Fix: Updated wp-env to restore compatibility.

2. PHP 8.5 compatibility issue

Fixed compatibility issue in:

src/Settings/Blocks/Fields/Checkboxes.php

Fix: Adjusted code to be compatible with PHP 8.5 changes.

3. Flaky E2E tests due to premature test execution

wp-env start does not guarantee WordPress is fully ready before tests run.

Fix: Increased startup timeout to ensure WordPress is ready before executing tests.


Security implications

  • No security impact
  • Has security impact - described as:

Testing

  • Verified locally
  • Triggered GitHub Actions E2E tests

Checklist

  • Linked to an issue
  • Tested
  • Asked for a review

Update wp-env to fix unzip failing (WordPress/gutenberg#78762)
Update src/Settings/Blocks/Fields/Checkboxes.php to fix PHP 8.5 tests
Increase test timeout to 60s. wp-env sometimes takes longer to start and listen to requests
@adriaandotcom adriaandotcom merged commit 66d4c5d into simpleanalytics:main Jun 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants