From 9080c1620ff6590c3af682c5f245587ad688026d Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Tue, 11 Feb 2025 15:01:46 +0300 Subject: [PATCH] update readme --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 8239bab74ed..29f57c93fe9 100644 --- a/README.md +++ b/README.md @@ -290,6 +290,20 @@ When you need to debug the frontend without recompiling the production version e [targ-docker]: https://github.com/AdguardTeam/AdGuardHome/tree/master/scripts#build-dockersh-build-a-multi-architecture-docker-image [targ-release]: https://github.com/AdguardTeam/AdGuardHome/tree/master/scripts#build-releasesh-build-a-release-for-all-platforms +#### End-to-End (E2E) Frontend Tests + +AdGuard Home uses [Playwright](https://playwright.dev) for E2E testing. Tests are located in `tests/e2e`. + +**Running Tests:** +- `npm run test:e2e` – run all tests (headless). +- `npm run test:e2e:interactive` – run tests interactively. +- `npm run test:e2e:debug` – run tests in debug mode. +- `npm run test:e2e:codegen` – generate new test code. + +**Setup:** +1. Run `npm install` to install dependencies. +2. Run `npx playwright install` to set up required browsers. + ## Contributing You are welcome to fork this repository, make your changes and [submit a pull request][pr]. Please make sure you follow our [code guidelines][guide] though.