diff --git a/tests/page/page-request-intercept.spec.ts b/tests/page/page-request-intercept.spec.ts index ff5c3cd1ee..e32af3e927 100644 --- a/tests/page/page-request-intercept.spec.ts +++ b/tests/page/page-request-intercept.spec.ts @@ -15,9 +15,10 @@ * limitations under the License. */ -import os from 'os'; import type { Route } from 'playwright-core'; import { expect, test as it } from './pageTest'; +import fs from 'fs'; +import path from 'path'; it('should fulfill intercepted response', async ({ page, server, isElectron }) => { it.fixme(isElectron, 'error: Browser context management is not supported.'); @@ -108,7 +109,8 @@ it('should support fulfill after intercept', async ({ page, server, isElectron } const response = await page.goto(server.PREFIX + '/title.html'); const request = await requestPromise; expect(request.url).toBe('/title.html'); - expect(await response.text()).toBe('