Test Automation framework that supports multi-applications for UI & API tests based on Playwright and written with TypeScript.
- Execute
pnpm install
Variable | Example | Description |
---|---|---|
*APP | bbc |
required app name |
*ENV | prod |
required env, default prod |
*SPECS_TYPE | web |
required specs type to run. Can be: all or ui |
SPEC_NAMES | sign-in,test-helper-usage |
requirespecs names separated by comma which will be executed locally, if no or disabled will execute all specs, disabled by default |
TEST_RETRY | 1 |
retries N times if test fails, disabled by default |
TEST_TIMEOUT | 30_000 |
custom test timeout, disabled by default |
TEST_RUN_TIMEOUT | 120_000 |
custom test runner timeout, disabled by default |
LOG_LEVEL | DEBUG |
desired log level, disabled by default. Can be: ALL, TRACE, INFO, DEBUG |
TESTOMAT_REPORT_GENERATION | false |
desired option to generate testomat test run report or not. Can be: true or false |
TESTOMATIO_TITLE | your own title |
desired testomat test run report title to run locally. |
TESTOMAT_API_KEY | api key |
testomat api key to run locally. Can be taken from GH actions secrets or lastPass note |
- headed - with opening browser (command can be shortened to
npm t
)
pnpm test
- ui - with opening browser in specified app with all devtools, traces, and other playwright features
pnpm test:ui
- debug - with opening browser and specified debug app to pause/resume test
pnpm test:debug
- headless - without opening browser and other playwright features
pnpm test:headless
- Navigate to the "Specific Test Run" CI trigger
- Click the "Run workflow" drop-down
- Select a branch, write a spec name/s by comma separated, and select specs type