Guide to running Cypress end-to-end tests for Chatwoot
Chatwoot uses Cypress for end-to-end testing. Use the following steps to run the tests on your local machine.
Choose any of the given methods to run your Chatwoot test server.
You have to install the necessary dependencies as described in setup guide for this method to work.
Navigate to Chatwoot codebase in your local machine and execute the following steps:
Load the URL in the browser and wait for it to start up:
You have to install the necessary dependencies as described in setup guide for this method to work.
Navigate to Chatwoot codebase in your local machine and execute the following steps:
Load the URL in the browser and wait for it to start up:
Follow the docker setup guide until you build the images.
Open docker-compose.yaml
and update all the RAILS_ENV
values from development
to test
:
Under rails section in your docker-compose.yaml
update the port value as given below:
Load the URL in the browser and wait for it to start up:
Load localhost:5050
on your browser and ensure that the Chatwoot server is running.
Navigate to your Chatwoot local directory and execute the following command to run the Cypress tests:
This will open the Cypress Test Runner where you can:
If you encounter issues with Cypress testing:
Your Cypress testing environment is now ready for comprehensive end-to-end testing! 🧪