Opened 5 weeks ago
Last modified 4 weeks ago
#65771 new enhancement
Add end-to-end tests for comment moderation on edit-comments.php
| Reported by: | csmcneill | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description
Comment moderation has no end-to-end coverage: approving, unapproving, marking as spam, replying from the admin, and bulk spam actions are all untested.
A spec covering those flows is open as a PR: https://github.com/WordPress/wordpress-develop/pull/12667
The tests self-provision their comments over the REST API, use role-based locators against the current markup, and clean up after themselves. Green across the full CI matrix. It complements the quick-edit/delete coverage proposed in https://github.com/WordPress/wordpress-develop/pull/8089 rather than duplicating it.
Part of a series adding e2e coverage for classic admin surfaces — see #52895.
Change History (2)
This ticket was mentioned in PR #12667 on WordPress/wordpress-develop by @csmcneill.
4 weeks ago
#1
- Keywords has-unit-tests added
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
e2e test that covers approving, unapproving, spamming, replying from the admin, and bulk spam via edit-comments.php — admin surfaces with no existing e2e coverage.
Comment moderation is one of the oldest admin workflows and currently has no e2e coverage. These tests self-provision their comments over the REST API, use role-based locators against the post-Reskin markup, and clean up after themselves.
This complements the in-flight quick-edit/delete work in #8089 rather than duplicating it — that PR covers viewing, quick-editing, and deleting; this one covers moderation state transitions and bulk actions.
Trac ticket: https://core.trac.wordpress.org/ticket/65771
Trac ticket: https://core.trac.wordpress.org/ticket/52895
## Verification
## Use of AI Tools
AI assistance: Yes
Tool(s): Claude (Claude Code via Craft Agents)
Agent(s): Fable 5
Used for: Test authoring and cross-environment verification, with human review; reviewed and submitted by the author.