You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an Angular application with the Cypress schematic in the documentation.
Create an integration spec with the cy.visit('/') command.
Launch Cypress as per usual: yarn cypress open --project .
Select the test to execute.
CURRENT BEHAVIOUR: Exception is thrown indicating that you are unable to execute cy.visit
EXPECTED BEHAVIOUR: Exception should not throw for a usual integration spec
The text was updated successfully, but these errors were encountered:
Hi, there's no need to navigate to a URL, you don't need to call cy.visit() in your test. Cypress provides a canvas where the component is mounted in isolation.
azaeng04
changed the title
Unable to execute integration spec files error thrown when calling c.visit
Unable to execute integration spec files error thrown when calling cy.visit
Dec 9, 2021
Yes I understand that, but Cypress isn't allowing me to execute my standard spec.ts files. Shouldn't it only throw that error if I am trying to do it inside a cy-spec.ts file that was defined?
I am getting that error when executing it in my spec.ts files.
Create an Angular application with the Cypress schematic in the documentation.
Create an integration spec with the
cy.visit('/')
command.Launch Cypress as per usual:
yarn cypress open --project .
Select the test to execute.
CURRENT BEHAVIOUR: Exception is thrown indicating that you are unable to execute cy.visit
EXPECTED BEHAVIOUR: Exception should not throw for a usual integration spec
The text was updated successfully, but these errors were encountered: