Skip to content

geekhub-php/theatre-front

Repository files navigation

TheatreFront

TheatreCodeStatus

This project was generated with Angular CLI version 1.6.8.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Unit tests run via Karma.

Run on Linux

First you should find your chrome browser binary

which chromium-browser

Then export CHROME_BIN env variable or just use before ng test command:

CHROME_BIN=/usr/bin/chromium-browser ng test --watch=false

Run on Windows

ng test --watch=false

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Fix issue with e2e tests and travis

While stable chrome version will update on travis-ci this can cause to fail e2e tests on CI, with error:

 This version of ChromeDriver only supports Chrome version 77

To fix them, you should update webdriver and protractor configuration according to new version of Chrome (see current version in Travis logs).
Update in travis.yml:

webdriver-manager update --versions.chrome={{version_of_chrome}}

Update protractor.conf.js:

chromeDriver: './node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_{{version_of_chrome}}'