Wave supports authoring functional tests in Python for the Cypress test framework. This feature lets you automate browser-based point-and-click tests for your app.
Step 1: Install Node.js
Install a recent version of Node.js.
Step 2: Set up Cypress
Using your terminal, go to your Wave installation's
test directory and install Cypress
Writing a test
To escape Cypress function names that overlap with Python's reserved keywords, prefix the name with an underscore
_. For example, use
cy._as() instead of
Running your test
Step 1: Start the Cypress test runner
Step 2: Start the Wave server and your app as usual
CYPRESS_INTEGRATION_TEST_DIR environment variable indicates where the Wave SDK should write translated files to. This must be set to the
Alternatively, you can set the
CYPRESS_INTEGRATION_TEST_DIR environment variable in your shell (or IDE) to simplify running your test file:
Step 4: Run your tests
At this point, you should find all your tests displayed in the Cypress UI. Simply click on a test to run it. Happy testing!