devops: fix headlessness reporting to flakiness dashboard (#14069)

This commit is contained in:
Andrey Lushnikov 2022-05-10 10:03:47 -06:00 committed by GitHub
parent 4634adbdc3
commit ddcce7a63a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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`?

View File

@ -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;