function itCallback ( func ) {
    func();
    cy.then(() => {
        if ( errors.length ) {
            const _ = Cypress._;
            let msg = '';

            if ( Cypress.browser.isHeaded ) {

                msg = 'Failed soft assertions... check log above ↑';
            } else {

                _.each( errors, error => {
                    msg += '\n' + error;
                });

                msg = msg.replace(/^/gm, '\t');
            }

            throw new Error(msg);
        }
    });
}
// to each test case where we'll assert if there are any soft assertion errors
to each test case where we'll assert if there are any soft assertion errors
to each test case where we ' ll assert if there are any soft assertion errors
function itCallback ( func ) {
    func();
    cy.then(() => {
        if ( errors.length ) {
            const _ = Cypress._;
            let msg = '';
            if ( Cypress.browser.isHeaded ) {
                msg = 'Failed soft assertions... check log above ↑';
            } else {
                _.each( errors, error => {
                    msg += '\n' + error;
                });
                msg = msg.replace(/^/gm, '\t');
            }
            throw new Error(msg);
        }
    });
}
function itCallback ( func ) { func ( ) ; cy . then ( ( ) => { if ( errors . length ) { const _ = Cypress . _ ; let msg = '' ; if ( Cypress . browser . isHeaded ) { msg = 'Failed soft assertions... check log above ↑'; } else { _ . each ( errors , error => { msg += '\n' + error ; } ) ; msg = msg . replace ( / ^ / gm , '\t' ) ; } throw new Error ( msg ) ; } } ) ; }
to each test case where we'll assert if there are any soft assertion errors
to each test case where we ' ll assert if there are any soft assertion errors