Cypress Testing Demo
This demo shows how to use Cypress for testing a yFiles for HTML web application.
The application under test is the Simple Testable App.
To run the test:
- Start the Demo Server.
- Go to the demo's directory
demos-ts/testing/cypress. - Run
npm install. -
Run the test with
npm run testor Cypress' test UI withnpm run test-ui.
In contrast to the other testing demos, this test suite does not perform interactive graph editing with emulated mouse events due to limited capabilities of Cypress.
Please note, that this demo assumes that the yFiles demo server is running. You can also
change the url in cypress/e2e/yfiles.cy.ts to a running application.