vendredi 27 novembre 2020

cy.intercept is not a function Cypress test

I am copying code from the Cypress docs and have returned this error cy.intercept is not a function

enter image description here

My code is straight from the docs...

describe('My First Test', () => {
  it('Visit Home Page', () => {
      cy.intercept('search/*', [{ item: 'Book 1' }, { item: 'Book 2' }]).as('getSearch')
  }
})

Not sure why this would happen?

Aucun commentaire:

Enregistrer un commentaire