cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Cypress & Chrome Test Third Party Cookie Phase Out

Open iepoch opened this issue 11 months ago • 5 comments

Current behavior

As an SDET I am trying to test the new Chrome Test Third Party Cookie Phaseout flag. Currently Cypress will show the browser is set to "enabled" for the third-party-cookie-phaseout although the actual flag shows as disabled. image

Desired behavior

We should have a flag to set in Cypress to allow the third party phase out to be enabled and that the actually setting shows enabled. IE image

Test code to reproduce

 on('before:browser:launch', (browser={}, launchOptions) => {
    if (browser.family === 'chromium') {
      launchOptions.args.push('--test-third-party-cookie-phaseout');
      return launchOptions;
    }
  }
);

Cypress Version

8, 12, 13

Node version

18.17.0

Operating System

Windows 11

Debug Logs

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Command Line	"C:\Program Files\Google\Chrome\Application\chrome.exe" --test-type --ignore-certificate-errors --start-maximized --silent-debugger-extension-api --no-default-browser-check --no-first-run --noerrdialogs --enable-fixed-layout --disable-popup-blocking --disable-password-generation --disable-single-click-autofill --disable-prompt-on-repos --disable-background-timer-throttling --disable-renderer-backgrounding --disable-renderer-throttling --disable-backgrounding-occluded-windows --disable-restore-session-state --disable-new-profile-management --disable-new-avatar-menu --allow-insecure-localhost --reduce-security-for-testing --enable-automation --disable-print-preview --disable-device-discovery-notifications --autoplay-policy=no-user-gesture-required --disable-site-isolation-trials --metrics-recording-only --disable-prompt-on-repost --disable-hang-monitor --disable-sync --disable-web-resources --safebrowsing-disable-download-protection --disable-client-side-phishing-detection --disable-component-update --simulate-outdated-no-au="'Tue, 31 Dec 2099 23:59:59 GMT'" --disable-default-apps --use-fake-ui-for-media-stream --use-fake-device-for-media-stream --disable-ipc-flooding-protection --disable-backgrounding-occluded-window --disable-breakpad --password-store=basic --use-mock-keychain --disable-dev-shm-usage --proxy-server=http://localhost:50750 --disable-web-security --allow-running-insecure-content --proxy-bypass-list=<-loopback> --remote-debugging-port=50760 --remote-debugging-address=127.0.0.1 --test-third-party-cookie-phaseout --load-extension

Other

Would like to know if Cypress runs this setting but because Cypress needs to Frame Chrome can not provide the setting update because of the frame or if it's Google Issue that it's not toggle it based on Cypress Framing?

iepoch avatar Mar 12 '24 19:03 iepoch