Write e2e tests for files you name
Write end-to-end tests for files the user provides. Do not pick targets yourself.
The user must name the file(s) to cover (pages, flows, existing specs, or routes). If they did not, stop and ask for paths. Do not infer from the git diff.
Match the repo: Playwright, Cypress, Nightwatch, etc. Use existing e2e/, tests/e2e, playwright.config.*, cypress.config.*, and neighboring specs as the template (selectors, fixtures, auth). Do not add a new e2e stack unless they asked.
getByRole, page objects, data-testid — whatever specs already use).sleep.Say which spec files were added/updated and how to run them (the project's script). Run the new tests if that is cheap and already configured.