Skip to content

e2e tests with Playwright & Typescript, managing data with APIs

License

Notifications You must be signed in to change notification settings

solidometall/poc-playwright-typescript

Repository files navigation

POC E2E Playwright Typescript

This automation project describes E2E tests implementing Playwright with Typescript.

Configuration

Execute tests from Docker

"docker-compose" file configures database and application server, and executes tests.

Build and run the containers:

docker-compose up --build --force-recreate

From local environment

If you want to run tests from your local environment against the sample site, first of all you will need to install project dependencies:

npm install

Next, you will need to run the docker compose file to create a simplified development environment consisting only of the application server and database.

docker-compose -f docker-compose-sample-site-only.yml up --build --force-recreate

Then you can run tests executing the command:

npm run test