Commit Graph

1418 Commits

Author SHA1 Message Date
Cacie Prins 5503dd6078 chore: release 13.7.0 (#29123)
* chore: release 13.7.0

* fix incorrect regression note in changelog

* Update cli/CHANGELOG.md

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

* changelog entries for #28986

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Matt Schile <mschile@cypress.io>
2024-03-12 17:13:22 -04:00
Mike McCready 82536133a7 misc: use pnpm add for ct dependency scaffolding (#29056)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-03-12 12:59:54 -04:00
Bill Glesias 7a7a28f9d6 feat: Support shadow DOM recursive selectors inside cypress snapshots sent to protocol (#28823)
* chore: support new protocol structure for shadow DOM elements

* chore: capture scroll events inside shadow DOM that occur on shadow element scroll containers

* ignore scroll event listener test in webkit as fixture that uses CSSStyleSheet to help create scrollbox throws illegal constructor

* change structure of capture to be array of strings and assume shadowDom traversal similar to axe-core [run ci]

* fix issue where closed shawdow doms were causing application to crash [run ci]

* add actionability tests for protocol. Add synthetic input events in order to capture nested shadow DOM inputs

* build binary [run ci]

* remove actionability from driver [run ci]

* add changelog entry for feature, add serialization comments

* address comments from code review [run ci]

* remove unreachable code

* remove additional dead code

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-03-12 12:29:55 -04:00
BaboonKing 854a6497be feat: supported type of vue@2.7+ (#28818)
* feat: supported type of vue@2.7+

* chore[build]: respectExternal back to false for vue2 in dts

* 更新 rollup.config.mjs

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

* updating changelog

* updating link

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2024-03-12 10:57:36 -04:00
Jennifer Shehane d55659c3c6 misc: update command message to truncate command info at 100 lines instead of 50 (#29032)
* misc: update command message to not truncate command info

* Just double the lines displayed

* changelog

* Update cli/CHANGELOG.md

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

---------

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2024-03-11 15:24:18 -04:00
Bill Glesias 3383043c81 misc: capture the beforeTest timestamp in the app before sending it to protocol for a more accurate timestamp (#29061)
* chore: capture the beforeTest timestamp in the app before sending it to protocol for a more accurate timestamp [run ci]

* add change entry
2024-03-11 08:54:41 -04:00
renovate[bot] adbefb6d8d dependency: update dependency jimp to v0.22.12 (#29055)
* fix(deps): update dependency jimp to v0.22.12

* changelog entry

* empty commit

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* remove reference to files that no longer exist

* Remove 'regeneratorRuntime' from allowList, this must have been removed from jimp

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2024-03-08 17:39:28 -05:00
Cacie Prins e78531820a fix: screenshot() times out when the main Cypress tab is not focused (#29038)
* activate main cypress tab before taking a screenshot

* new tests to cover page activation behavior

* updates changelog

* whitespace

* fix check-ts

* reduce extension failure timeout to 500ms to account for origin bridge timeout

* only use tab activation workaround in chrome; default to Page.bringToFront in headless mode

* update unit tests

* swap order of tests in 5016 system test

* some debugging to try and hunt down firefox issue

* rm debug prev added - looks like sys test passed that time?

* rm debug emit from v2 extension
2024-03-08 11:09:41 -05:00
Matt Schile a29eae9260 perf: fix performance issue for service workers that don't handle requests (#28900) 2024-03-05 11:24:59 -07:00
renovate[bot] cdd7a7e10c dependency: update dependency signal-exit to v3.0.7 (#28979)
* fix(deps): update dependency signal-exit to v3.0.7

* Remove signal-exit - this is not used

* empty commit

* fix(deps): update dependency signal-exit to v3.0.7

* Update changelog

* Update cli/CHANGELOG.md

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2024-03-01 13:02:27 -05:00
Andrii Chubatiuk 96362b49c1 dependency: upgraded http-proxy-middleware (#28902)
* fix: upgraded http-proxy-middleware

* add changelog entry

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-02-29 15:24:30 -05:00
Teo Anastasiadis 5d42406610 fix: Disabled elements being clickable (#28807)
* fixes #28788 -- mouse.ts logic
If mouseUp element or mouseDown element or commonAncestor element is :disabled, click event should be prevented

* fixes #28788 -- e2e test
tests that no click events are registered when click happens on child of disabled element

* fixes #28788 -- mouse.ts logic
If mouseUp element or mouseDown element have an "actually disabled" parent, the click event should not be registered

* refactoring: minor name changes for readability

* fixes #24322 --added changelog entry

* Update packages/driver/src/cy/mouse.ts

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

* Update packages/driver/cypress/e2e/commands/actions/click.cy.js

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

* Update packages/driver/src/cy/mouse.ts

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

* Update packages/driver/src/cy/mouse.ts

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

* update mouse.ts -- unexpected token

* docs: moved entry to 13.6.5

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update packages/driver/cypress/e2e/commands/actions/click.cy.js

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

* Update cli/CHANGELOG.md

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

* lint: fixed 2 linting errors

565:1  error  Expected indentation of 8 spaces but found 10  indent
567:7  error  Expected blank line before this statement      padding-line-between-statements

* style: removed trailing space

567:1  error  Trailing spaces not allowed  no-trailing-spaces

* Update CHANGELOG.md

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
2024-02-27 11:51:44 -05:00
Teo Anastasiadis 3e5fabce2c fix: Boolean and null literals should be considered valid request bodies (#28835)
* fix(types): RequestBody type should be able to accept booleans and null values, which are all valid JSON literals

* refactor: boolean literals are valid JSON objects. Null values should also be considered valid when explicitly passed to the request function.

* refactor: body is explicitly defined when passed as positional argument or when supplied through the options object

* test: JSON literals should be parsed as valid JSON and set json=true

* docs: issue reference

* fix: boolean and null literal should be send to request promise as strings

* docs: fixes #28789 -- added issue reference

* test: tests proper conversion of JSON literals to strings.

* docs: added isssue reference

* docs: fixes #28789 -- changelog entry

* refactor: change isValidJsonObj to isValidBody

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

* refactor: change isValidJsonObj to isValidBody

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

* refactor: use lodash utils

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

* Update cli/CHANGELOG.md

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

* docs: moved entry to 13.6.5

* docs: fixed changelog entry

* Update CHANGELOG.md

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-02-23 16:11:18 -05:00
Bill Glesias 9dfb38f574 chore: release 13.6.6 (#28996) 2024-02-22 14:43:59 -05:00
Bill Glesias c1304b2775 fix: avoid ANSI character output when running the binary smoke test f… (#28994) 2024-02-22 14:29:49 -05:00
Bill Glesias 3a8f830228 chore: bump changelog and package.json version (#28978) 2024-02-20 13:28:49 -05:00
Cacie Prins ed2fc13946 fix: move main tab activation to puppeteer plugin (#28898)
* fix: move main tab activation to puppeteer plugin

* tests for new url functionality in v3 extension

* tests for activateMainTab

* tests

* cleanup

* add troubleshooting to puppeteer plugin readme re: chrome extension

* changelog

* no longer attempts to activate main tab in run mode

* Update npm/puppeteer/README.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update cli/CHANGELOG.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-02-20 11:28:31 -05:00
Joshua D'Souza 2f86203cee misc: Replacing LayerCI references with webapp.io (finishing previous PR) (#28874)
* Replacing LayerCI references with webapp.io

* Update CI params exposed from webapp.io and add EXPOSE_WEBSITE_HOST

* Adding misc to changelog references changes from LayerCI to webappio

* Removing EXPOSE_WEBSITE_HOST

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-02-19 13:25:56 -05:00
renovate[bot] 6da53d4dca dependency: update dependency duplexify to v4.1.2 (#28941)
* fix(deps): update dependency duplexify to v4.1.2

* changelog entry

* Fix incorrect link in changelog

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-02-19 11:27:54 -05:00
Mike McCready ad99300a5f docs: fix anchor link to changelog 13.6.3 (#28957) 2024-02-16 09:42:11 -05:00
Jennifer Shehane a0b2d1e912 fix: Add existential operators to properties before calling split in processBrowserPreRequest (#28952)
* fix: Add existential operators to properties before calling split

* empty commit

* changelog entry

* Add note about regression

* remove duplicate dep in changelog

* Add link to issue

* Update packages/proxy/lib/http/util/service-worker-manager.ts

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

* Update packages/proxy/lib/http/util/service-worker-manager.ts

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

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2024-02-15 13:29:40 -05:00
Cacie Prins 3288aa5069 chore(dependency): Upgrade Electron 27 (#28792)
* dependency: upgrades electron from 25 to 26

* bump cache run ci

* fix docker img names

* ref electron upgrade branch

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* debug

* debug

* debug

* update search string for resize observer error swallow

* debug

* update integrity check

* update electron readme with upgrade troubleshooting section

* point to new publish binary workflow branch for electron 27

* update electron readme with locations of chromium & node versions for a given electron version

* update node versions and docker image refs

* update electron version to 27.1.3

* fix db nativeBinding arg

* chore: updating v8 snapshot cache

* install setuptools on mac when updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* run workflows on this branch run ci

* require addon directly and pass to better-sqlite3 init; debug

* rm debug

* try loading better-sqlite with a more dynamic filename

* bump electron version

* bump electron version

* bump electron version -- run ci

* bump electron version -- run ci

* bump electron version -- run ci

* bump electron version -- run ci

* bump electron version -- run ci

* add a step to update workflows.yml to electron upgrade process

* reduce retry limit on issue 1244 test to prevent circle from thinking tests have hanged

* target main branch of binary publish workflow? run ci

* Update .node-version -- run ci

* Update CHANGELOG.md

* Update module_api_spec.ts

* point publish binary back to electron upgrade branch

* Adds some logging re: cachedDataVersion

* use precise electron version for better-sqlite3 for centos7

* Update CHANGELOG.md

* chore: fix issue with bytenode (#28568)

* fix jsc for 27 -- run ci

* Update smoke.js

* fix build

* update electron upgrade steps

* Update packages/electron/README.md

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

* Update cli/CHANGELOG.md

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

* fix DebugEmptyStates component test

* try to fix downstream build -- run ci (#28649)

Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>

* point to consolidated binary publish branch

* revert webpack-preprocessor-awesome-typescript-loader update

* revert certain system tests

* increase padding for module api system test duration window

* account for differing screenshot sizes

* screenshot size differs locally vs ci

* update protocol snapshots

* Update after-pack-hook.js

* fix flaky slideshow

* correct the chromium version in changelog

* use 18.17.1 internal images

* workflow filters

* fix trailing checkbox in electron readme

* add solution to crashing better-sqlite3 in electron readme

* Update packages/electron/README.md

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

* Update scripts/after-pack-hook.js

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

* Update scripts/after-pack-hook.js

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

* Update scripts/after-pack-hook.js

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

* add branch to setup_should_persist_artifacts

* debug app e2e test

* bump cache

* upgrade browsers-internal to chrome 121

* revert to chrome 118 images

* bump cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* bump cache

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2024-02-15 10:33:51 -05:00
renovate[bot] e0255f99c2 dependency: update dependency buffer to ^5.7.1 (#28934)
* fix(deps): update dependency buffer to ^5.7.1

* empty commit

* add changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-02-14 13:11:35 -05:00
renovate[bot] fcf73c7c6b dependency: update dependency is-ci to ^3.0.1 (#28933)
* fix(deps): update dependency is-ci to ^3.0.1

* fix: add changelog entry

* whoops, wrong changelog entry

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-02-14 13:10:25 -05:00
Camille Drapier 7c4d941d46 fix: Hanging indefinitely when unzip fails with an empty error (#28850) 2024-02-14 11:10:09 -05:00
Barthélémy Ledoux 4b6cafa86d fix: update cypress design system buttons (#28860)
* fix: use the right version of buttons

* add test

* update changelog

* caps issues!!!! seriously ?

* Update CHANGELOG with better english

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

* move to Misc

* place Bugfixes before Misc...

---------

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2024-02-06 18:17:24 +01:00
Damien Sorel a85f4897fe fix: incorrect typing of "dom.getContainsSelector" (#28339)
* fix: incorrect typing of "dom.getContainsSelector"

- add missing "options" parameter

* added type test

* fix changelog

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Matt Schile <mschile@cypress.io>
2024-02-05 13:56:11 -06:00
Jennifer Shehane 835d493bb1 misc(a11y): Update <ul> and roles to be accurate to their intended purpose in launchpad UI (#28774)
* misc: Display 'div' for listboxoptions so that a ul is not a direct parent of ul

* changelog entry

* update changelog entry

* Update structure of dropdown to be ul -> li -> div

* Wrap final element in listbox with li with role=option

* Fix double misc sections

* Update test to be less brittle and to error with more descriptive error if html changes
2024-02-02 12:02:06 -05:00
Bill Glesias f705980b91 chore: bump package.json and format changelog for release 13.6.4 (#28825) 2024-01-30 09:27:47 -05:00
Bill Glesias 1b5eac9d7f chore: fix release readiness job [run ci] (#28790) 2024-01-24 14:29:04 -05:00
Ryan Manuel 9088dc232d fix: issue with service workers in test replay when they're initiated from a support file (#28748)
* fix: issue with service workers in test replay when they're initiated from a support file

* add changelog

* Update cli/CHANGELOG.md

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

* PR comment

* get prerelease

* PR comments

* Update .circleci/workflows.yml

* Update .circleci/workflows.yml

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

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2024-01-23 12:22:02 -06:00
Matt Schile c672581a71 perf: fix proxy correlation timeout issues (#28751) 2024-01-22 15:35:49 -07:00
Jon Hermansen 099c4f1b44 misc: Add missing properties to Cypress.spec type (#28005)
* chore: Add missing properties to Cypress.spec type

* Integrate PR suggestions

* Make some fields optional to hopefully fix the build

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2024-01-17 14:53:06 -05:00
Bill Glesias 55e4898a14 chore: fix broken links in changelog (#28732) 2024-01-16 16:11:32 -05:00
Bill Glesias 92e922e0ed chore: 13.6.3 (#28731)
* chore: 13.6.3

* chore: remove pending

* chore: add line break
2024-01-16 13:36:41 -05:00
Bill Glesias 81fce0e253 fix: force moduleResolution: 'node' when ts-node is registered in the… (#28709)
* fix: force moduleResolution: 'node' when ts-node is registered in the cypress process to make sure value is compatible with commonjs (which is already forced). [run ci]

* Update cli/CHANGELOG.md
2024-01-16 12:09:12 -05:00
Adam Stone-Lord 8a02c2de83 fix: (driver) add null check for browserRequestId on responses for cy.wait (#28713) 2024-01-12 13:48:13 -07:00
Emily Rohrbough 7880c488b8 dependency: update better-sqlite3 to 9.2.2 (#28700)
* dependency: update better-sqlite3 to 9.2.2

* Apply suggestions from code review

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

---------

Co-authored-by: Matt Schile <mschile@cypress.io>
2024-01-12 13:44:23 -06:00
Sam Tsai 46c2080ffd fix: Ensure original headers are included with extra target requests (#28671)
* fix: extra target request headers are overwritten

Include original headers with the special "X-Cypress-Is-From-Extra-Target" that is added so fetch requests can include custom headers.

* Add details to changelog

* refactor

---------

Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2024-01-11 14:08:24 -05:00
Emily Rohrbough 09ce5c1f0c dependency: replace circularJSON with flatted (#28683) 2024-01-11 11:10:19 -06:00
Emily Rohrbough 4b1df35741 fix: prevent timing out on short/skipped videos (#28643) 2024-01-11 09:56:31 -06:00
Emily Rohrbough c9592bf400 fix: sync currentRetry state with secondary origin (#28651) 2024-01-10 13:49:24 -06:00
Jennifer Shehane 765b859a09 misc: Fix some a11y violations using Cypress Cloud (#28628)
* Attempt to fix a11y violation with aria role of expanded state

* empty commit

* Add role for option that is in framework dropdown to address a11y violation

Found at https://cloud.cypress.io/projects/ypt4pf/runs/53181/accessibility/025590e09a6edf822a6d05538ae6d876f18ab8fb?snapshotId=3639cfec723398fbc632015ff5b3460bca4c3fcc&violationId=aria-required-children&targetId=I2hlYWRsZXNzdWktbGlzdGJveC1vcHRpb25zLTc%3D

* Add alt text for CI provider images

* Add aria-label to readonly label for a11y

* Add title to stub to reflect title addition in services

* Add changelog entry

* Update packages/frontend-shared/src/gql-components/topnav/PromptContent.vue

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

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
2024-01-10 12:23:40 -05:00
Chris Breiding aeb5f146b0 chore: patch cli @types/sinon to fix issue with TS 4.3 linting (#28676) 2024-01-10 12:09:19 -05:00
Chris Breiding ec89901b9d fix: prevent redirect loop when chrome https upgrade is detected (#28650) 2024-01-09 15:25:57 -05:00
Bill Glesias d1c4a8f56c chore: remove duplicate changelog entry that was not present in 13.6.2 release [run ci] (#28670) 2024-01-09 15:07:40 -05:00
Ryan Manuel c6f5e9a5c9 fix: ensure that we capture service worker requests (#28517)
* fix: ensure that we capture service worker requests

* add changelog

* fix changelog

* fix tests

* PR comments

* PR comments

* PR comment

* PR comment

* update changelog

* Update cli/CHANGELOG.md

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

* enable builds on all archs

* fix permission issue

* PR comments

* Update smoke.js

* Update cli/CHANGELOG.md

* attempt to fix smoke tests

* bump ci cache

* Update smoke.js

* Update smoke.js

* Update example.json

* fix multiple specs

* fix tests

* Update CHANGELOG.md

---------

Co-authored-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com>
2024-01-06 15:23:30 -06:00
Matt Schile 7a9e3a4697 perf: don't reset preRequests when test isolation is off (#28642) 2024-01-05 14:52:47 -07:00
Matt Schile 1cba68fa5e fix: protocol supports body highlight element (#28627) 2024-01-05 12:17:54 -07:00
Jennifer Shehane c6333ab03f misc: Update docs.cypress.io links to on.cypress.io (#28623)
* Update docs.cypress.io links to on.cypress.io

* misc: fix typo in link

* Update changelog

* update error snapshot
2024-01-05 09:14:17 -05:00