support/index.js:
it('Users creation', () => {
// this test should run once per execution of all specs, not at the beginning of each spec which is Cypress's default behavior upon npm run
const crossSpecsParamName = 'usersCreated';
cy.task('loadCrossSpecsParams', crossSpecsParamName).then(savedValue => {
if (savedValue !== null) {
return;
}
// create users...
cy.task('saveCrossSpecsParam', {key: crossSpecsParamName, value: true})
})
})