Commit Graph

78 Commits

Author SHA1 Message Date
Ryan Manuel
c8c5b51d82 dependency: packages/data-context/package.json to reduce vulnerabilities (#28063)
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com>
2023-10-16 14:16:48 -05:00
Bill Glesias
8b5c551890 fix: resolve process/browser to process/browser.js to resolve correctly in ESM packages where .mjs or .js files exist where process is being used and globally imported. [run ci] (#27611)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2023-08-22 14:11:14 -05:00
Jordan
1061f858a8 chore: update tough cookie (#27515)
* chore: update tough-cookie from 4.0.0 to 4.1.3. requires v8 snapshot update

* fix: tough-cookie as of 4.1 doesn't default sameSite undefined to none any longer. However, we want to set sameSite === undefined to lax as the default as this is the case in every standard browser, except firefox. We did this previously and this is behavior we want to continue to preserve, even for security reasons

* chore: update v8 snapshots

* fix issue with global toString

* chore: run ci

* chore: update @cypress/request to 2.88.22 and @cypress/request-promise to 4.2.7 [run ci]

* remove jsdom and start-server-and-test

* revert @cypress/request back to 2.88.12

* update changelog entry

* remove uneeded deps

---------

Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2023-08-11 13:42:36 -04: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
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
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
Tyler Biethman
07159e8664 Merge branch '10.0-release' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10-with-electron
# Conflicts:
#	circle.yml
2022-05-13 11:20:51 -05:00
Zachary Williams
0f786ab893 fix: ct testing support for node 17+ (#21430) 2022-05-13 11:01:30 -05:00
Tyler Biethman
74fa12ab11 Merge branch 'develop' of https://github.com/cypress-io/cypress into tbiethman/develop-into-10-with-electron
# Conflicts:
#	circle.yml
#	packages/driver/cypress/integration/commands/actions/trigger_spec.js
#	packages/driver/cypress/integration/commands/actions/type_spec.js
#	packages/driver/cypress/integration/commands/files_spec.js
#	packages/electron/package.json
#	packages/launcher/lib/darwin/util.ts
#	packages/launcher/package.json
#	packages/server/__snapshots__/args_spec.js
#	packages/server/__snapshots__/cypress_spec.js
#	system-tests/projects/non-proxied/cypress/fixtures/cy-non-proxied.png
#	yarn.lock
2022-05-12 12:51:59 -05:00
Tyler Biethman
8311cf15ff chore(deps): Updating electron to v18 + node v16.13.2 (#21418)
* chore: Updating electron to v18 + node v16.13.2

* Updating origin test, it needs to be fixed a different way

* Removing origin workaround for config_env specs, it should not be necessary.

* Removing now-unused semver dependency
2022-05-12 12:06:30 -05:00
Bill Glesias
bbd9e7f1b2 Merge branch 'develop' into md-10.0-merge 2022-04-29 10:39:54 -04:00
Matt Schile
f819be315a Merge branch 'develop' into feature-multidomain 2022-04-21 09:53:49 -06:00
Zach Bloomquist
afca88e7a9 chore: remove unused dependencies (#21092) 2022-04-19 14:51:21 +00:00
Chris Breiding
f6975f8caa chore: audit cross-origin related TODOs/FIXMEs (#20975)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-04-08 15:11:10 -04:00
Matt Henkes
c68692212a chore: [Multi-domain] Rename the last of the domain/multi-domain to origin type names. (#20965)
* chore: [Multi-domain] Rename the last of the domain/multi-domain to origin type names.

* oops

* typo

* Update packages/driver/cypress/integration/e2e/multi-domain/multi_domain_validation_specs.ts

Co-authored-by: Matt Schile <mschile@gmail.com>

* Update packages/driver/cypress/integration/e2e/multi-domain/multi_domain_validation_specs.ts

Co-authored-by: Matt Schile <mschile@gmail.com>

Co-authored-by: Matt Schile <mschile@gmail.com>
2022-04-07 12:30:06 -05:00
Chris Breiding
2ee98938cd chore: Remove hardcoded domain for multi-domain (#19323)
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
2022-01-12 07:23:34 -05:00
Chris Breiding
8ac1ff0275 Merge branch 'develop' into feature-multidomain 2021-12-07 14:17:31 -05:00
ElevateBart
58c60f7367 chore: update sass for windows compatibility 2021-12-07 11:26:30 -06:00
Tim Griesser
d0cf250f57 refactor: remove @packages/desktop-gui (#19127)
* chore: Remove references to desktop-gui in CI & scripts

* More path updates

* Remove desktop-gui cypress tests

* remove add:project

* remove begin:auth

* remove close:browser

* remove close:project

* remove external:open

* remove get:current:user

* remove get:orgs

* remove gui:error

* remove get:runs

* remove get:options

* remove get:projects

* remove get:project:statuses

* remove get:project:status

* remove get:dashboard:projects

* remove get:record:keys

* remove get:release:notes

* remove get:specs

* remove get:user:editor

* remove set:user:editor

* remove launch:browser

* remove log:out

* remove on:focus:tests

* remove: on:menu:clicked

* remove open:file

* remove open:finder

* remove open:project

* remove on:config:changed

* remove on:spec:changed

* remove on:project:error

* remove on:project:warning

* remove ping:api:server

* remove ping:baseUrl

* remove remove:project

* remove request:access

* remove setup:dashboard:project

* remove set:project:id

* remove requestAccess

* remove show:directory:dialog

* remove show:new:spec:dialog

* remove updater:check

* remove updater:run

* remove window:open/close

* remove new:project:banner:closed

* remove has:opened:cypress

* remove remove:scaffolded:files

* remove set:clipboard:text

* remove set:prompt:shown

* ipc & static method cleanup

* remove packages/desktop-gui

* bump yarn.lock, standardize webpack version

* bump yarn.lock
2021-11-29 08:58:32 +10:00
Kukhyeon Heo
2a6ded2352 chore: Update TypeScript to 4.4.4 (#18930) 2021-11-19 10:01:23 -05:00
Chris Breiding
516100ba2b Merge branch 'develop' into feature-multidomain 2021-10-19 09:28:40 -04:00
Kukhyeon Heo
af472b6419 fix: revive type checker (#18172)
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-10-13 23:51:38 +00:00
Chris Breiding
2aea2258ba Merge branch 'develop' into feature-multidomain 2021-09-21 10:23:16 -04:00
Ben Kucera
9f9cf9e8b6 chore: fix broken firefox focus tests, bump resource class of chrome-beta job (#18133) 2021-09-21 09:34:48 -04:00
Chris Breiding
4323215bc0 Merge branch 'develop' into feature-multidomain 2021-09-08 10:05:27 -04:00
Jennifer Shehane
5476904bf5 docs: Add readmes to packages that are missing Readmes (#17937)
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2021-09-07 08:21:53 -05:00
Chris Breiding
afc39e93b9 Merge branch 'develop' into feature-multidomain 2021-06-22 09:58:10 -04:00
Lachlan Miller
929cac807a chore(runner,runner-ct): reduce duplication with packages/runner-shared (#16866)
* move snapshot-controls to shared package

* share visit-failure component

* share blank-contents

* share message component

* move message styling to shared

* stub scss in unit tests

* remove whitespace

* make dup files match

* share selector playground

* share script error

* share automation-disconnected

* remove old file

* share no-automation

* share error messages

* share errors

* make iframe model files similar

* share iframe-model

* share selector playground

* share style

* share highlight in selector playground

* share dom file

* update import

* share aut-iframe

* wip: shared event manager

* remove CT event manager

* move studio to shared runner package

* fix tests

* use shared event manager in CT runner

* comment back in code

* rename viewporth width/height to width/height

* fix ts errors

* share viewport info

* share header

* revert changed test

* remove old code

* fix tests and move test to shared package

* move tests to shared package

* make container files similar

* share container in runner

* share container

* move test

* move spec

* update tsconfig]

* update headeR

* fix styling

* style

* refactor

* refactor

* reduce public modules

* Update packages/runner-shared/src/event-manager.js

Co-authored-by: Zach Bloomquist <github@chary.us>

* fix percy regression

* fix regression in style

* improve types, try reverting style

* add runner-shared tests to pipeline

Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-06-16 10:22:09 +10:00
Chris Breiding
6b827dd95d chore: Initial work on creating a multidomain bundle (#16230)
* add multidomain bundle

* add a spec for manually testing and experimenting with multidomain bundle

* get cy.now('get') functioning

* move majority of multidomain entry point into driver
2021-05-26 15:11:35 -04:00
Lachlan Miller
4cfe4b1971 fix(webpack-dev-server): remove hard dependency on html-webpack-plugin v4 (#16108)
* update webpack-dev-server to support html-webpack-plugin 4 and 5

* add nextjs example

* update env

* chore: comment out nextjs webpack 5 example

* use ts-ignore instead of 'ts-expect-error'

* lock file

* chore: update dependencies

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-04-23 13:47:05 +10:00
Jessica Sachs
8e2a9799f7 chore: missing babel dependency 2021-04-02 13:03:00 -04:00
Zach Bloomquist
e30fe0d387 Merge remote-tracking branch 'origin/develop' into 7.0-release 2021-03-10 13:54:42 -05:00
Chris Breiding
c4497752d8 feat: Target modern ES with default preprocessor (#15274) 2021-03-10 10:01:05 -05:00
Jessica Sachs
e69b996891 feat: Runner-CT UI Improvements (#15327)
* feat: initial search input component

* Ugly LeftNav control

* chore: fixing the broken relative url specs

* feat: cleaning up the left nav styles and adding a more interactive spec

* chore: rebase

* wip: nav bar external link fix

* wip: active index

* wip: active index

* wip: more css modules

* wip: dark mode/light mode support devtools

* spwip: split left nav

* wip: runner-ui-changes

* wip: box shadows, borders, and more

* fix: types

* chore: extract component

* chore: extract component for readability

* chore: add checks for width on pane

* chore: refactor to make it more easier to understand what is rendered in panes

* chore: move things around

* chore: move things around

* chore: fix style

* chore: fix shortcuts

* tests: fix a test

* fix: fix screenshots feature

* chore: add placeholder

* chore: rebase

* fix: casing

* chore: build

* chore: old file

* chore: update

* chore: update name

* wip: fixing bugs in UI

* chore: improve resize logic

* chore: improve resize logic

* chore: remove unused code

* chore: styling

* chore: fix screenshotting

* chore: style

* chore: fix lint

* chore: bump bin size

* chore: revert changes in runnables

* fix: remove padding during screenshot

* chore: rebase and reauthor commit

* fix: correctly open spec list when focusing

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-03-09 16:16:43 +10:00
Chris Breiding
4f63851029 Merge branch 'develop' into 7.0-release 2021-03-03 10:54:36 -05:00
renovate[bot]
7a6f70bd54 chore(deps): update dependency ansi-escapes to version 4.3.1 🌟 (#14915)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-02 09:33:10 -05:00
Chris Breiding
77b922472c fix: Improve uncaught error handling (#14826)
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2021-03-01 09:23:14 -05:00
Brian Mann
af26fbebe6 feat: component testing (#14479)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
2021-02-04 15:45:16 -05:00
Zach Panzarino
f4b01394a8 feat: Cypress Studio - record test steps through interacting with your site (#9542)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-01-19 10:23:26 -05:00
Kevin Grüneberg
0bf602c56d chore: Replace deprecated node-sass (#14409) (#14415)
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-01-11 10:35:00 -05:00
Zach Panzarino
3eb3bfa487 build: properly use local npm packages for development and binary build (#14182) 2021-01-05 00:34:13 -05:00
renovate[bot]
4ce2a5acc1 chore(deps): update dependency node-sass to version 4.13.1 🌟 (#8785)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-08 14:37:51 +06:30
Ben Kucera
12b6c2682a chore: change transpile target to es2015 for internal code / specs (#8597)
* change transpile target to es2015

* fix specs

* update snapshots

* rename mocha patch
2020-09-24 17:17:22 -04:00
Zach Bloomquist
c37896089b feat(net-stubbing): experimental full network mocking support (#4176) 2020-08-31 09:41:47 -04:00
Brian Mann
c72538d189 Fix lodash dupe dep (#7954)
* blow away yarn.lock

* bump lodash to 4.17.19

* reduce binary size again

* bump @types/node to correct version, fix types

* fix react + react-dom types

* add clean command for .ts conversion to .js files

* fix flaky test
2020-07-11 16:34:23 -04:00
Zach Bloomquist
0e632635cd chore: rm non-test-related coffeescript references 2020-06-10 10:49:31 -04:00
Chris Breiding
76d96a18d4 Fix loading mappings.wasm on authenticated URLs (#7555) 2020-06-02 14:01:00 +06:30
Chris Breiding
a3fbab0fc8 Handle webpack protocol file opening (#7296)
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2020-05-19 13:59:09 -04:00
Jennifer Shehane
a27bd34df3 Reporter error improvements (#3930) 2020-05-06 12:18:29 -04:00
renovate[bot]
3c321f3da1 chore(deps): Update dependency @babel/core to version 7.9.0 🌟 (#6900)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-01 11:38:59 +06:30