This plugin uses Cypress.io for end-to-end testing.
Cypress's files are located in tests/cypress/.
Use node's package manager npm to install Cypress and it's dependencies:
npm installBefore running Cypress, you'll need to copy cypress.example.json to cypress.json,
and modify it for your environment.
You will need to configure the following variables for your environment.
baseUrlThis is the base URL of your local WordPress instance.admin_userThe WordPress admin user.admin_passPassword for the admin user.customer_userA WooCommerce customer account user.customer_passThe password for the customer account.test_product_urlA frontend URL to a product to test with during checkout.
Cypress relies on fixtures to provide some additional information. The fixtures
for the form fields in the Admin screen are built using PHP reflection. If you
modify the field names, you will need to regenerate the fixture data by running
the following composer command:
composer run-script generate-fixturesIn your terminal:
$(npm bin)/cypress open