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
test: use os-speific EOL sequence in test expectaions (#7988)
Yury Semikhatsky8a7cfc08a6b3
diff --git a/tests/page/page-request-intercept.spec.ts b/tests/page/page-request-intercept.spec.tsindex 008921fb8f..de43d0c8d6 100644--- a/tests/page/page-request-intercept.spec.ts+++ b/tests/page/page-request-intercept.spec.ts@@ -16,8 +16,9 @@*/import { fail } from 'assert';+import os from 'os';import type { Route } from '../../index';-import { test as it, expect } from './pageTest';+import { expect, test as it } from './pageTest';it('should fulfill intercepted response', async ({page, server, browserName}) => {await page.route('**/*', async route => {@@ -67,7 +68,7 @@ it('should support fulfill after intercept', async ({page, server, browserName,const response = await page.goto(server.PREFIX + '/title.html');const request = await requestPromise;expect(request.url).toBe('/title.html');- expect(await response.text()).toBe('<title>Woof-Woof</title>\n');+ expect(await response.text()).toBe('<title>Woof-Woof</title>' + os.EOL);});it('should support request overrides', async ({page, server, browserName, browserMajorVersion}) => {