Skip to content

Repair wp/5.6 branch Actions: Remove the Axe check that runs after every e2e test - #84962

Open
desrosj wants to merge 1 commit into
fix-actions-5.6/docker-compose-v2from
fix-actions-5.6/remove-global-axe-e2e-check
Open

desrosj wants to merge 1 commit into
fix-actions-5.6/docker-compose-v2from
fix-actions-5.6/remove-global-axe-e2e-check

Conversation

@desrosj

@desrosj desrosj commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Part of #82937.

What?

Removes the global afterEach Axe accessibility scan from packages/e2e-tests/config/setup-test-framework.js: the runAxeTestsForBlockEditor() function and its call. This is a hand port of #26626 (39fe8d6), which removed the same hook on trunk in Gutenberg 9.7. wp/5.7 and every newer branch already have that change.

Why?

After every test, the hook scans the editor with Axe and fails the test on any violation, even when the test itself passed. On this branch the two "should strip potentially malicious on* attributes" tests (missing.test.js and invalid-block.test.js) fail on the image-alt rule. They came with the 2021-09-08 security backport "Rich text: disable some attributes" (49a979f) and deliberately put <img src onerror=alert(1)> in the post to check that the onerror handler doesn't run. The tests pass, but the image they leave has no alt text, so the scan that runs afterwards fails them. The scan also fails new editor state › should be immediately saveable (demo.test.js) when it tries to inject axe-core into an iframe in the demo post that is still loading (Failed to inject axe-core into frame (about:blank)), which is flaky. These three tests are the only end-to-end failures on this branch.

On trunk, #26626 removed the scan because its list of disabled rules kept growing to get CI green, and some of its reports were Axe bugs; it also made the end-to-end tests 2–4 minutes faster.

How?

The same deletion as #26626, applied by hand because this branch's version of the file differs (its list of disabled rules is shorter). No lines are added.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

🤖 Generated with Claude Code

@desrosj desrosj added [Type] Build Tooling Issues or PRs related to build tooling [Package] E2E Tests /packages/e2e-tests labels Oct 16, 2026
@desrosj desrosj self-assigned this Oct 16, 2026
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3cd3c1a8-b59f-4b07-8e42-4a2ded2d8450

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

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 props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @tellthemachines.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: tellthemachines.

Co-authored-by: desrosj <desrosj@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@desrosj
desrosj force-pushed the fix-actions-5.6/remove-global-axe-e2e-check branch from 0a43b18 to 6caf464 Compare October 19, 2026 17:09

@tellthemachines tellthemachines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙀 that we had these running after every test!

Makes sense to remove.

@tellthemachines

Copy link
Copy Markdown
Contributor

Note we also have toPassAxeTests on this branch which I don't believe is called anywhere else. Probably not worth removing though.

@desrosj

desrosj commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

Note we also have toPassAxeTests on this branch which I don't believe is called anywhere else. Probably not worth removing though.

Confirmed that it's not being called anywhere. Agreed that leaving it as is would be totally fine.

@desrosj
desrosj removed this pull request from stack #84979 October 21, 2026 18:30
@desrosj
desrosj added this pull request to stack #85319 October 21, 2026 18:30

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] E2E Tests /packages/e2e-tests [Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants