Viable Data Tech Task Sample App
- node v18
<a href="link here>How to create a new form component and a form
1. Clone this repo
2. Install package dependencies
npm install
3. Build development bundle (optional)
npm run build:dev
4. Start the application (optional)
npm start
2. Build the application Docker container
docker build -t this-app .
3. Run the resulting Docker container
docker run -d --name this-app -p 8080:8080 this-app .
Run all the tests on local environment - replace below command with actual mailslurp API key (It executes tests headless mode on Electron Browser)
npm run cypress:run:local -- --env MAIL_API_KEY=<API_KEY> .
Run tests on cypress runner on local environment - replace below command with actual mailslurp API key
npm run cypress:open:local -- --env MAIL_API_KEY=<API_KEY> .
Run all the tests on development environment - replace below command with actual mailslurp API key (It executes tests headless mode on Electron Browser)
npm run cypress:run:dev -- --env MAIL_API_KEY=<API_KEY> .
Run tests on cypress runner on a specific browser on development environment - replace below command with actual mailslurp API key
npm run cypress:open:dev -- --env MAIL_API_KEY=<API_KEY> .
Run regression pack
npm run cypress:run:dev -- --env MAIL_API_KEY=<API_KEY>,TAGS='@regression' .