Skip to content

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

chore: fix wrong assert message in rewriteCookies (#8797)

houmingjiefb1b8871351b
diff --git a/src/server/network.ts b/src/server/network.ts
index 277de3cd4d..0e1411e634 100644
--- a/src/server/network.ts
+++ b/src/server/network.ts
@@ -52,7 +52,7 @@ export function rewriteCookies(cookies: types.SetNetworkCookieParam[]): types.Se
assert(c.value, 'Cookie should have a value');
assert(c.url || (c.domain && c.path), 'Cookie should have a url or a domain/path pair');
assert(!(c.url && c.domain), 'Cookie should have either url or domain');
- assert(!(c.url && c.path), 'Cookie should have either url or domain');
+ assert(!(c.url && c.path), 'Cookie should have either url or path');
const copy = {...c};
if (copy.url) {
assert(copy.url !== 'about:blank', `Blank page can not have cookie "${c.name}"`);