Commit Graph

695 Commits

Author SHA1 Message Date
Adam Stone-Lord 4c11731ee1 chore: optimize task execution (#27848)
* Revert "chore: simplify build script (#27547)"

This reverts commit 0a86ec686e.

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

This reverts commit 9e60aeba8f.

* [run ci]

* 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>

* chore: simplify build script (#27547)

* chore: simplify build script

* update CI workflows

* fix workflows

* empty commit because Percy weirdness

* chore: add driver, reporter, config as implicit dependencies for runner package (#27559)

* run all workflows on branch

* chore: parallelize test-binary-against-recipes CI step (#27570)

* chore: fix some easy circular dependencies in dep graph (#27612)

* chore: remove gulp tasks from postinstall (#27616)

* empty commit

* chore: minor improvements to node_modules_install (#27647)

* chore: fix cypress:open and dev scripts

* run with cache [run ci]

* exclude mochaawesome assets from .yarnclean [run ci]

* bump cache again [run ci]

* run cached [run ci]

* chore: do not cache cli build step [run ci]

* update workflow command and docs for build-cli [run ci]

* fix commands that use scope [run ci]

* use different branch for publish repo [run ci]

* percy weirdness? [run ci]

* fix postbuild cli script [run ci]

* try to remove typescript from production binary [run ci]

* fix circular dependency [run ci]

* try removing ts from node_modules [run ci]

* remove typescript resolution [run ci]

* remove redundant target scripts

* update to lerna scoped commands

* remove unneeded yarn in lerna command

* try to fix Electron install in Windows workflow

---------

Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: Dave Kasper <dave.m.kasper@gmail.com>
2023-10-04 12:25:00 -05:00
Matt Schile 59fb48bf1e test: re-enable test for --headless=old (#27932) 2023-10-02 14:15:26 -06:00
Cacie Prins 9ca788327b fix: set a crashed flag when cri detects a crash (#27909)
* fix: set a crashed flag when cri detects a crash, throw on send if crashed

* changelog update

* Update cli/CHANGELOG.md

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

* update snapshots

* updates changelog, updates crash handling snapshot

* electron tab crash snapshot fix

* electron tab crash snapshot...

* add wsp to eol on snapshot - maybe the diff?

* more whitespace?

* update snapshots again

* fix screenshot res in electron tab crash snap

* updates changelog

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2023-10-02 15:03:19 -04:00
Bill Glesias 2c9a3178c1 chore: update the packages/electron README to update the electron upd… (#27941)
* chore: update the packages/electron README to update the electron updating process as it has changed/evolved since written

* chore: update images used in binary system tests

* Update packages/electron/README.md

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

---------

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2023-09-29 16:24:54 -04:00
renovate[bot] b1efbaf92b chore(deps): update dependency systeminformation to v5.21.7 [security] (#27874)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ben M <benm@cypress.io>
2023-09-25 13:18:33 -04:00
Ryan Manuel 311001b7d1 chore: improve logging on retried upload failures (#27847) 2023-09-20 16:23:42 -05:00
Matt Schile 0ba2a48afa test: adding back protocol component tests (#27697) 2023-09-20 12:22:58 -06:00
github-actions[bot] 381b505b6f chore: Update Chrome (stable) to 117.0.5938.88 and Chrome (beta) to 118.0.5993.11 (#26966) 2023-09-19 15:36:42 -06:00
Matt Schile 2247ffd79b test: add new system test for --headless=old (#27834) 2023-09-19 09:37:01 -06:00
Ryan Manuel a1161c90e0 fix: hanging on basic auth requests in chromium browsers (#27781) 2023-09-11 12:23:05 -05:00
Bill Glesias b85dd752f2 dependency: update to electron 25 and node 18 (#27715)
* feat: update to electron 25 and bump node dependencies. need to remove
custom docker image

* chore: update node versions to 18+ [run ci]

* chore: bump @types/node from v16 to v18 and bump the typescript supported CLI version from 3.9 to 4.4

* update mock-fs to 5.2.0 to fix BigInt issue (see https://github.com/tschaub/mock-fs/releases/tag/v5.1.4) [run ci]

* chore: update electron integrity check to pass create binary job

* chore: fix issues with achrinza/node-ipc not yet having node 18 engine support (only up to 17 by patching from 9.2.2 to 9.2.5 as seen in https://github.com/achrinza/node-ipc/pull/38. vue/cli-service is not maintained and we should migrate these over to vue create at some point in the near future to get rid of these resolutions

* allow for TLSv1 tests to work with node 18 as the express server running node 18 with tlsv1 needs to allow legacy ciphers

* chore: update snyk workflows to use node 18

* chore: add changelog

* update timeout

* more cleanup during binary build

* bump cache and run ci. include ignore engines for rwa and get rid of
16.16 image references

* chore: update FF tests to 115 as serialization now works with errors and click events do not get fired on buttons being typed into

* chore: don't error when symlink already exists

* chore: fix serialization test for newer versions of firefox

* chore: fix CI config

* chore: fix chrome system tests to work with chrome 114. updates mostly caused by bugs in screen height in chrome. see https://bugs.chromium.org/p/chromium/issues/detail?id=1416398

* chore: test binary against vite update in RWA

* remove wait for RWA as it shouldnt be needed for vite. link example recipes update to node 18

chore: remove commented out code

* chore: print message when DISABLE_SNAPSHOT_REQUIRE is set

* chore: clean out unneeded dependencies always

* chore: remove trailing space

* fix: propagate click events for enter and typing on firefox 106 or later

* chore: fix changelog failures

* fix: correctly simulate click events for buttons on keyup and space type  in Firefox versions greater than 91 and simulate click for buttons on enter in Firefox versions greater than or equal to 106

* chore: add documentation to type to clarify firefox synthetic events

* chore: update protocol snapshot as order or log messages seems to have changed

* update comments

* sort commandLogChanged events for protocol

* chore: remove PR ids from CRA and CER as the PRs are merged into develop

---------

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Matt Schile <mschile@cypress.io>
2023-09-07 15:26:09 -04:00
Chris Breiding cbf266c05e fix: Include run.stats.skipped in results (#27695)
Co-authored-by: Matt Schile <mschile@cypress.io>
2023-08-30 15:30:23 -04:00
Ryan Manuel e684546d71 fix tests 2023-08-28 22:27:42 -05:00
Ryan Manuel 181b27ca58 let's try this again 2023-08-28 21:54:56 -05:00
Ryan Manuel ee0fbd997d fix typo 2023-08-28 21:27:11 -05:00
Ryan Manuel 568e2a1313 fix system tests 2023-08-28 21:23:32 -05:00
Ryan Manuel 0a0eebd67d Merge branch 'develop' into fix/config-port-overriding-devserver 2023-08-28 20:32:23 -05:00
Ryan Manuel ca7bad2e16 fix last flake 2023-08-28 19:48:06 -05:00
Brian Mann 3a441c5da1 fix for enabling turning off stripping ansi for that 1 special reporter test 2023-08-28 16:45:33 -07:00
Matt Schile 1c7b17813e chore: exclude null highlight elements from protocol snapshot (#27685) 2023-08-28 18:29:12 -05:00
Brian Mann 3bacf34f22 update snapshot 2023-08-28 15:57:22 -07:00
Matt Schile da36aa5ad8 updating configFile in react system test 2023-08-28 16:11:15 -06:00
Brian Mann b141c204ec Merge branch 'fix/config-port-overriding-devserver' of https://github.com/cypress-io/cypress into fix/config-port-overriding-devserver 2023-08-28 14:45:20 -07:00
Brian Mann c697b80ae3 always strip ansi from stdout BEFORE calling options.onStdout 2023-08-28 14:44:09 -07:00
Ryan Manuel b6f8794df7 fix tests 2023-08-28 16:41:11 -05:00
Brian Mann 078319e2a9 Update system-tests/test/vite_dev_server_fresh_spec.ts
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2023-08-28 12:52:34 -07:00
Matt Schile 0bda09bf8d fix require 2023-08-28 13:25:21 -06:00
Matt Schile ed303ba40c fix issue where vite config was set properly 2023-08-28 13:02:52 -06:00
Brian Mann e90de0ea85 update snapshots 2023-08-28 05:51:23 -04:00
Brian Mann f82fdf026e fix: allow cypress config.port to override devServer.port for proxying assets 2023-08-28 03:01:35 -04:00
Ryan Manuel 228a117e82 feat: swap websocket transport with cdp add binding/evaluate (#27592)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2023-08-25 21:05:33 -05:00
Matt Schile 5fe94731dc chore: support experimentalSingleTabRunMode in protocol (#27659) 2023-08-25 15:48:55 -06:00
Cacie Prins dc5ebd1738 chore: fixes url validation error on artifact report (#27671) 2023-08-25 16:41:26 -04:00
Matt Schile 2c3e1ac072 chore: updating log to use createdAtTimestamp and updatedAtTimestamp (#27660) 2023-08-25 08:31:34 -06:00
Bill Glesias 1c6a2e130e BREAKING: add breaking changes/deprecations to cypress dependencies, such as typescript and node that may affect users moving forward on v13 (#27642) 2023-08-25 10:10:02 -04:00
Cacie Prins 626550e9f6 chore: add mountVersion to props passed to protocol setup (#27645)
* add mountVersion to metadata passed to set up protocol capture

* chore: pass mount version to protocol setup

* update tests
2023-08-25 09:30:15 -04:00
Bill Glesias 150b04cbe5 chore: add v13 welcome page content (#27549)
* feat: add v13 splash page content (wip)

chore: add video link for v13 inside graphql context and root resolver. add migration tests outside of migration manager and update component tests to test aspects

chore: update copy to most recent. Needs onlink deployments

chore: opt for named slot in major version welcome as we still want to show the changes whether or not the video is present

chore: fix video margin by shrinking the margin for a more appealing loadout

chore: update onlinks for what is expected in deploy

chore: adjust margins around video, move video up, and reduce margin on major welcome title

chore: bump release date to 8/29

chore: update stubbed query to reference actual video

* Update packages/launchpad/src/migration/MajorVersionWelcome.vue

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

* Update packages/launchpad/src/migration/MajorVersionWelcome.vue

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

* chore: update code elements to be inlinecodefragments

* chore: update utm links to reflect correct nomenclature

* stub migration src in  network performance launchpad test on video as abortcontroller is difficult to test with current ctx setup

---------

Co-authored-by: Mark Noonan <mark@cypress.io>
2023-08-24 19:36:24 -04:00
Chris Breiding 2c8337a913 chore: upgrade @cypress/request-promise to 5.0.0 (#27655) 2023-08-24 11:14:18 -04:00
Chris Breiding 7f45375439 breaking: Upgrade @cypress/request to 3.0.0 (#27495) 2023-08-23 15:16:27 -04:00
Cacie Prins b7b95e922d chore: fix artifact report schema (#27596)
* ensure fatal error reports for protocol include a url entry, even if not applicable

* inconsequential debug msg change to alleviate semantic commit check warning
2023-08-21 19:03:29 -04:00
Ryan Manuel b0df02b8d7 Merge branch 'develop' into release/13.0.0 2023-08-21 13:31:12 -05: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
Matt Schile ea238360c2 chore: hide reporter when protocol is enabled (#27482) 2023-08-16 12:07:09 -06:00
Lachlan Miller 87ce14a70f breaking: relative resource requests in ct (#27510)
* fix: support ressources with relative paths

* fix: support ressources with relative paths - review changes

* try fixing contributor workflow

* try to fix regex

* try again

* try workflow again

* Revert changes to workflow

* exclude tests from contributor workflow

* Update cli/CHANGELOG.md

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

* Update packages/server/lib/controllers/iframes.ts

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

* fix terst

* use URLSearchParams

---------

Co-authored-by: Florian Riedel <low@fochlac.com>
Co-authored-by: Adam Stone-Lord <adams@cypress.io>
Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: Mike Plummer <mike-plummer@users.noreply.github.com>
2023-08-16 13:25:23 +10:00
Bill Glesias f1b3741a40 Merge pull request #27537 from cypress-io/chore/merge_develop_into_release_13
chore: merge develop into release 13
2023-08-15 17:13:59 -04:00
Ryan Manuel 942e801716 update snapshot 2023-08-15 14:00:00 -05:00
Ryan Manuel 462ee04df9 feat: enable the protocol to retrieve response bodies from the network proxy (#27462)
Co-authored-by: Matt Schile <mschile@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Cacie Prins <cacie@cypress.io>
Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
fix: do not correlate cached requests in the proxy (#27525)
2023-08-15 13:41:36 -05:00
Bill Glesias c5120c717b Merge branch 'release/13.0.0' of https://github.com/cypress-io/cypress into chore/merge_develop_into_release_13 2023-08-15 12:41:50 -04:00
Bill Glesias bb005e0888 chore: fix protocol_spec snapshot system-test to have webpack 5 sourcemaps 2023-08-15 12:37:55 -04:00
Cacie Prins 47b18d2268 chore: additional metadata for protocol capture errors (#27507)
* split protocol errors into fatal/nonfatal

* change test stubs to implement capture protocol iface

* attach spec and project metadata to nonfatal error reports

* starting to test error reporting

* properly report fatal errors to artifact endpoint

* more meaningful error reporting

* better error reporting for protocol download + initialization errors

* refactgor protocol stubs for easier instantiation and use

* tests for beforeSpec error state

* fixes api spec tests

* code review comments

* revert import style for routes to appease tscheck

* update snapshots

* fix typedef for ArtifactLike, set error message on beforeSpec stub
2023-08-15 10:37:59 -04:00