Overview

AI validations let you verify conditions using natural language. Each validation should focus on checking a single aspect of your application, such as:

  • Text content and messages
  • Element states (enabled, visible, etc.)
  • Visual properties (colors, layout)
  • Element presence or absence

Writing Validations

Write validations in plain English, describing what you want to verify:

step input: "Verify that the success message says 'Order Confirmed'"

For specific examples and patterns, see the AI Validation documentation.

Using Variables

Include variables in your validations using $variable$ syntax:

step input: "Verify that the total price is $cartTotal$"

Best Practices

  • Keep validations simple and focused
  • One check per validation
  • Be specific about what you’re verifying
  • Use natural language

See AI Validation for detailed examples of each pattern.