diff --git a/test/jshandle.spec.ts b/test/jshandle.spec.ts index 4f64d738ae1..ccd9e7090d0 100644 --- a/test/jshandle.spec.ts +++ b/test/jshandle.spec.ts @@ -74,17 +74,6 @@ describe('JSHandle', function () { it('should use the same JS wrappers', async () => { const { page } = getTestState(); - const aHandle = await page.evaluateHandle(() => { - globalThis.FOO = 123; - return window; - }); - expect(await page.evaluate((e: { FOO: number }) => e.FOO, aHandle)).toBe( - 123 - ); - }); - it('should work with primitives', async () => { - const { page } = getTestState(); - const aHandle = await page.evaluateHandle(() => { globalThis.FOO = 123; return window;