Skip to main content
edited title
Link
Oxy
  • 119
  • 1
  • 3

Is it right to add a For BDD, should the step for waitingto wait be explicit in the BDD feature file or just implemented in the step?

Source Link
Oxy
  • 119
  • 1
  • 3

Is it right to add a step for waiting in the BDD feature file?

I'm using BDD and I'm writing Gherkin feature files. Is it good practice to add a step in a Scenario to wait for a while?

Something like:

Waits for 2 seconds after all the operations complete

or should this be implemented in the code without having an explicit step? A stakeholder would not know about the necessity to wait for a bit before checking for something so in some way, this is not part of the business logic but it is convenient to implement this step to allow to easily enforce that the checks run after a bit.