This demo shows how to use
WebdriverIO for integration testing a
yFiles for HTML web application.
To run the integration tests:
-
Ensure that the demo server is running, see
The Demo Server.
- Go to the demo's directory
demos/testing/wdio.
- Run
npm install.
- Run the integration tests with
npm run test.
The demo starts with an empty graph, but graph items can be created interactively. The
integration tests test this functionality by simulating node, edge and port creation
gestures and verifying that the graph instance actually contains the newly created graph
items.
Tests are run in both Firefox and Chrome in headless mode. If you want to see the gestures
that are being tested, you can disable the "headless" options in
wdio.conf.ts and add an await browser.debug()
statement
at the end of a test in the spec file.