jump
You can navigate between "sections" using the "jump" method. For more information refer to the "SECTIONS" The "jump" method works only on sections, but it does not operate within the last section.
Usage
jump("<section_name>")
Please review the following examples.
/* LIBRARIES
*************/
const { sente } = require('#libraries');
const { jump } = sente;
/* TEST FLOW
*************/
let counter = 0;
let counterInterval = setInterval(_=>{ counter ++; },1000);
section['First Section Name'] = async () => {
log(counter);
await wait(1);
}
section['Second Section Name' ] = async () => {
await wait(1);
if( counter<6) jump('First Section Name')
}
section['Third Section Name' ] = async () => {
clearInterval(counterInterval);
}

Last updated