wait
Stops the test flow for the desired time.
usage wait(<seconds>,<description>)
default seconds <number> : 3 seconds
default description <string> : null
Examine the examples below.
/* LIBRARIES
*************/
const { sente } = require('#libraries');
const { wait } = sente;
// Wait 3 seconds
await wait();
// Wait 3 seconds
await wait(3);
// Wait 1 seconds
await wait(1);
// Wait 999 seconds
await wait(999);
// With descriptions
await wait(5,'I am waiting')
Last updated