Do | Don’t |
---|---|
Break down tasks into small, explicit steps | Avoid high-level tasks like “Add iPhone 16 to cart” |
Use quotation marks around text to input | Don’t write inputs without quotes |
Use clear UI vocabulary: “button”, “navbar”, “input field”, etc. | Don’t refer to elements vaguely |
Be specific with location when multiple elements share a label | Don’t assume the agent will click the right one |
Add scroll instructions when necessary | Don’t assume the agent will scroll automatically |
Clearly separate “Given”, “When”, and “Then” logic | Don’t write assertions based on unstable or temporary UI states |
Only test public pages, or pass access tokens explicitly. | Don’t rely on login state unless properly configured |