Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: fix wrong assert message in rewriteCookies (#8797)
houmingjiefb1b8871351b
diff --git a/src/server/network.ts b/src/server/network.tsindex 277de3cd4d..0e1411e634 100644--- a/src/server/network.ts+++ b/src/server/network.ts@@ -52,7 +52,7 @@ export function rewriteCookies(cookies: types.SetNetworkCookieParam[]): types.Seassert(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}"`);