From 29e87e529263caffb53a2fe7b24545c23c7e6213 Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Wed, 3 Aug 2022 10:33:58 -0400 Subject: [PATCH] chore: add experimentalModifyObstructiveThirdPartyCode documentation to settings page and experiments --- packages/frontend-shared/src/locales/en-US.json | 4 ++++ packages/server/lib/experiments.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/packages/frontend-shared/src/locales/en-US.json b/packages/frontend-shared/src/locales/en-US.json index d20fa95a337c..12161d185a43 100644 --- a/packages/frontend-shared/src/locales/en-US.json +++ b/packages/frontend-shared/src/locales/en-US.json @@ -462,6 +462,10 @@ "name": "Cross-origin and Session", "description": "Enables cross-origin and improved session support, including the [`cy.origin()`](https://on.cypress.io/origin) and [`cy.session()`](https://on.cypress.io/session) commands." }, + "experimentalModifyObstructiveThirdPartyCode": { + "name": "Modify Obstructive Third Party Code", + "description": "Applies `modifyObstructiveCode` to third party `.html` and `.js`, removes subresource integrity, and modifies the user agent in Electron." + }, "experimentalSourceRewriting": { "name": "Source Rewriting", "description": "Enables AST-based JS/HTML rewriting. This may fix issues caused by the existing regex-based JS/HTML replacement algorithm. See [#5273](https://github.com/cypress-io/cypress/issues/5273) for details." diff --git a/packages/server/lib/experiments.ts b/packages/server/lib/experiments.ts index 0a0e876c76f0..cb09134281e3 100644 --- a/packages/server/lib/experiments.ts +++ b/packages/server/lib/experiments.ts @@ -54,6 +54,7 @@ const _summaries: StringValues = { experimentalFetchPolyfill: 'Polyfills `window.fetch` to enable Network spying and stubbing.', experimentalInteractiveRunEvents: 'Allows listening to the `before:run`, `after:run`, `before:spec`, and `after:spec` events in the plugins file during interactive mode.', experimentalSessionAndOrigin: 'Enables cross-origin and improved session support, including the `cy.origin` and `cy.session` commands.', + experimentalModifyObstructiveThirdPartyCode: 'Applies `modifyObstructiveCode` to third party `.html` and `.js`, removes subresource integrity, and modifies the user agent in Electron.', experimentalSourceRewriting: 'Enables AST-based JS/HTML rewriting. This may fix issues caused by the existing regex-based JS/HTML replacement algorithm.', experimentalStudio: 'Generate and save commands directly to your test suite by interacting with your app as an end user would.', } @@ -72,6 +73,7 @@ const _names: StringValues = { experimentalFetchPolyfill: 'Fetch Polyfill', experimentalInteractiveRunEvents: 'Interactive Mode Run Events', experimentalSessionAndOrigin: 'Cross-origin and Session', + experimentalModifyObstructiveThirdPartyCode: 'Modify Obstructive Third Party Code', experimentalSourceRewriting: 'Improved Source Rewriting', experimentalStudio: 'Studio', }