Commit Graph

20541 Commits

Author SHA1 Message Date
Mike McCready
dfec1e7b01 chore: commit packages/graphql/schemas/schema.graphql from PR #29420 (#29657) 2024-06-12 12:23:14 -04:00
renovate[bot]
526eedd2f0 dependency: update dependency url-parse to v1.5.10 (#29650)
* fix(deps): update dependency url-parse to v1.5.10

* changelog

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-06-12 11:19:49 -04:00
Mike McCready
51219ef8e8 chore: re-sync yarn.lock after PR #29571 (#29654) 2024-06-12 11:00:57 -04:00
Mike McCready
06d08dee78 chore: move snap-shot-it@7.9.10 patch version (#29655) 2024-06-12 10:57:37 -04:00
github-actions[bot]
333e2fc147 chore: Update Chrome (stable) to 126.0.6478.55 (#29652)
Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
2024-06-12 10:43:07 -04:00
Scott O'Hara
33272fb9b5 fix: Improve detection of programmatic scrolls to avoid unintended disabling of auto scrolling (#29574)
* fix: Improve detection of programmatic scrolls to avoid unintended disabling of auto scrolling

* Fix changelog

---------

Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-06-11 14:33:32 -04:00
Emily Rohrbough
5c3a8dc7fc fix: [protocol] throw error verifying sig (#29603)
* [protocol] throw error verifying sig

Not throwing is surfacing as an upload error when it's a download error.

* adds system test snapshot for invalid signature

* changelog

* pending

* Update cli/CHANGELOG.md

---------

Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Cacie Prins <cacie@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-06-11 14:18:15 -04:00
Cacie Prins
cec7a1b098 misc: receive afterSpec durations from app capture code, and report them to the Cloud API (#29500)
* misc: report protocol capture afterSpec duration to cloud

* WIP: collecting afterSpec durations, TODO: system test scaffolding

* push all afterSpec timings to cloud

* push afterSpecTotal instead of afterSpec property

* changelog

* fix trailing slash in readme

* fix afterspec duration unit test

* correct return signature of afterSpec; add debug

* changelog

* Update packages/server/lib/cloud/api/index.ts

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* Update packages/server/lib/cloud/protocol.ts

* fix ts check

* fix unit tests re: expected afterSpec sig

* fix return sig of protocol afterSpec stub for system tests

* use env var directly in tests for capture error codepath, rather than override var

* rm unused param

* bump cache

* changelog

* remove pending runnables duration from afterspec report

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-06-11 13:31:54 -04:00
BernardoSousa03
ec1d7994dd fix: HTTP response with invalid headers doesn't throw error #28865 (#29420)
* fix: HTTP response with invalid headers doesn't throw error #28865

When receiving the described HTTP response Cypress resets the headers.
This would cause the validateHeaderName method from node to be called
which would cause an error, since the headers where invalid.
Now Crypress verifies all the headers before reseting them,
discards invalid ones and sends a warning in the console
when debug module is on.

* fix: improved warning display to the command line

When cutting off invalid headers from the response the user
is informed of such headers in the command line

* fix: added undefined verification and catched missing error

Fixed a typescript error where validateHeaderValue was being called
with value possibly being undefined. Fixed catching missing error
where code is 'ERROR_INVALID_CHAR' and rethrows other errors

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2024-06-11 13:13:34 -04:00
renovate[bot]
ceb11a355a chore(deps): update dependency @antfu/utils to ^0.7.8 (#29571)
* chore(deps): update dependency @antfu/utils to ^0.7.8

* empty commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-06-11 12:45:19 -04:00
Mike McCready
3f4ab29599 chore(deps): update dependency cypress-example-kitchensink to v3.0.0 (#29610) 2024-06-11 10:01:20 -04:00
github-actions[bot]
bc1db62e87 chore: Update v8 snapshot cache (#29635)
* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2024-06-10 11:42:08 -04:00
github-actions[bot]
d6800ce4e7 chore: Update Chrome (beta) to 126.0.6478.36 (#29624)
Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
2024-06-10 10:39:15 -04:00
semantic-release-bot
352cf0aaea chore: release @cypress/webpack-preprocessor-v6.0.2
[skip ci]
@cypress/webpack-preprocessor-v6.0.2
2024-06-07 13:00:24 -04:00
semantic-release-bot
b2f0fc4a0f chore: release @cypress/webpack-dev-server-v3.10.0
[skip ci]
@cypress/webpack-dev-server-v3.10.0
2024-06-07 13:00:07 -04:00
semantic-release-bot
18ebb88709 chore: release @cypress/webpack-batteries-included-preprocessor-v3.0.3
[skip ci]
@cypress/webpack-batteries-included-preprocessor-v3.0.3
2024-06-07 12:59:54 -04:00
semantic-release-bot
5e6be4a8ad chore: release @cypress/vue2-v2.1.1
[skip ci]
@cypress/vue2-v2.1.1
2024-06-07 12:59:36 -04:00
semantic-release-bot
c081a4fd69 chore: release @cypress/vue-v6.0.1
[skip ci]
@cypress/vue-v6.0.1
2024-06-07 12:59:23 -04:00
semantic-release-bot
efcc71a1bc chore: release @cypress/vite-dev-server-v5.1.1
[skip ci]
@cypress/vite-dev-server-v5.1.1
2024-06-07 12:59:05 -04:00
semantic-release-bot
a8af6cc3ae chore: release @cypress/svelte-v2.0.1
[skip ci]
@cypress/svelte-v2.0.1
2024-06-07 12:58:53 -04:00
semantic-release-bot
eb0762ccab chore: release @cypress/react18-v2.0.1
[skip ci]
@cypress/react18-v2.0.1
2024-06-07 12:58:21 -04:00
semantic-release-bot
478815ef04 chore: release @cypress/react-v8.0.2
[skip ci]
@cypress/react-v8.0.2
2024-06-07 12:57:46 -04:00
semantic-release-bot
2b9c4bab5d chore: release @cypress/puppeteer-v0.1.5
[skip ci]
@cypress/puppeteer-v0.1.5
2024-06-07 12:57:33 -04:00
semantic-release-bot
6c9f40ae91 chore: release @cypress/mount-utils-v4.1.1
[skip ci]
@cypress/mount-utils-v4.1.1
2024-06-07 12:57:18 -04:00
semantic-release-bot
0605604f94 chore: release @cypress/grep-v4.0.2
[skip ci]
@cypress/grep-v4.0.2
2024-06-07 12:57:02 -04:00
semantic-release-bot
23040399df chore: release @cypress/schematic-v2.5.2
[skip ci]
@cypress/schematic-v2.5.2
2024-06-07 12:56:43 -04:00
semantic-release-bot
dae6a0d044 chore: release @cypress/angular-v2.0.4
[skip ci]
@cypress/angular-v2.0.4
2024-06-07 12:56:23 -04:00
Bill Glesias
cceea03864 feat: add CT support for angular 18 (#29584)
* feat: add CT support for angular 18

* chore: update system test for angular 17 to use released version [run ci]

* chore: add ignore engines for system test install until Electron 29 update is finished

* empty commit to run ci

* fix changelog

* fix changelog
2024-06-07 12:19:02 -04:00
Mauro Accornero
d4e09cde3e chore: update schematic test text to match angular default component … (#29586)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-06-05 13:20:36 -04:00
Bill Glesias
f3b67666a5 fix: update cypress to Typescript 5 (#29568)
* fix: update the monorepo to typescript 5

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* run ci to see problems [run ci]

* update vue-tsc and typings that conflict with update

* regen snapshot

* fix typescript errors ui test as stack trace behavior has changed

* fix server unit tests

* update cy.origin() spec based on stack traces and code frames

* update spec to include source map url

* run ci

* fix check-ts

* chore: fix system tests [run ci]

* add preprocessor tests to batteries included to exercise new logic

* run ci

* refactor unit tests to be a bit more dry

* pin typescript to ~5.4 and adjust config to ignroe deprecations but keep importsNotUsedAsValues

* add changelog entry

* add fixme issue to stack trace mismatches inside evaled context

* use import type webpack as webpack as a lib isn't actually invboked in the runner webpack config

* fix system test as adding 4 lines of comments impacts the stack trace line 4 lines (duh)

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2024-06-04 19:17:38 -04:00
Bill Glesias
09c6876637 chore: release 13.11.0 (#29615) v13.11.0 2024-06-04 14:16:38 -04:00
Jennifer Shehane
e79089136d feat: add option to ignore chrome preferences (#29447)
* feat: add option to ignore chrome preferences

* build binary on this branch

* adds explanation comment and test

* update changelog from dev

* Update packages/server/lib/browsers/chrome.ts

Co-authored-by: Matt Schile <mschile@cypress.io>

* put disableRestorePagesPrompt back in promise list in browser open

* Update cli/CHANGELOG.md

* ensure we skip writing to chrome prefs when env is set

* changelog update

* Update packages/server/lib/browsers/chrome.ts

Co-authored-by: Matt Schile <mschile@cypress.io>

* more fully ignore chrome preferences when env var is set

---------

Co-authored-by: Cacie Prins <cacie@cypress.io>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2024-06-04 10:17:06 -04:00
Scott McGinness
4ccdd860ea misc: Add generic types to net-stubbing for use in intercept and wait (#29508)
* misc: Add generic types to net-stubbing for use in intercept and wait

* misc: Add changelog entry (#29507)

* misc: Revert to `any` for Interception type of multiple waits (#29507)

The nested types were apparently not supported (as written) before TypeScript ~4.1.Remove them in favour of just using `Interception<any, any>` in this overload of `wait`.

* misc: Move changelog entry (#29507)

---------

Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-06-03 17:25:54 -04:00
Cacie Prins
687eb6029f fix: Launchpad perpetual loading state, in certain circumstances (#29597)
* fix: refetch current project on geometric delay in Main.vue if config has not yet loaded

* adds test for config file load behavior in Main.vue

* changelog

* fix extraneous refetches when config is in error state

* Update packages/launchpad/src/Main.vue

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

* Update packages/launchpad/src/Main.vue

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update cli/CHANGELOG.md

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update packages/launchpad/cypress/e2e/project-setup.cy.ts

Co-authored-by: Bill Glesias <bglesias@gmail.com>

* Update packages/launchpad/cypress/e2e/project-setup.cy.ts

Co-authored-by: Bill Glesias <bglesias@gmail.com>

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2024-06-03 15:54:39 -04:00
Mikhail
f2894c4740 perf: optimize reduce in wrapConsoleProps (#29501)
* fix: optimize reduce in wrapConsoleProps

* Added changelog notes

* Update changelog entry

---------

Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-06-03 13:53:00 -04:00
github-actions[bot]
41faa7e9cd chore: Update Chrome (stable) to 125.0.6422.141 and Chrome (beta) to 126.0.6478.26 (#29594)
* chore: Update Chrome (beta) to 126.0.6478.26

* chore: Update Chrome (stable) to 125.0.6422.141 and Chrome (beta) to 126.0.6478.26

---------

Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
2024-06-03 10:56:04 -04:00
Jennifer Shehane
ea83415637 chore: move questions-remain into cypress repo (#29542)
* chore: move questions-remain into cypress repo

* to js file

* SLASH!
2024-06-03 10:42:55 -04:00
semantic-release-bot
e6b422cd25 chore: release @cypress/webpack-dev-server-v3.9.0
[skip ci]
@cypress/webpack-dev-server-v3.9.0
2024-05-30 11:38:43 -04:00
Bill Glesias
cf6b29db22 feat: support Next.JS version 14 (#29558)
* feat: support Next.JS version 14 [run ci]

* bump circle cache [run ci]

* Update npm/webpack-dev-server/cypress/e2e/next.cy.ts

Co-authored-by: Matt Schile <mschile@cypress.io>

* Update cli/CHANGELOG.md

Co-authored-by: Matt Schile <mschile@cypress.io>

---------

Co-authored-by: Matt Schile <mschile@cypress.io>
2024-05-29 15:28:55 -04:00
cadrake
2cf5cf89a2 chore(deps): Security upgrade micromatch from 4.0.4 to 4.0.6 (#29559)
* fix: packages/data-context/package.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-MICROMATCH-6838728

* yarn lock

---------

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-05-24 13:50:57 -04:00
github-actions[bot]
ba992bd37e chore: Update Chrome (stable) to 125.0.6422.112 (#29565)
Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
2024-05-24 13:41:13 -04:00
github-actions[bot]
fe78847a31 chore: Update Chrome (stable) to 125.0.6422.76 and Chrome (beta) to 126.0.6478.17 (#29555)
* chore: Update Chrome (stable) to 125.0.6422.76

* chore: Update Chrome (stable) to 125.0.6422.76 and Chrome (beta) to 126.0.6478.17

---------

Co-authored-by: cypress-bot[bot] <41898282+cypress-bot[bot]@users.noreply.github.com>
2024-05-23 11:39:09 -04:00
Mike McCready
95ce0abdee docs: correct eslint-plugin-dev link (#29562) 2024-05-23 11:38:04 -04:00
renovate[bot]
a73d300ae2 chore(deps): update dependency vite-4 to ^4.5.3 [security] (#29550)
* chore(deps): update dependency vite-4 to ^4.5.3 [security]

* empty commit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-05-22 15:11:56 -04:00
Cacie Prins
c8ec30ceab fix: preserve navigation functionality when unload event is deprecated (#29525)
* chore: Force deprecation of unload event

* empty commit

* use pagehide instead of unload event

* tslint

* bump cache

* some debugging

* rm debug

* comment out forced deprecation of unload - tbd how to enable

* rm more unnecessary debug

* changelog

* rename event callback from onUnload -> onPageHide

* comment on discrepency of event naming for end of page lifecycle events

* use pagehide in chrome, unload elsewhere

* comment on chromium-specific pagehide behavior

* changelog

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-05-22 14:06:40 -04:00
Bill Glesias
374ceb20f9 chore: change path created in prevous PR to make windows compliant (#29551)
empty commit to run ci [run ci]

squash this
v13.10.0
2024-05-21 14:35:43 -04:00
semantic-release-bot
2567b72a5a chore: release @cypress/vite-dev-server-v5.1.0
[skip ci]
@cypress/vite-dev-server-v5.1.0
2024-05-21 13:39:45 -04:00
Bill Glesias
27471ad15e chore: release 13.10.0 (#29549) 2024-05-21 13:03:26 -04:00
Bill Glesias
079030bb5f feat: support vite v5 (#29518)
* feat: support vite v5 [run ci]

* make sure to use correct path in windows if no cypress public path is provided [run ci]

* update snapshot [run ci]

* update docs on devServerPublicPathRoute for vite-dev-server

* update comments

* refactor resolveConfig test

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-05-21 12:49:09 -04:00
Zzet
3a3d877980 fix: Encode fileServerFolder to fix #25839 (#29162)
* fix: Encode fileServerFolder to fix #25839

* fix: Encode fileServerFolder to fix #25839 add changelog

* update unit tests

* adjust CHANGELOG location

* Update packages/server/test/unit/config_spec.js

* Fix changelog entry placement

* Fix some bugs to pass the test case

* maintain a test case

* Fix changelog entry

* added integration test and updated to use encodeURI

* Update cli/CHANGELOG.md

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Matt Schile <mschile@gmail.com>
2024-05-21 10:54:01 -04:00