Commit Graph

601 Commits

Author SHA1 Message Date
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
Chris Breiding
89f0fb6465 chore: internal refactor of privileged commands (#27060) 2023-06-16 10:45:53 -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
renovate[bot]
1b5ed2bc09 dependency(deps): update uppy monorepo 🌟 (#26719)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-13 17:32:20 -04:00
Snyk bot
398fe4d3a3 chore(deps): upgrade esbuild in system-test from 0.14.53 to 0.17.19 (#27011) 2023-06-13 12:58:58 -06:00
Jennifer Shehane
0d26b0fa23 chore: increase timeout of cy.readFile to address flaky WebKit test (#26989) 2023-06-09 16:59:21 -04: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
Snyk bot
23216463a2 fix: upgrade typescript from 4.2.3 to 4.9.5 (#26858)
Snyk has created this PR to upgrade typescript from 4.2.3 to 4.9.5.

See this package in npm:


See this project in Snyk:
https://app.snyk.io/org/cypress-opensource/project/5fdaebf8-b115-41d1-a2d9-857261769179?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: Bill Glesias <bglesias@gmail.com>
2023-06-05 16:22:53 -04:00
Matt Henkes
bd408f2076 chore: remove old performance reporting (#26920)
* chore: remove old performance reporting

* remove libhoney dep

* try this

* build and build snapshots if deps are out of date

* foiled by a comma

* freaking comma

* no snapshots maybe ugh

* ignore engines instead

* don't need this

* remove rename support file step
2023-06-02 15:59:03 -05:00
Snyk bot
d34a148472 chore(dep): [Snyk] Upgrade vite from 2.9.13 to 2.9.15 (#26830)
Co-authored-by: Ben M <benm@cypress.io>
2023-05-26 13:27:52 -04:00
Snyk bot
d91177a0f3 fix: upgrade typescript from 4.7.4 to 4.9.5 (#26826)
Snyk has created this PR to upgrade typescript from 4.7.4 to 4.9.5.

See this package in npm:


See this project in Snyk:
https://app.snyk.io/org/cypress-opensource/project/d5b36925-e6ee-455d-9649-6560a9aca413?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-05-24 12:16:16 -04:00
Bill Glesias
f5246708cc chore: rename upload results to upload screenshots & videos (#26811)
* chore: rename upload results to upload screenshots & videos

* run ci
2023-05-22 12:38:05 -04:00
Bill Glesias
eef8cd225a chore: rename video processing events to capture/compress (#26800)
* chore: change processing nomenclature to compressing when printing the run.

* chore: rename 'capturing of' to 'capturing'
2023-05-19 13:01:59 -04:00
Lachlan Miller
4f4a3c8c5a fix: do not cache module resolution during launchpad dependency detection (#26726)
Co-authored-by: Mike Plummer <mikep@cypress.io>
2023-05-12 14:39:20 -05:00
Lachlan Miller
9d4a3d263a fix: revert #26452 (Yarn Plug n Play compat regression) (#26735)
* Revert "fix: correctly resolve dependencies for CT onboarding when using Yarn Plug n Play (#26452)"

This reverts commit 7a33f5c1a8.

* changelog

* changelog
2023-05-12 20:02:46 +10:00
Jennifer Shehane
4c45e2eb34 fix: Update Chrome renderer crash to be more terse and up to date (#26597) 2023-05-01 13:14:11 -06:00
Stokes Player
0b10178850 fix: use local host versus third party site (#26619) 2023-05-01 13:40:56 +10:00
Jordan
e2439b19b4 chore: add support for Angular 16 (#26052)
* feat(angular): add support for Angular 16

* chore: update angular 16 pre-release version

* feat: handle getStylesConfig returning a Promise in Angular 16 (#26559)

* chore: remove next from deps to prepare for release

* remove .only, add angular-16 to webpack-dev-server e2e tests

---------

Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: astone123 <adams@cypress.io>
2023-04-24 09:57:12 -04:00
Matt Henkes
3d0a2b4061 fix: Treat Video compression 0 as false. (#26503)
* chore: disable video compression

* system test updates

* moar system test fixes

* a couple of telemetry tweaks

* more intelligent defaults, don't touch firefox.

* trying this

* probably finally fix firefox system tests

* unformat plz

* ugh, also add a test

* plz stop formatting that file

* re-enable firefox tests

* Change log

* don't save videos to artifacts

* this will be fixed in another pr

* quoth the raven, quotes matter don't mess them up
2023-04-17 16:33:36 -05:00
Mark Noonan
826412d408 feat: display framework definition errors (#26183)
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
Co-authored-by: astone123 <adams@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-04-11 06:48:07 -04:00
Lachlan Miller
7a33f5c1a8 fix: correctly resolve dependencies for CT onboarding when using Yarn Plug n Play (#26452)
* patch resolve package and use corret path for Yarn PnP module resolution

* add test

* fix logic

* changelog

* log

* Add link to pnp docs

* recursively search upwards for pnp.cjs

* use require.resolve no matter what

---------

Co-authored-by: Mike Plummer <mikep@cypress.io>
2023-04-11 11:54:27 +10:00
Lachlan Miller
e8390f46cd fix: correctly pass resolvedBaseUrl for Next.js 13.2.0+ (#26399)
* add test project

* styles

* pass resolvedBaseUrl

* make project more minimal

* build binaries

* changelog

* remove css

* pass supportedBrowsers to next webpack config

* handle case of missing getSupportedBrowsers function

* add default function
2023-04-06 13:09:25 +10:00
Lachlan Miller
80fcb8bf18 chore: specify TS 5.x support (#26413)
* chore: specify TS 5.x support

* add test

* separate project
2023-04-06 13:09:03 +10:00
Emily Rohrbough
25321163a1 chore(deps): bump in json5 in system-tests projects (#26379)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 12:33:20 -05:00
Emily Rohrbough
0ace2f8b2e chore(deps): bump in ua-parser-js in system-tests projects (#26359)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 10:23:51 -05:00
Emily Rohrbough
fc360ad834 chore(deps): bump http-cache-semantics in system-tests projects (#26348)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 10:21:32 -05:00
Emily Rohrbough
3d3364eb2a chore(deps): bump in eventsource in system-tests projects (#26349)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 10:21:10 -05:00
Emily Rohrbough
48ef2ea735 chore(deps): bump loader-utils in system-tests projects (#26332)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-03-30 20:16:39 -05:00
Emily Rohrbough
40092c0fe6 chore(deps): bump decode-uri-component and ejs in system-tests projects (#26289)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-03-30 15:38:42 -05:00
Emily Rohrbough
cbdd190479 chore(deps): bump minimist from 1.2.5 to 1.2.8 in system-tests projects (#26294)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 13:47:21 -05:00
dependabot[bot]
932717048f chore(deps): bump ejs (#26259)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.6 to 3.1.9.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.6...v3.1.9)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-03-29 10:47:53 -04:00
dependabot[bot]
e5f69e494f chore(deps): bump ejs from 3.1.6 to 3.1.9 in /system-tests/projects/cra-ejected (#26260)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 20:14:30 -05:00
dependabot[bot]
c1f90eadf3 chore(deps-dev): bump vite in /system-tests/projects/missing-vite-config (#26280)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.9 to 2.9.13.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.13/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.13/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 10:33:08 +10:00
Snyk bot
eadded1ae0 fix(deps): Upgrade esbuild from 0.14.39 to 0.14.53 (#23578)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2023-03-28 17:58:04 -05:00
Emily Rohrbough
f0ffab2d97 chore(synx): Security upgrade vite from 2.7.10 to 2.9.13 (#26255)
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-03-28 15:45:49 -05:00
renovate[bot]
3bc5ec73e7 chore(deps): update dependency webpack to v5.76.0 [security] (#26115)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com>
2023-03-22 13:04:29 -05:00
Bill Glesias
ef430e9bbf fix: do not magically set user preferences for auto-scroll (#26102)
* fix: Do not magically mutate the user preferences when auto scroll behavior is disabled when a user scrolls or clicks inside the reporter or opens user preferences. Users must explicitly toggle auto-scroll on/off inside the user preferences menu and any implicit behavior will be overidden when this configuration value is set.

* [run ci]

* chore: add CHANGELOG entry

* Update cli/CHANGELOG.md

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

* chore: move bugfix to 12.8.1 in changelog

* chore: remove issue 25084 from fix

* chore: rename autoScrollingUnderUserPreference to autoScrollingUserPref

* empty

* Update packages/reporter/src/lib/events.ts

Co-authored-by: Mark Noonan <mark@cypress.io>

* test: add cy-in-cy regression test to make sure auto scroll is not implicitly turned off

* chore: update changelog entry to include #26113

* Update system-tests/projects/cypress-in-cypress/cypress/e2e/dom-content-scrollable-commands.spec.js

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

* chore: update the specs list app test since we have added a new cy-in-cy test

* chore: update the specChange-subscription tests

* Update CHANGELOG.md

* chore: update missed assertion update in spec change subscription

---------

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
2023-03-15 12:03:20 -04:00
Adam Stone-Lord
cacdb1d0c3 fix: discover CT community definitions in monorepos with hoisted dependencies (#26066)
* WIP find a way to resolve dependencies that does not rely on exports

* use `resolvePackagePath` package

* revert schema changes

* something is going on with Percy

* remove loc

* feedback

* upgrade vite react plugin

* update yarn lock

* fix unit test

* chore: discover CT community definitions in monorepos with hoisted dependencies

* [run ci]

* use find-up v5 because cjs

* delete solid yarn lock [run ci]

* improve repo root detection [run ci]

* [run ci]

* add some unit tests

* update comments

* update links

* use os.tmpdir

* add test for monorepo third-party dependency resolution

* add changelog entry

* add e2e test

* fix paths for windows

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-03-14 22:13:20 +10:00
Emily Rohrbough
1c5a67fa92 fix: handle async before:spec event handler (#26055)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2023-03-13 08:53:59 -05:00
Ryan Manuel
20cd105252 chore: rewrite flaky server integration test (#26070) 2023-03-10 10:20:08 +10:00
Adam Stone-Lord
189cd923f7 chore: use resolve-package-path to resolve installed dependency versions more reliably (#26033) 2023-03-08 16:46:59 -05:00
Chris Breiding
ed69f0ba67 fix: Fix issues with Cypress.require() and TypeScript (#25931)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2023-03-08 16:25:28 -05:00
Adam Stone-Lord
a9ab4c7527 fix(webpack-dev-server): Pass in jsconfig to get webpack config for Next.js >= 13.2.1 (#26005) 2023-03-06 10:31:47 -05:00
Michal Wozniak
e674f43040 fix(angular): mount cy-root in original location (#25965)
* fix(angular): mount cy-root in original location

* correctly fix insertRootElement to preserves html hierarchy, trim system-tests

---------

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2023-03-01 16:12:34 -05:00
Lachlan Miller
faba531c64 fix: handle testFiles array in migration (#25969)
* handle testFiles as array

* update project

* macos build

* use castArray
2023-03-01 11:25:36 +10:00
Brian Mann
2a17efac74 feat: improve stability when recording (#25837)
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2023-02-24 16:32:36 -06:00
Zach Bloomquist
4a47081c68 test: clean up skipped flaky tests (#25671) 2023-02-22 15:56:33 +00:00
Lachlan Miller
1d3aab9d70 feat: Public API for CT Framework Definitions (#25780)
* chore: rework component onboarding in launchpad (#25713)

* chore: refactoring and types

* rework source of frameworks

* revert rename

* fix tests

* fix more tests

* types

* update code

* use same public API internally

* rename interfaces

* rename

* work on dev server api

* fix types

* fix test

* attempt to support getDevServerConfig

* tests

* add function to define framework [skip ci]

* rework a lot of types

* fix test

* update tests and types

* refactor

* revert changes

* lint

* fix test

* revert

* remove

* add "community" label [skip ci]

* refactor

* types

* lint

* fix bug

* update function name

* address feedback

* improve types with Pick

* refactor using type guard

* correct label

---------

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* chore: typing error

* feat: scan for 3rd party ct plugins (#25749)

* chore: refactoring and types

* rework source of frameworks

* revert rename

* fix tests

* fix more tests

* types

* update code

* use same public API internally

* rename interfaces

* rename

* work on dev server api

* fix types

* fix test

* attempt to support getDevServerConfig

* tests

* add function to define framework [skip ci]

* rework a lot of types

* fix test

* update tests and types

* refactor

* revert changes

* lint

* fix test

* revert

* remove

* add "community" label [skip ci]

* refactor

* types

* lint

* fix bug

* update function name

* address feedback

* feat: scan for 3rd party ct plugins

* add e2e test

* unit tests [run ci]

* tweak resolution

* rebase, address comments

* fix windows paths

* remove .gitignore

* fix test

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* lint config

* spacing

* try fix race cond

* fix import error

* build binary

* try update snapshot

* try using require

* support namespaced definitions (#25804)

* remove category

* add icon prop

* support esm -> cjs compiled typescript

* fix test

* misc: add CTA footer to launchpad framework dropdown (#25831)

* remove test project dependencies

* rebase

* windows

* windows again

* add changelog entry

* changelog

* revert workflow

* remove worklfow

---------

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Adam Stone-Lord <adams@cypress.io>
2023-02-21 17:43:20 +10:00
Adam Stone-Lord
87816de1b7 fix(webpack-dev-server): touch component-index during onSpecsChange to avoid writing to app file (#25861)
* testing: try disabling uTimesSync and see what happens

* build binaries [run ci]

* fix: touch component index file instead of browser.js

* build binaries [run ci]

* update test

* fix test

* add test for custom HTML file in config

* use existing component index in webpack-dev-server unit tests

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-02-20 16:09:19 +10:00