mardi 5 mars 2019

Cypress cy.visit('/') test is not working

I am trying to run a test on a react app with cypress. The test is simple. Just tried to visit the base url through cy.visit()

describe('This is my first test', function() {
it('Go to home',function () {
   cy.visit('/')
 })
});

Done exactly what is described at the official documentation. But there seems to have a problem. It says Uncaught TypeError: Cannot read property 'apply' of undefined. I used redux-saga as a middleware and the page will call an api when it loads.the error is. The same error occurs even if the api is not being called.

Aucun commentaire:

Enregistrer un commentaire