and method

BddWhen and(
  1. String text
)

This keyword is used to extend a 'Given', 'When', or 'Then' step. It allows you to add multiple conditions or actions in the same step without having to repeat the 'Given', 'When', or 'Then' keyword. For example, "And I should see a confirmation message" could follow a 'Then' step to further specify the expected outcomes.

Implementation

BddWhen and(String text) => BddWhen._(bdd, text, _Variation.and);