Docs/Steps

Conditional

conditional runs a block of steps only when a predicate is true. Use it for cleanup paths, feature flags, and soft branches that a test needs to tolerate without failing.

yaml
- conditional:
    if: the cookie banner is visible
    then:
      - click: accept cookies
Conditionals are a common source of false positives when the predicate silently never matches. Log the branch that ran so you can audit it.