Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 835 Bytes

README.md

File metadata and controls

57 lines (39 loc) · 835 Bytes

e2e-tests-example

Run the application locally

Start database in docker:

docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=e2e_tests_example -d mysql:8.0.32

Run database migrations:

cd src/BackendApp.Migrator
dotnet run

Start backend app:

cd src/BackendApp.Web
dotnet run

Start frontend app:

cd src/BackendApp.Web/app
yarn
yarn start

Navigate to https://localhost:11000

Run tests with docker-compose

docker-compose up -d --build
cd tests/e2e
yarn test

How to generate certs for HTTPS

Generate pfx:

dotnet dev-certs https -ep tests/e2e/https/app.pfx -p test

Generate crt:

dotnet dev-certs https --trust --export-path tests/e2e/https/ca.cert.crt

Enter system (not pfx!) password