From 54a6377d7d505e4580c78c06bb8a2c538bbf6857 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Thu, 2 May 2024 11:00:59 +0200 Subject: [PATCH] fix: remove --disable-field-trial-config (#12377) --- .../puppeteer-core/src/node/ChromeLauncher.ts | 3 --- test/TestExpectations.json | 27 +++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/packages/puppeteer-core/src/node/ChromeLauncher.ts b/packages/puppeteer-core/src/node/ChromeLauncher.ts index 9b71952a2eb..58d15ace211 100644 --- a/packages/puppeteer-core/src/node/ChromeLauncher.ts +++ b/packages/puppeteer-core/src/node/ChromeLauncher.ts @@ -210,9 +210,6 @@ export class ChromeLauncher extends ProductLauncher { '--disable-default-apps', '--disable-dev-shm-usage', '--disable-extensions', - turnOnExperimentalFeaturesForTesting - ? '' - : '--disable-field-trial-config', // https://source.chromium.org/chromium/chromium/src/+/main:testing/variations/README.md '--disable-hang-monitor', '--disable-infobars', '--disable-ipc-flooding-protection', diff --git a/test/TestExpectations.json b/test/TestExpectations.json index ba7ddc5bd0d..66cd6236499 100644 --- a/test/TestExpectations.json +++ b/test/TestExpectations.json @@ -250,6 +250,13 @@ "expectations": ["SKIP"], "comment": "The test relies on the default page partition key do not contain the source origin. This is not the case for Firefox." }, + { + "testIdPattern": "[cookies.spec] Cookie specs Page.setCookie should set secure same-site cookies from a frame", + "platforms": ["darwin", "linux", "win32"], + "parameters": ["chrome"], + "expectations": ["FAIL"], + "comment": "Failes with fieldtrial testing config in Chrome" + }, { "testIdPattern": "[coverage.spec] *", "platforms": ["darwin", "linux", "win32"], @@ -583,6 +590,13 @@ "expectations": ["SKIP"], "comment": "TODO: add a comment explaining why this expectation is required (include links to issues)" }, + { + "testIdPattern": "[page.spec] Page Page.bringToFront should work", + "platforms": ["darwin"], + "parameters": ["chrome"], + "expectations": ["FAIL", "PASS"], + "comment": "Flaky on Mac" + }, { "testIdPattern": "[page.spec] Page Page.close should *not* run beforeunload by default", "platforms": ["darwin", "linux", "win32"], @@ -1324,6 +1338,12 @@ "expectations": ["FAIL"], "comment": "TODO: add a comment explaining why this expectation is required (include links to issues)" }, + { + "testIdPattern": "[cookies.spec] Cookie specs Page.setCookie should set secure same-site cookies from a frame", + "platforms": ["darwin", "linux", "win32"], + "parameters": ["chrome", "chrome-headless-shell"], + "expectations": ["PASS"] + }, { "testIdPattern": "[cookies.spec] Cookie specs Page.setCookie should set secure same-site cookies from a frame", "platforms": ["darwin", "linux", "win32"], @@ -1415,6 +1435,13 @@ "expectations": ["FAIL"], "comment": "TODO: add a comment explaining why this expectation is required (include links to issues)" }, + { + "testIdPattern": "[elementhandle.spec] ElementHandle specs ElementHandle.clickablePoint should work for iframes", + "platforms": ["linux", "win32"], + "parameters": ["cdp", "chrome"], + "expectations": ["FAIL", "PASS"], + "comment": "Flaky on Windows and Linux" + }, { "testIdPattern": "[elementhandle.spec] ElementHandle specs ElementHandle.isIntersectingViewport should work", "platforms": ["darwin", "linux", "win32"],