Skip to content

Commit

Permalink
fix: remove the flag disabling bfcache
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Sep 28, 2023
1 parent 30bd030 commit cb299a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion packages/puppeteer-core/src/node/ChromeLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ export class ChromeLauncher extends ProductLauncher {

if (!USE_TAB_TARGET) {
disabledFeatures.push('Prerender2');
disabledFeatures.push('BackForwardCache');
}

const chromeArguments = [
Expand Down
6 changes: 0 additions & 6 deletions test/TestExpectations.json
Original file line number Diff line number Diff line change
Expand Up @@ -3862,11 +3862,5 @@
"platforms": ["darwin", "linux", "win32"],
"parameters": ["cdp", "chrome", "headless"],
"expectations": ["FAIL", "PASS"]
},
{
"testIdPattern": "[coverage.spec] Coverage specs JSCoverage resetOnNavigation should report scripts across navigations when disabled",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["cdp", "chrome", "new-headless", "tabTarget"],
"expectations": ["FAIL"]
}
]
4 changes: 3 additions & 1 deletion test/src/coverage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ describe('Coverage specs', function () {
const {page, server} = await getTestState();

await page.coverage.startJSCoverage({resetOnNavigation: false});
await page.goto(server.PREFIX + '/jscoverage/multiple.html');
await page.goto(server.PREFIX + '/jscoverage/multiple.html', {
waitUntil: 'networkidle2',
});
await page.goto(server.EMPTY_PAGE);
const coverage = await page.coverage.stopJSCoverage();
expect(coverage).toHaveLength(2);
Expand Down

0 comments on commit cb299a6

Please sign in to comment.