@playmatic
command in Slack to interact with the Playmatic agent. Simply describe what you need in natural language, and the agent will create or update tests in your playmatic/
folder.
Each workflow below includes example instructions and best practices to help you get reliable and fast coverage.
Add regression tests
If you need to add coverage for your app, we recommend adding tests incrementally by pages or by feature. Breaking down the task lets the agent create more comprehensive tests.Test new features
When testing new features, give the agent clear direction on what “good” looks like. The more specific your description, the better the agent can test the intended behavior. You can provide context in several ways: Using a spec or user stories:The more specific you are about expected behavior, the better the agent will test the intended paths. Vague instructions will only catch obvious functional bugs.
Maintain existing tests
Update your tests to match changes in your application, ranging from simple selector updates to complete UI redesigns. Just tell the Playmatic agent which tests need updating and point it to the new source of truth (like a specific branch or environment). Updating tests after selector changes:Update tests after the new working implementation is committed to a branch. This gives the agent a clear source of truth to test against.