Skip to content

An example of e2e tests setup with .NET, React, Playwright, and docker-compose. All tests run in GitHub Actions.

Notifications You must be signed in to change notification settings

pkirilin/e2e-tests-example

Repository files navigation

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

About

An example of e2e tests setup with .NET, React, Playwright, and docker-compose. All tests run in GitHub Actions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published