![]() The reason this is happening is that our application's dev server is not running. Next click on the “home.cy.ts” spec file.Ĭypress is throwing an error and says that it cannot load localhost:3000. Then click on “Chrome” and the “Start E2E Testing in Chrome” button. We need to update it to run tests against our course application, but before we do that, let's break down the code that is in this file. This is the default test that Cypress created when we asked it to create our spec file. Open the cypress/e2e/home.cy.ts file in VSCode. Now that we have created our spec file, we need to update it for our course application. Then click on the “Okay, run the spec” button.Ĭypress will then run our spec against our Kitchen Sink application. We are going to be writing tests for the application's home page so let's rename this file to “home.cy.ts” Once you install it, you will need to re-launch Cypress.Ĭlick on “Chrome” and then the “Start E2E Testing in Chrome” button.Ĭypress will then launch and ask us to create our first spec since we don't have any test files created yet. ![]() If you do not see “Chrome” as an option, that means you do not have it installed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |