Skip to content

fix(e2e): revert networkidle to domcontentloaded in a11y editor setup#29

Merged
dknauss merged 1 commit into
mainfrom
claude/youthful-neumann-ceec32
May 10, 2026
Merged

fix(e2e): revert networkidle to domcontentloaded in a11y editor setup#29
dknauss merged 1 commit into
mainfrom
claude/youthful-neumann-ceec32

Conversation

@dknauss
Copy link
Copy Markdown
Owner

@dknauss dknauss commented May 10, 2026

Summary

  • Reverts waitForLoadState('networkidle') to 'domcontentloaded' at line 248 of tests/e2e/a11y.spec.js
  • Gutenberg makes continuous background REST calls so networkidle never resolves, causing the a11y test to time out at 120s every run
  • The existing toBeVisible({ timeout: 30000 }) on the Block Inserter button already waits for editor boot — no additional gate is needed
  • The other three post-new.php navigations in this file already use domcontentloaded for the same reason

Test plan

  • CI Playwright Playground smoke / Run accessibility gate passes
  • No other E2E jobs regress

🤖 Generated with Claude Code

Gutenberg makes continuous background REST requests so networkidle
never resolves, causing a 120s timeout. The existing toBeVisible
timeout on the Block Inserter button is sufficient to wait for editor
boot. The three other post-new.php navigations in this file already
use domcontentloaded for the same reason.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.00%. Comparing base (e2ce901) to head (8049b33).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #29   +/-   ##
=======================================
  Coverage   81.00%   81.00%           
=======================================
  Files          39       39           
  Lines        2416     2416           
  Branches      449      449           
=======================================
  Hits         1957     1957           
  Misses        113      113           
  Partials      346      346           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dknauss dknauss merged commit f40e49d into main May 10, 2026
22 checks passed
@dknauss dknauss deleted the claude/youthful-neumann-ceec32 branch May 10, 2026 22:42
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.

1 participant