Skip to content

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

test: fix another EOL in expectations (#8009)

Yury Semikhatsky7454647d8ed3
diff --git a/tests/page/page-request-intercept.spec.ts b/tests/page/page-request-intercept.spec.ts
index 47a06bc664..fc8009c95b 100644
--- a/tests/page/page-request-intercept.spec.ts
+++ b/tests/page/page-request-intercept.spec.ts
@@ -224,7 +224,7 @@ it('should fulfill original response after redirects', async ({page, browserName
expect(redirectChain).toEqual(expectedUrls);
expect(response.status()).toBe(200);
- expect(await response.text()).toBe('<title>Woof-Woof</title>\n');
+ expect(await response.text()).toBe('<title>Woof-Woof</title>' + os.EOL);
});
it('should abort after redirects', async ({page, browserName, server}) => {