Skip to main content
testdriver/assert.yaml

Description

The assert command validates that a specific condition is true. It ensures that a task completed successfully by checking the screen for the expected outcome. If the condition isn’t met, the test will fail.

Arguments

Example usage

Example with async

Notes

  • Use async: true to speed up tests by allowing non-blocking assertions. However, the test will still fail if the condition isn’t met.
  • Ensure the expect string clearly describes the condition to avoid ambiguity.