test: skip "should not include buffers in the trace" on non-default mode (#18215)

This commit is contained in:
Dmitry Gozman 2022-10-20 10:19:42 -07:00 committed by GitHub
parent 76cffad023
commit 5ed552838e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,9 @@ test('should not collect snapshots by default', async ({ context, page, server }
expect(events.some(e => e.type === 'resource-snapshot')).toBeFalsy();
});
test('should not include buffers in the trace', async ({ context, page, server }, testInfo) => {
test('should not include buffers in the trace', async ({ context, page, server, mode }, testInfo) => {
test.skip(mode !== 'default', 'no buffers with remote connections');
await context.tracing.start({ snapshots: true });
await page.goto(server.PREFIX + '/empty.html');
await page.screenshot();