ng e2e
npm install --save-dev cypress
fuer das jeweilige Angular Projekt- projekt servern mit
ng serve
- in andererm Terminal
npx cypress open
um den cypress client zu starten. - cypress ersetzt angulars
protractor
und gibts open source oder kommerziell - unabhängig von angular, geht mit jeder browseranwendung
{"$schema": "https://on.cypress.io/cypress.schema.json",
"baseUrl": "http://localhost:4200"
}
füge als erste Zeile dies hinzu /// <reference types="Cypress" />
(This is to get type definition support from VSCode’s IntelliSense for auto-completion and method signatures of Cypress.)