Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(har recorder): ensure we respect minimal mode (#32658)

Simon Knottf1390cc269f1
diff --git a/tests/library/har.spec.ts b/tests/library/har.spec.ts
index cc65127e3f..2b7dab4262 100644
--- a/tests/library/har.spec.ts
+++ b/tests/library/har.spec.ts
@@ -844,6 +844,8 @@ it('should respect minimal mode for API Requests', async ({ contextFactory, serv
expect(entries).toHaveLength(1);
const [entry] = entries;
expect(entry.timings).toEqual({ receive: -1, send: -1, wait: -1 });
+ expect(entry.request.cookies).toEqual([]);
+ expect(entry.request.bodySize).toBe(-1);
});
it('should include redirects from API request', async ({ contextFactory, server }, testInfo) => {