Commit Graph

19908 Commits

Author SHA1 Message Date
Bill Glesias 9f49d588a0 Merge branch 'release/13.0.0' of https://github.com/cypress-io/cypress into chore/merge_develop_into_release_13 2023-08-14 09:32:41 -04:00
Ryan Manuel 6ac7febe2d feat: remove protocol environment variable from binary (#27506) 2023-08-11 16:02:32 -05:00
Ryan Manuel 8b14bc4a7c fix: issue with describe level test isolation and navigating to about:blank (#27522) 2023-08-11 13:38:40 -05:00
Bill Glesias fe6d3274f4 Merge branch 'develop' into chore/merge-develop-v13 2023-08-11 13:25:08 -04:00
Adam Stone-Lord dbddcc1f65 chore: skip flaky go test in driver commands (#27520) 2023-08-11 10:29:39 -04:00
cypress-bot[bot] 3eeb43b05f chore: updating v8 snapshot cache 2023-08-11 10:57:09 +00:00
cypress-bot[bot] 72f4276aa9 chore: updating v8 snapshot cache 2023-08-11 08:41:57 +00:00
cypress-bot[bot] 2de9e764c0 chore: updating v8 snapshot cache 2023-08-11 06:50:14 +00:00
Bill Glesias 9dd8c72134 chore: bump loaders and optimize webpack configuration (#27505)
* chore: update ts-loader from v8 to v9

* chore: update sass-loader from v10 to v13

* chore: update postcss-loader from v4 to v7

* chore: update mini-css-extract-plugin from v1 to v2

* chore: update html-webpack-plugin from v4 to v5

* chore: update css-loader from v5 to v6

* chore: update copy-webpack-plugin from v6 to v 11

* chore: update babel and babel loader to latest

* chore: remove Url import from validation as it should be available globally

* chore: update coffee-loader to latest and coffeescript to 2.6.0. coffee
script > 2.6.0 has issues with packheard transpilation, which likely
isnt worth the squeeze here to update it further

* chore: fix react component tests with webpack 4 as babl loader 9 only works with webpack 5, so we need ot pin the dep to 8 in the system-test project

* chore: remove dependency on file-loader and opt for ubilt in assert handling where applicable. Additionally, remove react-svg-loader and move to svgr loader inside the runner to bundle svgs needed for react components. Make sure that all SVGs are being imported correctly

chore: tell webpack preprocessor to process svgs inside of e2e tests for
the reporter. We did not need this before because we were using
react-svg-loader, which was used directly in source to process the svg
and allowed the svg to work under test. Since the source code is now
bundler independent, we need to tell cypress to bundle the svgs under
test. To do this, we pass our webpack config into
@cypress/webpack-preprocessor to allow loading the svgs. This is not a
breaking change.

* chore: switch from hash to contenthash

* chore: remove use of moduleIds for chunkIds as the defaults are likely better and handle caching/debugging better

* chore: mark tests that need to be updated as node 12 and 14 are no longer supported. node 12 doesnt ship with fs/promises, which causes fatal errors with babel-loader 9

try to test against new docker images [run ci]

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* skip http/https form submittal unit tests for experimental webkit due to the clientRoute 404ing after submitting

* chore: pin webpack 5 for component tests in cy in cy to prevent using 4 from hoisted deps [run ci]

* build binaries [run ci]

* chore: bump circle cache [run ci]

* fix: turn off svgo from @svgr/webpack to preserve our scss class names within the svg. see https://react-svgr.com/docs/options/#svgo [run ci]

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2023-08-11 13:54:50 +10:00
Adam Stone-Lord 28189fb577 chore: remove check-ts from Gulp (#27492)
* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* chore: update build-npm-modules script

* [run ci]

* we can't clean without building after

* 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

* run with cache

* fix outputs for cli

* actually fix outputs

* test with cache

* chore: remove check-ts from Gulp and use Nx

* try limiting concurrency

* try concurrency 1

* add check-ts to packages where it is missing

---------

Co-authored-by: jordanpowell88 <jordan@jpdesigning.com>
2023-08-10 16:04:25 -04:00
Cacie Prins fff74900fb feat: protocol terminal output (#27402)
* uploading initiation & legit no upload messaging

* report errors

* makes upload reporting uniform across artifact types

* retrieve capture meta from correct cloud endpoint

* moves skipped artifact insertion to more reasonable point

* rm unneccessary paren around Promise.all on upload

* improve zipped filesize determination for protocol uploads, clean up get db signature in protocol manager

* changelog

* add url onto protocol failure report

* rm unused err.cause consts

* ensure artifact PUT server mock resolves in system tests

* extract terminal output logic from upload flow, mask filepaths and filesizes in system tests

* update return shape for postRun when test replay is enabled

* pad beginning of liine for upload reports

* update upload messaging snapshots for record spec

* improve trailing whitespace for artifact upload terminal output

* since we are now waiting for artifact report, must include urls in test assertion

* respect quiet mode

* address correct index of reqs for api reordering specs test

* updates snapshots & adds missing artifacts PUT req for api skips specs not in parallel

* updates tests for skipping specs in parallel

* update snapshot for no upload when video disabled test

* update snapshot for update instance 500

* updates snapshot for postInstanceTests 500

* update instance stdout 500 snapshot update

* improve message format when error on uploading, update snapshots

* snapshot for api retry on error

* update snapshot for sendPreflight system tests

* update snapshots for api interaction private tests limit warning

* update snapshots when over tests limit

* updates snapshots for protocol retrieval, bypass stub verification in test mode

* set gzip header on stubbed capture code server endpoint so client can verify

* accept BROWSER env var to reduce screenshot dimension difference from local to ci

* adds artifacts PUT to manifest for stdout 500 system test

* fixes snapshot browser workaround; updates url manifest for record system tests

* fix whitespace between filesize and path in upload manifest

* manually update snapshots for video_compression

* adds system tests for disabled message from server, file size exceeded

* additional tests, bugfixes

* add logging to determine source of ci error with db files

* ensure protocol tmp dir is created before tests

* rm test env force return of failed sig check on protocol runtime

* code review comments

* fix priority nums on artifact readout

* rm commented code from protocol stub
2023-08-10 13:49:13 -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
Lachlan Miller d27e2494fa chore: protocol/mount before async (#27511)
Co-authored-by: David Kasper <dave.m.kasper@gmail.com>
2023-08-10 08:44:18 -05:00
cypress-bot[bot] 144d446eeb chore: updating v8 snapshot cache 2023-08-09 21:53:22 +00:00
cypress-bot[bot] 029c0319cf chore: updating v8 snapshot cache 2023-08-09 19:16:03 +00:00
cypress-bot[bot] 66fa61ed01 chore: updating v8 snapshot cache 2023-08-09 17:32:30 +00: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
Dave Kasper 421c7a3e24 chore: update debug artifact order to display replay first (#27481)
* reorder icons

* add test case
2023-08-08 15:51:49 -05:00
Dave Kasper 0d17899f97 chore: modify highlight selector to include frameId (#27458)
* initial logic for unique frame selector

* messy in progress

* quick test cleanup, need to figure out stub for meta

* update name

* stub test metadata

* revise key

* clean up

* debugging change

* test for error

* test jquery issue

* type

* revert

* update config for test
2023-08-08 13:38:47 -05:00
Bill Glesias e960f83ba3 Merge pull request #27472 from cypress-io/chore/merge_develop_into_release_13
chore: merge develop into release 13
2023-08-08 11:52:52 -04:00
Cacie Prins b17043102b docs: adds repository checkout prereqs and green build tips to release guide (#27266)
Co-authored-by: Mark Noonan <mark@cypress.io>
2023-08-07 14:00:36 -04:00
Cacie Prins 4f546f27b0 chore: fixes release date of 12.17.1 (#27262) 2023-08-07 13:56:43 -04:00
semantic-release-bot 68a2976565 chore: release @cypress/vite-plugin-cypress-esm-v1.1.0
[skip ci]
@cypress/vite-plugin-cypress-esm-v1.1.0
2023-08-07 02:49:42 -04:00
Mike Plummer 1f60dea61c feat: Improve ignore capability to allow module & import matching (#27461)
* feat: Improve ignore capability to allow module & import matching

* Break out ignore into 'module' and 'import' lists to match separately based on use case
* Fix bugs in proxifier around class matching and function handling
* Add error handling to prevent total death of plugin for "standard" errors

* add missing word

---------

Co-authored-by: Mark Noonan <mark@cypress.io>
2023-08-07 16:16:27 +10:00
Bill Glesias 4cec5a5f4a Merge branch 'develop' into chore/merge_develop_into_release_13 2023-08-06 20:30:51 -04:00
Stokes Player eca37aec74 chore: record event gql mutation (#27416)
* feat: record event gql mutation

* Allow projectSlug to be optional

* Do not start source in run mode

* Fix unit test

* ts linting fix

* Adding test

* Adding test

* refactor

---------

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2023-08-07 09:45:37 +10:00
Bill Glesias 8102a09200 Merge branch 'develop' of https://github.com/cypress-io/cypress into merge-develop-into-13 2023-08-04 16:27:38 -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
Adam Stone-Lord afe5a1f63d chore: update external dependency paths in binary cleanup (#27460) 2023-08-04 13:30:57 -04:00
semantic-release-bot 793a2ec09f chore: release @cypress/webpack-dev-server-v3.5.2
[skip ci]
@cypress/webpack-dev-server-v3.5.2
2023-08-04 01:26:53 -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) v12.17.3 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
cypresschris 0336922c3a SEC-563 | Exclude system-tests from Snyk security checks for cypress monorepo (#27411) 2023-07-31 14:59:40 -04:00
Chris Breiding 069d3b399c breaking: Normalize results from module api, after:run, and after:spec (#27230) 2023-07-31 14:37:11 -04:00
Bill Glesias f1454dd0d1 chore: upgrade webpack dependencies to latest v4 compatible (#27396)
* chore: upgrade webpack dependencies to latest sub 5 compat [run ci]

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: updating v8 snapshot cache

* chore: build binaries [run ci]

* chore: update snapshot for darwin

* chore: downgrade tsconfig-paths-webpack-loader from v4 to v3 [run ci]

* [run ci]

* chore: add rimraf in @packages/runner to use in prebuild command to clear out dist directory to get windows compat [run ci]

* don't pass -rf flags into rimraf as it is inherit with the command

---------

Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2023-07-31 14:19:11 -04:00
Dave Kasper 8a90c31944 chore: add test replay button to debug page (#27315)
* initial stubs for button

* generated files

* Add to translation file and order correctly

* add missing line

* test clean up

* update count

* Update viewable text

* update icon

* Add missing replay button variant test

* bump dependency on vue-icon

* update yarn lock

* Switch icon import to use the named icon

* revert temp fix and bump package versions

* update package.lock and revert statusicon as caution

* bump version for vue compatibility fix

* bump vue-statusicon dependency

---------

Co-authored-by: Stokes Player <stokes.player@gmail.com>
2023-07-27 14:56:08 -05: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
Ryan Manuel 48828c3be3 chore: fix test causing zod errors (#27401) 2023-07-27 15:26:45 -04:00
cypress-bot[bot] 152e4ffafb chore: updating v8 snapshot cache 2023-07-26 23:32:24 +00:00
cypress-bot[bot] 5b58a935a5 chore: updating v8 snapshot cache 2023-07-26 20:33:30 +00:00
cypress-bot[bot] bfc7f4983f chore: updating v8 snapshot cache 2023-07-26 18:39:45 +00:00
Bill Glesias bf3cd6693b Merge pull request #27386 from cypress-io/chore/merge_develop_into_release_13
chore: merge develop into release 13
2023-07-26 13:23:42 -04:00
github-actions[bot] ce991880a5 chore: Update v8 snapshot cache (#27314)
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2023-07-26 11:49:29 -04:00
Ryan Manuel cf0209d9a9 feat: defer protocol manager initialization to after script load (#27347) 2023-07-26 11:02:52 -04:00
Bill Glesias 4466d341a4 chore: update electron sub dependencies (#27361)
* chore: update electron-context-menu to 3.6.1. electron-context-menu fixed the issue we were patching in https://github.com/sindresorhus/electron-context-menu/pull/156, so the patch can be deleted

* chore: update electron/get from v1 to v2. v2 drops node 12 so nothing breaking on our end

* chore: update electron-builder to ^v23.6.0 (checkTs passing)

* chore: upgrade electron packager to v16

* update electron-packager from v16 to v17

* run binary jobs for electron updates [run ci]
2023-07-26 09:41:04 -04:00
Dave Kasper fb68512bfa chore: add check for headed and no-exit to test isolation (#27358)
* basic check

* wonky to say the least

* need to figure exit mechanism, then add steps to validation

* partial cleanup for step validation

* umm working?

* remove comment

* remove old test code

* rename variable
2023-07-25 15:12:45 -05:00
Bill Glesias 51cc5f61d1 run ci 2023-07-25 13:03:35 -04:00
Bill Glesias 2513eec07b chore: run binaries jobs for develop => v13 merge [run ci] 2023-07-25 12:35:22 -04:00
Bill Glesias 8bc38894d5 Merge branch 'develop' into chore/merge_develop 2023-07-25 12:28:35 -04:00