Chore: Initialize Cypress tests (#1078)

Addresses: #412

Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
This commit is contained in:
Sojan Jose
2020-07-21 20:11:22 +05:30
committed by GitHub
parent fcb7625616
commit d6f309ce22
25 changed files with 654 additions and 38 deletions

View File

@@ -5,12 +5,13 @@ path: '/docs'
This guide will help you get started with Chatwoot!
### Environment Setup
### Environment Setup for local development
* [Mac](/docs/installation-guide-mac-os)
* [Ubuntu](/docs/installation-guide-ubuntu)
* [Windows](/docs/installation-guide-windows)
* [Docker](/docs/installation-guide-docker)
*
### Project Setup
@@ -19,7 +20,7 @@ This guide will help you get started with Chatwoot!
* [Conversation Continuity with Email](/docs/conversation-continuity)
* [Common Errors](/docs/common-errors)
### Deployment
### Deploying Chatwoot in Production
* [Architecture](/docs/deployment/architecture)
* [Heroku](/docs/deployment/deploy-chatwoot-with-heroku) (recommended)

View File

@@ -81,7 +81,21 @@ docker-compose run -rm server bundle exec rake db:reset
This command essentially runs postgres and redis containers and then run the rake command inside the chatwoot server container.
### Docker for production
### Running Cypress Tests
Refer the docs to learn how to write cypress specs
https://github.com/shakacode/cypress-on-rails
https://docs.cypress.io/guides/overview/why-cypress.html
```
# in terminal tab1
overmind start -f Procfile.test
# in terminal tab2
yarn cypress open --project ./test
```
### Debugging Docker for production
You can use our official Docker image from [https://hub.docker.com/r/chatwoot/chatwoot](https://hub.docker.com/r/chatwoot/chatwoot)