mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-04 08:27:33 +03:00
devops: fix headlessness reporting to flakiness dashboard (#14069)
This commit is contained in:
parent
4634adbdc3
commit
ddcce7a63a
@ -171,7 +171,7 @@ it.skip('should work', async ({server, page}) => {
|
||||
- To run tests in non-headless (headed) mode:
|
||||
|
||||
```bash
|
||||
HEADFUL=1 npm run ctest
|
||||
npm run ctest -- --headed
|
||||
```
|
||||
|
||||
- To run tests with custom browser executable, specify `CRPATH`, `WKPATH` or `FFPATH` env variable that points to browser executable:
|
||||
@ -183,7 +183,7 @@ CRPATH=<path-to-executable> npm run ctest
|
||||
- To run tests in slow-mode:
|
||||
|
||||
```bash
|
||||
HEADFUL=1 SLOW_MO=500 npm run wtest
|
||||
SLOW_MO=500 npm run wtest -- --headed
|
||||
```
|
||||
|
||||
- When should a test be marked with `skip` or `fail`?
|
||||
|
@ -36,7 +36,7 @@ const getExecutablePath = (browserName: BrowserName) => {
|
||||
const mode = process.env.PW_OUT_OF_PROCESS_DRIVER ?
|
||||
'driver' :
|
||||
(process.env.PWTEST_MODE || 'default') as ('default' | 'driver' | 'service' | 'service2');
|
||||
const headed = !!process.env.HEADFUL;
|
||||
const headed = process.argv.includes('--headed');
|
||||
const channel = process.env.PWTEST_CHANNEL as any;
|
||||
const video = !!process.env.PWTEST_VIDEO;
|
||||
const trace = !!process.env.PWTEST_TRACE;
|
||||
|
Loading…
Reference in New Issue
Block a user