You will need the following things properly installed on your computer.
git clone <repository-url>
this repositorycd frontend-kaleidos
npm install
scripts/pre-commit.sh
this will run the linter on all the files you are going to commit, aborting the commit if there are linter errors.npm start
There are multiple make commands ready for you.
Check the file Makefile
for specifics.
To make these tests work you will need checkout of the project next to the frontend folder. There you will need some customsations in your docker-compose.override.yml
frontend:
image: kanselarij/frontend-kaleidos:development
ports:
- 127.0.0.1:80:80
networks:
- default
make run-cypress-tests-headless
will prepare the database, search and cache and run all specs headless. This is the one you want.make run-cypress-tests
will run do the same as above, only NOT headless (visible browser)make open-cypress-tests
will prepare the database and open the visual spec selector for you.make run-cypress-spec-files
will prepare all DB search and cache and run the specified spec files.These commands are used in the above commands. you only need them if you want to reset the DB in between tests or ad hoc.
make reset-cache-resource-only
will only reset the resource and cache.make reset-cache
will reset the database and cache .make reset-elastic-and-cache
will reset the database and cache.docker-compose up -d
make sure every service is up and running.npm start
in the frontend should do the trick.make run-cypress-tests-headless
command. Your tests are now running.