From a5e1f77d8d95ad630ec59f105436996c7e446098 Mon Sep 17 00:00:00 2001 From: KateMaruk Date: Fri, 9 Jun 2023 09:55:45 +0300 Subject: [PATCH] Update README.md file --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2954361..1db60de 100644 --- a/README.md +++ b/README.md @@ -70,14 +70,17 @@ an acceptable ratio of pixels that are different to the total amount of pixels i Note 2: expected screenshots for Firefox represent headless mode. Since scrollbars are hidden in headless mode and there is no way to unhide them in Firefox (unlike Chrome) - screenshots comparison in headed Firefox mode may fail in a few tests. -**4. Performance testing.** +**5. Performance testing.** To exclude performance tests from the periodical regression test run the following scripts should be used: -- for Chrome: `"test": "npx playwright test --project=chrome -gv 'PERF'"` -- for Firefox: `"firefox": "npx playwright test --project=firefox -gv 'PERF'"` -- for Webkit: `"webkit": "npx playwright test --project=webkit -gv 'PERF'"` +- for Chrome: `"npx playwright test --project=chrome -gv 'PERF'"` +- for Firefox: `"npx playwright test --project=firefox -gv 'PERF'"` +- for Webkit: `"npx playwright test --project=webkit -gv 'PERF'"` -**5. Running tests via GitHub Actions.** +Note: The above scripts should be executed via the command line. Do not run them directly from the _package.json_, +because in such way performance tests are not ignored. + +**6. Running tests via GitHub Actions.** On _Settings > Environments_ page 2 environments were created: _PRE_ and _PRO_. For each environment the appropriate secrets were added: