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.
Note: 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
RAILS_ENV=test bin/rake db:dropRAILS_ENV=test bin/rake db:createRAILS_ENV=test bin/rake db:schema:load
RAILS_ENV=test foreman start -f Procfile.test### load the url in the browser and wait for it to start uphttp://localhost:5050/app/login
Follow the docker set up guide until you the build images.
docker-compose.yaml and update all the
RAILS_ENV values from
Under rails section in your
docker-compose.yaml update the port value as given below.
ports: - 5050:3000
docker-compose run --rm rails bundle exec rails db:reset
docker-compose up### load the url in the browser and wait for it to start uphttp://localhost:5050/app/login
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.
yarn cypress open --project ./spec