Skip to content

Add e2e testing instructions to AGENTS.md#9429

Open
nrfox wants to merge 2 commits intokiali:masterfrom
nrfox:add-agent-testing-instructions
Open

Add e2e testing instructions to AGENTS.md#9429
nrfox wants to merge 2 commits intokiali:masterfrom
nrfox:add-agent-testing-instructions

Conversation

@nrfox
Copy link
Copy Markdown
Contributor

@nrfox nrfox commented Mar 23, 2026

Describe the change

Document the full workflow for AI agents to set up, run, debug, and write Cypress e2e tests.

Steps to test the PR

Checkout changes then ask your AI of choice to read the AGENTS file and debug a cypress e2e test or write a cypress e2e test for you.

  1. Test flaky fixes by checking out this branch and telling your agent to read the AGENTS.md about debugging CI and then to go and debug
  2. Test writing new e2e tests by checking out this branch and telling your agent to read the AGENTS.md about writing e2e tests then tell the agent to write a new test covering x,y,z feature.

Automation testing

N/A

Issue reference

N/A

Document the full workflow for AI agents to set up, run, debug,
and write Cypress e2e tests:

- Integration test script (hack/run-integration-tests.sh) usage
  with --setup-only and --tests-only flags
- All 14 test suites and their corresponding tags
- Running individual Cypress tests by tag or feature file
- Debugging Cypress tests via Playwright MCP over CDP
- Pulling CI failure logs and screenshots with gh CLI
- CI job name to test suite mapping
- Writing new e2e tests with step definition patterns

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ScriptingShrimp
Copy link
Copy Markdown
Contributor

This is good kickoff! Some things works good (bootstrapping env, running tests), but I need to do some more testing.

Some things are too vague, I'm also unable to attach debugger. Can we create feature branch out of this?

Also I'm exploring how to establish this more in a form of agent(s) (or sub-agents) that have narrow scope.

@nrfox
Copy link
Copy Markdown
Contributor Author

nrfox commented Mar 26, 2026

Some things are too vague, I'm also unable to attach debugger. Can we create feature branch out of this?

What is vague? The goal is to be able to tell your agent to 1. Debug CI issues 2. Implement e2e tests for a feature.

Testing 1. Can be done by checking out this branch and telling your agent to read the AGENTS.md about debugging CI and then to go and debug 2. Can be done with any new feature. I'll update the PR description with this. The agent should handle all the setup and attaching to the debugger.

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.

2 participants