pactumjs / pactum

REST API Testing Tool for all levels in a Test Pyramid
https://pactumjs.github.io
MIT License
544 stars 52 forks source link

sleep after running a spec #349

Closed ASaiAnudeep closed 5 months ago

ASaiAnudeep commented 6 months ago

Is your feature request related to a problem? Please describe. sleep after running a spec

Describe the solution you'd like

await spec()
  .get('/path')
  .expectStatus(200)
  .sleep(1000);

Describe alternatives you've considered

await spec()
  .get('/path')
  .expectStatus(200);

await sleep(1000);

Additional context Can be used in spec handlers.

baabouj commented 5 months ago

@ASaiAnudeep I would love to work on this. Can I give it a try?