update_test
Update a test's script, name, description, schedule, or enabled state. Modify existing tests to keep them accurate without deleting and re-creating.
Instructions
Update a test — script, display name, description, schedule, or enabled state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Test file name (with or without .spec.ts) | |
| enabled | No | Set false to disable without deleting | |
| schedule | No | Run frequency (1h for critical flows) | |
| test_code | No | New full Playwright test code | |
| validated | No | Set true ONLY after a human has manually run this test and confirmed the result looks right — this is what allows the scheduler/webhook to pick it up automatically. Never set this on your own inference (e.g. "the dry-run passed so it must be fine"); ask the user first. Ignored if test_code is also being changed in this same call — a code edit always resets validated to false, since the edited version hasn't been reviewed yet. | |
| credential | No | Credential set label to inject as credentials.* in the test (e.g. "meuapp-prod") | |
| description | No | What the test verifies | |
| display_name | No | Human-readable name for the test |