datalens-ui/tests/documentation/env_configuration.md
2026-06-24 21:10:34 +05:00

14 lines
3.4 KiB
Markdown

# List of ENV variables for tests configuration
| ENV variables | Description | Type | Default | Required | Example |
|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|--------------------------------------------------|----------|----------------------------------|
| `E2E_DOMAIN` | Base URL used for all pages in the context. [documentation](https://playwright.dev/docs/api/class-testoptions#test-options-base-url) | String | undefined | true | E2E_DOMAIN=http://localhost:8080 |
| `E2E_MAX_WORKERS` | Number of max workers for playwright. [documentation](https://playwright.dev/docs/api/class-testconfig#test-config-workers) | Number | it counts like number of logical CPU core | false | E2E_MAX_WORKERS=3 |
| `E2E_TEST_MATCH` | Name of test which should be run. [documentation](https://playwright.dev/docs/api/class-testconfig#test-config-test-match) | String | undefined (run all tests) | false | E2E_TEST_MATCH=addField |
| `E2E_TEST_NAME_PATTERN` | A pattern by which playwright will choose which tests to run. [documentation](https://playwright.dev/docs/api/class-testconfig#test-config-grep) | String | undefined (run all tests) | false | E2E_TEST_NAME_PATTERN=Wizard - |
| `E2E_SUITE` | Specify directory in `./suites` folder. [documentation](https://playwright.dev/docs/api/class-testconfig#test-config-test-dir) | String | undefined (run all suites from folder `./suites` | false | E2E_SUITE=wizard |
| `E2E_DEBUG` | Debug mode set playwright workers to 1 and run all tests 1 by 1 [documentation](https://playwright.dev/docs/api/class-testconfig#test-config-workers) | Boolean | undefined | false | E2E_DEBUG=true |
| `E2E_RETRY_TIMES` | Number of test retries [documentation](https://playwright.dev/docs/api/class-testconfig#test-config-retries) | Number | 0 | false | E2E_RETRY_TIMES=2 |
| `E2E_HEADFUL` | Whether to run browser in headful mode. [documentation](https://playwright.dev/docs/api/class-testoptions#test-options-headless) | Boolean | false | false | E2E_HEADFUL=false |
| `E2E_SLOW_MO` | Slows down playwright operations by the specified amount of milliseconds [documentation] (https://playwright.dev/docs/api/class-browsertype#browser-type-connect-option-slow-mo) | Number | 100 | false | E2E_SLOW_MO=1000 |