Commit Graph

1203 Commits

Author SHA1 Message Date
Lachlan Miller
c284bd4c9d fix: clarify svelte 4 is supported (#27473)
* chore: update svelte deps

resolves https://github.com/cypress-io/cypress/issues/27465

* Update packages/scaffold-config/src/dependencies.ts

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>

* changelog

* update changleog

* log

* log

---------

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: Adam Stone-Lord <adams@cypress.io>
2023-08-22 10:18:14 +10:00
Lachlan Miller
62bf87da8b fix: try to only add commonjs when running Cypress config (#27484)
* try to only add commonjs when running Cypress config

* chore: add moduleResolution node

* test: update tests to follow new patch

* move module outside of TS_NODE_COMPILER process env

* changelog

* changelog

* changelog

* changelog

* changelog

* regression test

* add tests bck in

---------

Co-authored-by: jordanpowell88 <jordan@jpdesigning.com>
2023-08-21 08:46:28 +10:00
Adam Stone-Lord
24f1460692 chore: revert changes to build process (#27584)
* Revert "chore: remove Typescript dependency from app node_modules in binary (#27577)"

This reverts commit 60d4c8356c.

* Revert "chore: simplify build script (#27547)"

This reverts commit 0a86ec686e.

* Revert "chore: upgrade lerna to 6, cache build step (#26913)"

This reverts commit 9e60aeba8f.

* build everything

* [run ci]
2023-08-18 10:05:29 -04:00
Adam Stone-Lord
0a86ec686e chore: simplify build script (#27547)
* chore: simplify build script

* update CI workflows

* fix workflows

* empty commit because Percy weirdness
2023-08-15 19:54:33 -04:00
Jordan
95b4a14f13 chore: release version 12.17.4 (#27557) 2023-08-15 11:12:01 -04:00
Jordan
1061f858a8 chore: update tough cookie (#27515)
* chore: update tough-cookie from 4.0.0 to 4.1.3. requires v8 snapshot update

* fix: tough-cookie as of 4.1 doesn't default sameSite undefined to none any longer. However, we want to set sameSite === undefined to lax as the default as this is the case in every standard browser, except firefox. We did this previously and this is behavior we want to continue to preserve, even for security reasons

* chore: update v8 snapshots

* fix issue with global toString

* chore: run ci

* chore: update @cypress/request to 2.88.22 and @cypress/request-promise to 4.2.7 [run ci]

* remove jsdom and start-server-and-test

* revert @cypress/request back to 2.88.12

* update changelog entry

* remove uneeded deps

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2023-08-11 13:42:36 -04:00
Jordan
9e60aeba8f chore: upgrade lerna to 6, cache build step (#26913)
* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update lerna to 6

* [run ci]

* try caching build step

* we can't clean without building after

* add dependencies on scripts for npm packages

* update commands

* add config for data-context build step

* fix output configurations for npm packages, add gitignores

* revert changes to config and data-context build steps

* fix outputs

* run with cache

* fix outputs for cli

* actually fix outputs

* test with cache

---------

Co-authored-by: astone123 <adams@cypress.io>
2023-08-10 11:12:38 -04:00
Bill Glesias
171d1fa646 chore: update to webpack v5 (#27438)
* chore: [run ci] does further prerequisites for webpack 5:
https://webpack.js.org/migrate/5/#make-sure-your-build-has-no-errors-or-warnings
https://webpack.js.org/migrate/5/#make-sure-to-use-mode
https://webpack.js.org/migrate/5/#update-outdated-options
https://webpack.js.org/migrate/5/#test-webpack-5-compatibility
app builds and runs locally. Time to test out in CI and see if buffer or
process need to be polyfilled by the build

* chore: upgrade to webpack 5 and do the bare minimum to get it working

* chore: get @packages/extension working

* chore: add TODOs to finish after webpack 5 update

* chore: update the webpack config for npm/webpack-batteries-included-preprocessor to be webpack 5 compliant

* chore: patch whatwg-url 7.1.0. package 'source-map' uses
whatwg-url@7.1.0 which has a dependency on punycode node expected API.
since punycode is now polyfilled for us implicitly via the punycode npm
package, the API signatures are a bit different
https://github.com/mathiasbynens/punycode.js/blob/main/punycode.js#L101
vs https://nodejs.org/api/punycode.html#punycodeucs2. The patch uses the
punycode npm package expected API and is needed for source maps to work
for cy.origin() dependencies for Cypress.require()

* chore: convert whatwg patch into dev patch as source-map is not installed when building the binary / installing prod dependencies

* chore: only move production level patches into the binary dist directory for yarn install --production

* chore: remove --openssl-legacy-provider code for node versions 17 and over as webpack has been updated to v5

* chore: fix the webpack-batteries-included-preprocessor tests by shimming the correct node globals and built ins

* chore: provide the define plugin and evalDevtoolPlugin again as we need define in order to build the react-dom library correctly in the bundle to not include the development version

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: fix the webpack preprocessor not to change promise references under the hood when compiling the first bundle, as it was causing the webpack preprocessor to hang as the reference itself was different

* chore: fix issues from readFile that were caused by Webpack 5 using 'path-browserify'

* chore: update chrome component testing snapshots to match Webpack 5 changes

* chore: fix mismatched snapshots from webpack 5 update

* chore: use Cypress.Buffer instead of Buffer for selectFile system test to avoid having to polyfill Buffer from webpack

* chore: fix system test webpack path that now includes e2e workspace

* chore: patch enhanced-resolve to properly discover the pnp api for the yarn_v3.1.1_pnp_spec.ts system test. see https://github.com/webpack/enhanced-resolve/issues/263 for more details

* chore: set stats to 'none' for experimentalSingleTabMode to prevent different webpack compiled terminal formatting in the snapshot between local and CI.

* chore: fix node built in tests and configure webpack-batteries-included-preprocessor correctly

* chore: fallback to buffer correctly in config, even though there is no impact due to the provide plugin

* Update binary-cleanup.js to exclude added build dependencies for webpack
5 added by webpack-terser-plugin under the hood

* chore: add stream-browserify to webpack preprocessor batteries included as a dep as its used in the config [run ci]

* chore: make sure process and buffer are installed in the CLI for webpack provide

* chore: build cross platform binaries [run ci]

* chore: fix webpack evalDevToolPlugin instantiation [run ci]

* run all binary jobs [run ci]

* chore: updating v8 snapshot cache

* add find-up to the entry points that need to be kept

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: fix mocha build warnings

* chore: fix STRIPPED_INTEGRITY_TAG import warnings

* chore: add changelog event

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2023-08-09 11:59:36 -04:00
Adam Stone-Lord
24c733c3d5 chore: move entry for #26400 to fix changelog (#27467)
* chore: move entry for #26400 to fix changelog

* add line break
2023-08-04 16:24:22 -04:00
Lachlan Miller
53fd537a04 fix(cypress/webpack-dev-server): correct path for indexHtmlFile (#27320)
* fix: correct path for indexHtmlt

* changelog
2023-08-04 14:54:38 +10:00
Adam Stone-Lord
14a7416e12 chore: release version 12.17.3 (#27436) 2023-08-01 15:13:43 -04:00
Bill Glesias
68f8f99a9d chore: update node types from v14 to v16 latest to be current (no 16.16.0 types exist). Fixes types issues with webpack upgrade. (#27425)
chore: bump the Typescript minimum version in the CLI from 3.4 to 3.9
2023-08-01 09:16:49 -04:00
Tyler Biethman
d0fbd29805 fix: updating branch name fallbacks for GitHub Actions recordings (#27409)
* fix: updating branch name fallbacks for GitHub Actions recordings

* Updating test for clarity

* Adding changelog entry

* Updating telemetry too

---------

Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2023-07-27 14:37:04 -05:00
Bill Glesias
2e092add12 perf: no longer pause every single request through CDP and only pause requests needed for AUT document [run ci] (#26623) 2023-07-21 13:38:35 -04:00
Cacie Prins
cffa9d1a18 chore: release 12.17.2 (#27339)
* chore: release 12.17.2

* Apply suggestions from code review

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

---------

Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2023-07-20 09:05:44 -05:00
Chris Breiding
ddec92d8da fix: Handle privileged commands arg mutation (#27282) 2023-07-17 12:19:23 -04:00
Chris Breiding
8fc59f442b fix: Fix web worker creation within spec frame (#27313) 2023-07-17 11:19:13 -04:00
Chris Breiding
4c0371f4b5 fix: Handle evaled privileged commands (#27267) 2023-07-12 13:09:49 -04:00
Cacie Prins
17ed1c9831 chore: release 12.17.1 (#27252) 2023-07-10 11:34:12 -05:00
Cacie Prins
390c96e7c2 chore: move cypress/request upgrade from 12.15 to 12.17.1 changelog entry (#27248) 2023-07-10 09:42:49 -05:00
Stokes Player
a3e4a8a606 fix: correct invalid stored preference for in-app notifications (#27237) 2023-07-07 16:36:28 -04:00
Jennifer Shehane
9ce54e36c4 dependency: bump cypress-request packages, loosen semver rules to ^ (#27005)
Co-authored-by: Matt Schile <mschile@cypress.io>
2023-07-07 11:28:44 -04:00
Jordan Shehane
d56b628b30 fix: Fix Typescript types for screenshot command. (#27130)
Co-authored-by: Mike Plummer <mikep@cypress.io>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
2023-07-07 09:08:18 -05:00
Cacie Prins
12823cd597 chore: release 12.17.0 (#27210) 2023-07-05 12:53:14 -05:00
Matt Schile
e179bee417 chore: adding changelog entry for issue 26900 (#27208) 2023-07-05 10:40:10 -05:00
Stokes Player
e65a3e348a fix: do not override electron debug port if previously set (#27169)
* fix: do not override electron debug port if previously set

* Add changelog

* Update cli/CHANGELOG.md

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>

* Removed unneeded return value

---------

Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
2023-06-30 15:01:12 -04:00
Mike Plummer
4eaf75c1ab chore: Update changelog (#27181) 2023-06-30 12:52:56 -05:00
Ioanna Moraiti
df437cdb0a fix: AttemptResult object (#26569)
Co-authored-by: Mike Plummer <mikep@cypress.io>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-06-30 08:54:10 -05:00
Bill Glesias
f05f6236b9 fix: electron crashing prematurely when window closes prematurely while browser launch process is ongoing (#27167)
* chore: add system test for desired behavior

* fix: issue where process was exiting when window was being closed while launch process was occuring

* chore: add changelog entry
2023-06-29 14:30:56 -04:00
Chris Breiding
e0d814c247 fix: Handle more argument types in privileged commands (#27166) 2023-06-29 12:26:30 -04:00
renovate[bot]
6787693fa7 chore(deps): update dependency semver to ^7.5.3 🌟 (#27151)
* dependency(deps): update dependency semver to ^7.5.3 🌟

* changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-06-29 14:16:09 +10:00
Chris Breiding
eea99aeda1 fix: Fix issue with undefined or extra args passed to privileged commands (#27157) 2023-06-28 11:44:59 -04:00
Lachlan Miller
0107efbc3e feat: In-App Run Notifications (#27078)
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: astone123 <adams@cypress.io>
2023-06-28 10:23:21 -04:00
Stokes Player
15efb64854 fix: stop subscription race condition error on debug page (#27134) 2023-06-28 09:00:25 -04:00
Bill Glesias
fe54cf504a fix: chrome crash when CRI client is disconnected (#27116)
* fix: fix chrome crash when CRI client is disconnected

* chore: build binaries for chrome recovery crash for users to test

* chore: add changelog entry
2023-06-26 15:24:18 -04:00
Mike Plummer
4aacfaa5c1 chore: 12.16.0 release (#27133) 2023-06-26 08:45:58 -05:00
Chris Breiding
f5815b776f fix: Handle large payloads sent with privileged commands (#27122) 2023-06-23 15:32:52 -04:00
Lachlan Miller
0055214bf1 feat: support Angular 16.1 (#27106)
* feat: support Angular 16.1

* feat: support Angular 16.1

* chore: update changelog

* chore: update naming

---------

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: jordanpowell88 <jordan@jpdesigning.com>
2023-06-22 09:44:41 +10:00
Matt Schile
d76d4e1ecf chore: 12.15.0 release (#27087) 2023-06-20 11:21:50 -05:00
Chris Breiding
89f0fb6465 chore: internal refactor of privileged commands (#27060) 2023-06-16 10:45:53 -04:00
Stokes Player
9cb7e1f915 feat: Cypress Cloud data on Specs page and Runs page use local Git data if available (#26991) 2023-06-15 20:02:17 -04:00
Preston Goforth
71c5b864ea feat: Selective CSP header stripping from HTTPResponse (#26483)
* feat: Selective CSP header directive stripping from HTTPResponse
- uses `stripCspDirectives` config option

* feat: Selective CSP header directive permission from HTTPResponse
- uses `experimentalCspAllowList` config option

* Address Review Comments:
- Add i18n for `experimentalCspAllowList`
- Remove PR link in changelog
- Fix docs link in changelog
- Remove extra typedef additions
- Update validation error message and snapshot
- Fix middleware negated conditional

* chore: refactor driver test into system tests to get better test
coverage on experimentalCspAllowList options

* Address Review Comments:
- Remove legacyOption for `experimentalCspAllowList`
- Update App desc for `experimentalCspAllowList` to include "Content-Security-Policy-Report-Only"
- Modify CHANGELOG wording
- Specify “never” overrideLevel
- Remove unused validator (+2 squashed commits)
- Add "Addresses" note in CHANGELOG to satisfy automation
- Set `canUpdateDuringTestTime` to `false` to prevent confusion

* chore: Add `frame-src` and `child-src` to conditional CSP directives

* chore: Rename `isSubsetOf` to `isArrayIncludingAny`

* chore: fix CLI linting types

* chore: fix server unit tests

* chore: fix system tests within firefox and webkit

* chore: add form-action test

* chore: update system test snapshots

* chore: skip tests in webkit due to form-action flakiness

* chore: Move 'sandbox' and 'navigate-to' into `unsupportedCSPDirectives`
- Add additional system tests
- Update snapshots and unit test

* chore: update system test snapshots

* chore: fix system tests

* chore: do not run csp tests within firefox or webkit due to flake issues in CI

* chore: attempt to increase intercept delay to avoid race condition

* chore: update new snapshots with video defaults work

* chore: update changelog

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2023-06-14 14:54:52 -05:00
Jennifer Shehane
d2ca58a65f dependency: remove cypress/mocha-teamcity-reporter (#26938) 2023-06-09 16:26:34 -04:00
Matt Henkes
5b27edd6f2 feat: chrome headless new (#26481)
* use headless new

* build more things

* test fixes

* flex based on version

* tests

* update changelog

* Apply suggestions from code review

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

---------

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-06-09 10:48:33 -05:00
Bill Glesias
6b7683e483 feat: allow users to pass true to videoCompression config and only a… (#26810)
* chore: allow users to pass true to videoCompression config and only allow valudes 1-51 inclusively to be passed in

* run ci

* chore: allow zero to be option for CRF as we will coerve it to false and skip compression to have a lossless video, which has the same effect

* Update cli/CHANGELOG.md

* chore: update videoCompression types

* chore: update changelog

* Update cli/CHANGELOG.md

* Update cli/types/cypress.d.ts

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

* Update packages/config/src/validation.ts

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

* chore: update config snapshots

* Update packages/config/test/validation.spec.ts

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

* chore: add system test on videoCompression=true coersion

* chore: document 0 as being false and not a valid CRF option for cypress video compression and make CRF valid values 1-51

* chore: fix types

* chore: fix types

* chore: fix change to log as feature and not bugfix

* chore: fix server side unit tests

---------

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-06-08 15:56:12 -04:00
Bill Glesias
0be33b9528 fix: log video path if exists, regardless of compression (#26813)
* chore: print the video path whether or not compression is on or fails

* chore: fix video replacement regex

* chore: add bugfix entry
2023-06-08 13:33:06 -04:00
Stokes Player
89deb44d68 chore: changelog updates (#26964) 2023-06-08 09:36:21 -04:00
Stokes Player
65fe540d93 chore: move release date (#26958) 2023-06-06 17:50:16 -04:00
Stokes Player
f90dda6fc9 chore: 12.14.0 release (#26950) 2023-06-06 11:40:24 -04:00
Stokes Player
1479e538f5 chore: fix changelog links (#26948) 2023-06-06 10:35:08 -04:00