mirror of
https://github.com/hanzoai/playwright.git
synced 2026-09-24 17:01:53 +00:00
test: remove "page/page-evaluate.spec.ts:894 › promise collected" (#42019)
This commit is contained in:
@@ -890,13 +890,3 @@ it('should ignore dangerous object keys', async ({ page }) => {
|
|||||||
const result = await page.evaluate(arg => arg, input);
|
const result = await page.evaluate(arg => arg, input);
|
||||||
expect(result).toEqual({ safeKey: 'safeValue' });
|
expect(result).toEqual({ safeKey: 'safeValue' });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('promise collected', async ({ page, browserName }) => {
|
|
||||||
it.skip(browserName !== 'chromium', 'this is a chromium-only behavior');
|
|
||||||
|
|
||||||
const resultPromise = page.evaluate(() => new Promise<void>(() => {})).catch(e => e);
|
|
||||||
for (let i = 0; i < 20; i++)
|
|
||||||
await page.requestGC();
|
|
||||||
const error = await resultPromise;
|
|
||||||
expect(error.message).toContain('Resulting promise was garbage collected');
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user