From d1b81e55eb219f392c056f455f45bb397698bae6 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Thu, 13 Oct 2022 20:28:06 -0400 Subject: [PATCH] docs: update README for playwright tests --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7c9a68a8c..9bd58cb9d 100644 --- a/README.md +++ b/README.md @@ -218,15 +218,27 @@ Frontend tests are done via Cypress. There're 2 different type of tests: #### Run Vue Tests +> :warning: All commands below must be run from the `./playwright` directory. + +Run once to install dependencies on your system: +``` +npm install +npx playwright install --with-deps +``` + To run the tests headlessly (command line mode): ```sh -yarn cypress +npm test ``` To run the tests visually **(CANNOT run in docker)**: ```sh -yarn cypress:open +npm run test:visual +``` + +To run the tests in debug mode **(CANNOT run in docker)**: +```sh +npm run test:debug ``` -> It can take a few seconds before the tests start or the GUI opens. #### Run Legacy Views Tests