text: import './commands';
  Cypress.on('window:before:load', win => {
    cy.stub(win.console, 'error').callsFake(message => {
      cy.now('task', 'error', message);
    });
  
    cy.stub(win.console, 'warn').callsFake(message => {
      cy.now('task', 'warn', message);
    });
  });
  
  
  