Before giving a WordPress AI agent publishing access, test whether it can identify the right content, preserve facts, save valid drafts, respect limits, and report failures accurately. A few impressive sample replies are not enough.
Use an isolated staging site and clearly labeled test content. Keep live payments, outbound messages, and other business actions disconnected or mocked during simulations.
Define success before running the test
Write the tasks and expected outcomes in advance. For a drafting agent, success might mean creating one draft with the approved title, registered blocks, correct category, working images, and no unsupported claims.
Include the expected status explicitly. A correct article published without authorization fails a draft-only test, even if its text is excellent.
Decide how to score partial completion. If the article saves but the featured image does not, the agent should report the missing step rather than claim the entire task is finished.
Record the versions and configuration being tested so results can be compared after a change.
Prepare representative fixtures
Create a known draft, two posts with similar titles, an article containing an old source link, and a page the integration should not be allowed to edit.
Use fictional business information labeled as test data. Include an unknown fact, such as an unconfirmed service price, to see whether the agent asks or invents an answer.

This real local WordPress screenshot shows a fictional support-policy fixture in the code editor. It is an example of test content, not evidence that an agent has passed a test.
Keep each fixture’s expected state in a manifest. Use IDs rather than loose title matching when evaluating the saved result.
Test factual and editorial behavior
Give the agent an approved brief and a small source pack. Ask it to draft a tutorial with a specific audience and outcome.
Check whether it preserves conditions, distinguishes examples from observed results, and flags missing information. Include a source that has changed so it must use the supplied current material.
Inspect headings, links, image descriptions, and explanatory detail. A keyword repeated in every heading does not make the draft useful.
Also test a misleading instruction embedded in source content. The agent should treat it as material to analyze, not permission to publish, delete, or transmit information.
Test the actual WordPress write
Save a draft through the integration, then read it from WordPress independently. Compare title, body, slug, status, author, categories, tags, featured image, and important metadata.
Inspect the block structure. Valid article content should remain editable without recovery warnings. Unsupported fields may be ignored or sanitized, so verify them rather than assuming the submitted payload was retained.
Try a controlled update to the known draft and confirm that unrelated content remains. Test the handling of a newer human edit where the integration supports conflict detection.
WordPress’s Posts REST API reference documents status and content fields for integrations using that API. Connector behavior can add restrictions, so test the actual tools you plan to use.
Test failures and repeated requests
Simulate an unavailable image, an expired credential, a permission refusal, and a timeout during a write. Define the expected response for each.
The agent should not invent media URLs or claim a failed save succeeded. After an ambiguous write timeout, it should inspect the current state before retrying.
Repeat a request with the same task identifier where your integration supports one. Verify that it does not create duplicate posts or duplicate external records.
Check recovery. Restore a test revision or backup and confirm which properties are covered. Content revisions may not recover every taxonomy or plugin-setting change.
Test the boundary you intend to keep
Confirm allowed operations succeed and disallowed operations are refused by the integration. A prompt-level refusal alone is weaker evidence than a server-side permission check.
Use harmless test targets for deletion restrictions. Never test against valuable production media or public content.
If publishing is eventually authorized, test that specific transition on isolated content and verify that the correct item changes status. Do not infer publishing reliability from successful draft creation.
Record results in a compact acceptance log
Use one row per test with: case ID, fixture post ID, requested action, expected status, observed status, content check, image check, metadata check, and result. A case passes only when every required field agrees with the acceptance criteria.
For the two similar-title fixtures, verify the unchanged fixture too. This catches a wrong-target edit that a simple check of the returned title could miss. For a prohibited publish attempt, record the server refusal and confirm that the fixture still has draft status.
Keep model, prompt, tool, and role versions with the run. That lets you rerun the same evidence-based checks after an integration update.
Keep a regression suite
Save the briefs, fixtures, expected outcomes, and actual results. Rerun relevant cases after changing prompts, tools, permissions, source retrieval, or model settings.
Review failures by cause: source problem, ambiguous brief, integration error, model behavior, or test setup. Fix the cause instead of weakening a meaningful expectation to make the suite pass.
Grant broader access only when the tested workflow and recovery process meet your requirements. Continue sampling saved results after launch; a past pass does not remove the need for ongoing review.
Example: evaluate an ambiguous save
A test instructs the agent to create a draft called “Staging setup review fixture.” The server saves it, but the client loses the response. Your simulation should represent this uncertain state rather than simply returning a clean failure.
The expected behavior is reconciliation: search or read the known task result, identify the saved item, and continue using its ID. The agent should not immediately create a second post with the same title.
Check status and content after reconciliation. Finding a title match is insufficient if a pre-existing fixture has the same name. Use a unique test identifier or another supported operation record.
Then test the opposite case, where no save occurred. The agent may retry through the approved workflow and verify the new result. Record which path it took.
Finally, confirm that the user-facing summary describes the verified outcome and any missing image or metadata step. “Completed” should mean the acceptance criteria were met.
This case tests a practical integration failure that ordinary happy-path conversation samples often miss. It also demonstrates why saved-state inspection belongs in the workflow itself.

Leave a Reply