diff --git a/packages/playwright-core/src/server/bidi/bidiPage.ts b/packages/playwright-core/src/server/bidi/bidiPage.ts index f06924d70f..c2d499bd67 100644 --- a/packages/playwright-core/src/server/bidi/bidiPage.ts +++ b/packages/playwright-core/src/server/bidi/bidiPage.ts @@ -323,6 +323,10 @@ export class BidiPage implements PageDelegate { throw new Error('Method not implemented.'); } + async forceGarbageCollection(): Promise { + throw new Error('Method not implemented.'); + } + async addInitScript(initScript: InitScript): Promise { const { script } = await this._session.send('script.addPreloadScript', { // TODO: remove function call from the source. diff --git a/tests/page/page-force-gc.spec.ts b/tests/page/page-force-gc.spec.ts index 38e60d6aaf..038d471eba 100644 --- a/tests/page/page-force-gc.spec.ts +++ b/tests/page/page-force-gc.spec.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import { test as it, expect } from './pageTest'; +import { test, expect } from './pageTest'; -it('should work', async function({ page, browserName }) { +test('should work', async ({ page }) => { await page.evaluate(() => { globalThis.objectToDestroy = {}; globalThis.weakRef = new WeakRef(globalThis.objectToDestroy);