Repository navigation
Tests: Cover front-end comment submission in admin E2E - #15729
shail-mehta wants to merge 3 commits into
Conversation
Adds coverage from #52895 for creating a post, viewing it, submitting a comment, and checking the Comments screen.
There was a problem hiding this comment.
🟡 Changes recommended
The comment textarea locator expects the exact label Comment, but the form uses Comment *, causing the test to time out before submitting a comment.
1 open issue
What changed in this PR
Adds Playwright coverage for front-end comment submission and verification in the Comments admin screen, addressing the Comments workflow described in ticket #52895.
Changes:
- Creates a published post with comments enabled and removes it after the test.
- Submits a unique comment through the front-end form as an administrator.
- Checks the saved comment through REST and verifies its content in the admin list.
| File | Description |
|---|---|
tests/e2e/specs/comments.test.js |
Adds the comment submission workflow, persistence checks, admin verification, and fixture cleanup. |
Review effort: Balanced
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
lancewillett
left a comment
There was a problem hiding this comment.
Looks good. Posting a comment from the front end is not covered yet (moderate-comments.test.js creates its comments through REST), and the test checks both the saved comment and its row in Comments.
AI review · claude-opus-5-5
Post a comment through the comment form on a published post. Check that the comment is saved and approved, and that it appears in the Comments screen. Developed in: #15729 Props shailu25. See #52895. git-svn-id: https://develop.svn.wordpress.org/trunk@65323 602fd350-edb4-49c9-b593-d223f7449a82
|
PR #15729 landed in https://core.trac.wordpress.org/changeset/65323 |
Post a comment through the comment form on a published post. Check that the comment is saved and approved, and that it appears in the Comments screen. Developed in: WordPress/wordpress-develop#15729 Props shailu25. See #52895. Built from https://develop.svn.wordpress.org/trunk@65323 git-svn-id: http://core.svn.wordpress.org/trunk@64463 1a063a9b-81f0-0310-95a4-ce76da25c4cd

Trac ticket: #52895
Adds Comments e2e coverage from ticket #52895.
What
Why
Ticket #52895 says for Comments: create a post, view it, add a comment, and check that it displays on the comments page.
How
New Playwright spec:
tests/e2e/specs/comments.test.js. Post creation and cleanup use the REST API; the comment is submitted through the front-end form while logged in as admin.Testing instructions
npm run env:startnpm run test:e2e -- tests/e2e/specs/comments.test.jsUse of AI Tools