Skip to main content

AI assertions (beta)

AI assertions are a powerful way to check complex conditionals about your page. Unlike deterministic assertions or expect statements from traditional testing frameworks, they allow for checking for high-level conditionals. You can treat the assertion agent as a junior QA engineer that just joined your team and has a only a superficial knowledge of your product.

To ensure stable tests, we encourage to favor deterministic assertions over AI assertions.

AI assertions could be used to save time if a deterministic assertion is too tedious to write.

Unsupported use cases

The following use cases are not recommended because they are either completely unsupported, or result in unstable behaviours.

  • ❌ Checking that a transient event did NOT happen. Eg. "check that no banner appeared"
  • ❌ Checking for events that last less than three seconds
  • ❌ Checking for complex logic. Eg. "Check that the VAT rate is correct".