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:
|
- To run tests in non-headless (headed) mode:
|
||||||
|
|
||||||
```bash
|
```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:
|
- 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:
|
- To run tests in slow-mode:
|
||||||
|
|
||||||
```bash
|
```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`?
|
- 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 ?
|
const mode = process.env.PW_OUT_OF_PROCESS_DRIVER ?
|
||||||
'driver' :
|
'driver' :
|
||||||
(process.env.PWTEST_MODE || 'default') as ('default' | 'driver' | 'service' | 'service2');
|
(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 channel = process.env.PWTEST_CHANNEL as any;
|
||||||
const video = !!process.env.PWTEST_VIDEO;
|
const video = !!process.env.PWTEST_VIDEO;
|
||||||
const trace = !!process.env.PWTEST_TRACE;
|
const trace = !!process.env.PWTEST_TRACE;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue