test: unflake "should work with custom reporter" (#30526)
This commit is contained in:
parent
ff3d3ae8f2
commit
a6f0a89169
|
|
@ -141,12 +141,8 @@ for (const useIntermediateMergeReport of [false, true] as const) {
|
||||||
'a.test.ts': `
|
'a.test.ts': `
|
||||||
import { test, expect } from '@playwright/test';
|
import { test, expect } from '@playwright/test';
|
||||||
test('not run', async ({}) => {
|
test('not run', async ({}) => {
|
||||||
console.log('log');
|
|
||||||
console.error('error');
|
|
||||||
});
|
});
|
||||||
test.only('is run', async ({}) => {
|
test.only('is run', async ({}) => {
|
||||||
console.log('log');
|
|
||||||
console.error('error');
|
|
||||||
});
|
});
|
||||||
`
|
`
|
||||||
}, { reporter: '', workers: 1 });
|
}, { reporter: '', workers: 1 });
|
||||||
|
|
@ -156,16 +152,10 @@ for (const useIntermediateMergeReport of [false, true] as const) {
|
||||||
onBegin: 3 tests total
|
onBegin: 3 tests total
|
||||||
options.onBegin=begin-data
|
options.onBegin=begin-data
|
||||||
onTestBegin: foo > a.test.ts > is run; retry #0
|
onTestBegin: foo > a.test.ts > is run; retry #0
|
||||||
log
|
|
||||||
error
|
|
||||||
onTestEnd: foo > a.test.ts > is run; retry #0
|
onTestEnd: foo > a.test.ts > is run; retry #0
|
||||||
onTestBegin: foo > a.test.ts > is run; retry #0
|
onTestBegin: foo > a.test.ts > is run; retry #0
|
||||||
log
|
|
||||||
error
|
|
||||||
onTestEnd: foo > a.test.ts > is run; retry #0
|
onTestEnd: foo > a.test.ts > is run; retry #0
|
||||||
onTestBegin: bar > a.test.ts > is run; retry #0
|
onTestBegin: bar > a.test.ts > is run; retry #0
|
||||||
log
|
|
||||||
error
|
|
||||||
onTestEnd: bar > a.test.ts > is run; retry #0
|
onTestEnd: bar > a.test.ts > is run; retry #0
|
||||||
onEnd
|
onEnd
|
||||||
options.onEnd=end-data
|
options.onEnd=end-data
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue