mercredi 7 novembre 2018

Cypress react cy.visit() any url that is not index

I just started using Cypress and I am trying to create a test for the Sign Up page. When I do cy.visit('/'); everything works fine but I want to go directly to the Sign Up page. When I try doing cy.visit('/signup') the tests fail. It returns code 200 but it has content-type = null so it fails.

Does anyone have an idea on how to fix this?

Aucun commentaire:

Enregistrer un commentaire