Commit Graph

966 Commits

Author SHA1 Message Date
Jordan 4131b1fa84 feat(angular): angular mount (#22858)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-07-26 17:44:44 -05:00
renovate[bot] 7c3a4f8bb6 chore(deps): update dependency nock to v13.2.9 🌟 (#22854)
* chore(deps): update dependency nock to v13.2.9 🌟

* chore: update nock api from v12 to v13 by changing socketDelay to delayConnection. See https://github.com/nock/nock/releases/tag/v13.0.0 for more details

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-07-25 15:17:32 -04:00
Jordan dc5d9de290 feat(webpack-dev-server): add angular handler (#22314)
Co-authored-by: Zachary Williams <zachjw34@gmail.com>
2022-07-22 13:41:23 -05:00
Bill Glesias 5ff15046e2 feat: add experimentalModifyObstructiveThirdPartyCode flag for regex rewriter (#22568) 2022-07-22 08:30:20 -06:00
Lachlan Miller f0d3a48679 feat: React 18 support (#22876)
* update cli exports

* add additional react adapters

* update system test infra to better cover react versions

* use idiomatic cy.mount and cy.unmount

* add additional test projects

* update tests

* add new modules

* remove dead code, organize code more

* add react 16 project

* update webpack to resolve react correctly

* add test for react 16

* update snaps

* add react adapters

* ignore cli/react files

* use official rollup plugin to bundle npm/react

* update yarn lock for webpack dev server tests

* update vite dev server projects

* update config

* remove console.log

* update tsconfig

* fix tests

* fix another test

* update snaps

* update snaps

* fix build

* remove react{16,17}, update tests

* update build

* add missing export

* update test

* fixing tests

* fixing tests

* update snaps

* update snaps again

* build artifacts on circle

* dont try to update rollup plugin

* update circle

* update

* add missing build step

* update deps, remove old code

* revert circle changes

* do not hoist deps from react18

* remove deps
2022-07-22 11:35:09 +10:00
Tyler Biethman c94fbb6321 chore(deps): Updating to electron@19.0.8 (#22775)
* Trying out electron 19.0.4

* nvm-for-windows 1.1.7 is busted for node-16.14.2

* Went a bit overboard with the exit I think

* Stepping this back

* Breaking out yarn install

* Print runtime data

* log more data points

* well i'm confused. seeing what happens after these steps

* Lets see if powershell picks up the new PATH

* Maybe shell is refreshed between jobs?

* Installing nvm-1.1.9 manually

* Cleaning up circle.yml and a few other node references.

* Yeah that ain't gonna work

* Trying bash implementation

* Urgh yaml

* Bumping to latest patch version

* Getting a full build + artifacts

* Sourcing node in build step

* More node sourcing

* Run against updated recipes repo

* I'll find all these eventually

* Trigger new build after cache busting

* Let's slim this down to test recipes for a bit

* Good ol' working_directory

* Fixing bad syntax

* Not quite sure where all this is necessary at this point

* Using recipes PR branch

* This isn't necessary here

* Re-enabling jobs

* More node sourcing

* Running kitchensink tests against PR branch

* Moving nvm-windows update to script

* Even more node sourcing

* Removing CI config for merged kitchensink/recipes PRs
2022-07-21 13:02:46 -05:00
Chris Breiding 1da95a7db1 fix: Determine global mode based on whether there is a current project (#22838)
Co-authored-by: Mark Noonan <mark@cypress.io>
2022-07-19 10:28:46 -04:00
Puranjay Jain 198b28d1d7 fix: for hosts typing in cypress.d.ts (#22718)
* Update cypress.d.ts

Fix the hosts typing in cypress typings file

* fix: Add ts type for hosts in a server base file
2022-07-14 22:30:55 -07:00
Shawn McCabe 3afe3d4c36 fix: add missing types to exports (#22498)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-07-11 14:20:45 +10:00
Zachary Williams 6e2dce039e fix: ignore WebSwapCGLLayer warning (#22607) 2022-07-01 09:37:34 +10:00
Ishan Madhusanka 5d5574e1bb fix: add baseUrl to TestConfigOverrides (#22445)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-06-28 11:14:38 +10:00
Tyler Biethman b925dce224 Merge pull request #22424 from cypress-io/master
Merging master into develop for 10.2.0 release
2022-06-21 11:03:14 -05:00
Zach Bloomquist 152e828bbd fix(cli): filter CertVerifyProcBuiltin from stderr (#22342)
Co-authored-by: Rachel <rachel@cypress.io>
2022-06-17 19:10:05 +00:00
Zach Bloomquist b865fd4c2b fix(cli): don't include workspaces.nohoist in public NPM package (#22365) 2022-06-17 15:09:01 +00:00
Zach Bloomquist 61f19c0450 feat: build Cypress for linux-arm64 (#22252) 2022-06-15 16:22:10 +00:00
Zach Bloomquist e18b0d567e feat: build Cypress for darwin-arm64 (#20686) 2022-06-15 15:24:50 +00:00
Zachary Williams 868081a976 test: update dev-server types and add tests 2022-06-13 12:06:26 -05:00
Bill Glesias a7ecbec2a3 fix: do not allow experimentalSessionAndOrigin to be available in CT … (#21588)
* fix: do not allow experimentalSessionAndOrigin to be available in CT per https://github.com/cypress-io/cypress/issues/21573

* remove experimentalSessionAndOrigin config as it is read only

* move runner session tests under own system test project to turn on experimentalSessionAndOrigin flag

* refactor session ui runner tests to point to runner-session-e2e-specs folder

* fix cypress_spec.js to account for experimentalSessionAndOrigin options

* remove experimentalSessionAndOrigin from env args
2022-05-23 13:55:15 -04:00
Tim Griesser 0cbf3dfeb5 fix: UNIFY-1611, add next to framework options & add tests (#21557)
* fix: UNIFY-1611, add next to framework options & add tests
2022-05-19 10:31:19 -04:00
Zach Bloomquist 8043405688 Merge remote-tracking branch 'origin/develop' into 10.0-release 2022-05-19 09:56:39 -04:00
Tyler Biethman 33a60f8521 Merge branch '10.0-release' into tbiethman/develop-into-10-with-electron 2022-05-16 09:20:27 -05:00
Matt Schile fdaf5fb22f chore: deprecate Cypress.Cookies.preserveOnce and Cypress.Cookies.defaults (#21455) 2022-05-16 08:15:31 -06:00
Alejandro Estrada 3274da7842 fix: terminal error message for non migrated config (#21467)
* fix: terminal error message for non migrated config

* fix: terminal error message for non migrated config
2022-05-13 16:56:01 -05: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
Kukhyeon Heo 9b11e2ceef fix: remove unnecessary eventemitter2 type definitions from cy, Cypress (#21286)
* fix: remove unnecessary eventemittor2 type definitions from cy, Cypress

* feedback.

* fix trailing whitespace error.

Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-05-11 11:05:53 -05:00
Bill Glesias d782cfc3f7 remove trailing white spaces in cypress.d.ts cli types 2022-05-02 15:48:03 -04:00
Bill Glesias bd7d2285f4 fix typings errors introduced by the multi-domain merge 2022-05-02 15:35:59 -04:00
Bill Glesias 373ed05298 Merge branch 'develop' into md-10.0-merge 2022-05-02 12:26:58 -04:00
Bill Glesias 7e79860466 Merge branch '10.0-release' of github.com:cypress-io/cypress into md-10.0-merge 2022-04-29 10:41:47 -04:00
Bill Glesias bbd9e7f1b2 Merge branch 'develop' into md-10.0-merge 2022-04-29 10:39:54 -04:00
Tim Griesser 598d94c62a feat: Auto-merge config when adding new testing type (#21152)
* wip on AST merging Cypress Config

* Adding test coverage & better implementation for config merging

* fix types, use new addToCypressConfig for projectId

* refactor: separate export for browser

* printing w/ recast

* don't remove prettier in this PR

* Update packages/config/src/ast-utils/addToCypressConfig.ts

* make comment more robust

Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-04-25 18:58:44 -04:00
Chris Breiding 3e6d6bfe15 chore: Updates based on PR feedback (#21137)
* add generic to cy.origin type

* fix log type, update/add comments

* fix comment indentation

* specific generic

* move RemoteState to internal types

* add on links to experimental flag descriptions

* chore: reduce nesting by flipping condition

* fix test title

* simplify failing log

* rename variable

* delete error property

* fix types

* fix type

* remove unnecessary todo

* update wait test

* jquery -> this

* update comment

* remove vestigial autoRun

* use finally

* re-throw non-security errors

* move back getting index

* add new state types

* remove unnecessary export

* startsWith -> includes

* it -> them

* update system test

* remove use of promise constructor

* Revert "remove use of promise constructor"

This reverts commit 35ccc28b6f.

* log errors from Page.getFrameTree

* test if anything breaks when removing optional chaining operator

* remove vestigial file

* handle queue ending in cross-origin driver

* fix coordinates spec

* improve chrome/firefox check in extension

* improve secure cookie regex

* use production mode for cross-origin driver bundle

* adding remoteStates.getPrimary

* catch and ignore queue errors

* remove optional chaining in postMessage handler

* removed unnecessary async

* update frame tree on cri client reconnect

* fix formatting

* renaming remoteStates variable

* prevent requests from being paused if experimentalSessionAndOrigin flag is off

Co-authored-by: Matt Schile <mschile@cypress.io>
2022-04-22 14:58:02 -05:00
Matt Henkes ebaaf18268 Merge branch 'develop' into feature-multidomain 2022-04-22 09:31:41 -05:00
Kukhyeon Heo 0bb655e379 chore: remove command type todos (#20601)
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Rachel <rachel@cypress.io>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-04-22 14:28:13 +00:00
Matt Henkes f1644045fc Merge branch 'develop' into feature-multidomain 2022-04-21 16:36:40 -05:00
Ahmed Tarek 342bc06ae3 fix: prevObject types (#21106)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Rachel <rachel@cypress.io>
Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
2022-04-21 15:54:50 -05:00
Matt Schile f819be315a Merge branch 'develop' into feature-multidomain 2022-04-21 09:53:49 -06:00
Zach Bloomquist bc12c9da1f test: add windows-test-kitchensink job (#20847)
* test: add windows-test-kitchensink job

* run windows ci on this branch

* use test-binary-against-kitchensink-chrome

* windows-create-build-artifacts

* use working dir when cloning

* npm i in correct dir

* install chrome on windows for test-binary-against-repo

* parent dir

* bump kitchensink

to pull in https://github.com/cypress-io/cypress-example-kitchensink/pull/549

* fix cli type hoisting

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-04-19 22:43:11 +10:00
Zach Bloomquist 79267ddc0f fix: revert "fix: types for Cypress.Commands.add (#20376)" (#21104) 2022-04-15 19:03:36 +00:00
Ahmed Tarek 92d94252ca fix: types for Cypress.Commands.add (#20376) (#20377)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-04-15 15:35:45 +00:00
Tim Griesser 22917ced03 chore: fix windows node_modules install step (#21098)
* chore: fix windows node_modules install
2022-04-14 22:59:43 -04:00
Blue F 13caf93b3e Merge branch '10.0-release' into develop-10.0-release 2022-04-14 10:32:05 -07:00
Zach Bloomquist 546ed16c77 fix(cli): show additional mitigation steps for max path length error (#21047) 2022-04-14 16:23:31 +00:00
Lachlan Miller aa98f2e3e2 Merge pull request #21045 from cypress-io/merge-develop-4-12
chore: merge develop into 10.0-release
2022-04-13 19:30:22 -07:00
Matt Schile 27e1afbdd7 chore: (multi-domain) renaming flag to experimentalSessionAndOrigin (#21053) 2022-04-13 10:50:17 -06:00
Blue F 3aa69e2538 feat: Add vue2 package from npm/vue/v2 branch (#21026)
* Add vue2 package from npm/vue/v2 branch

* Add vue2 as automatic export

* remove npm/vue2/examples

* remove cypress directory from vue2

* fix: ordering of build scripts

* remove unneeded files from output, name module cypress-vue2 / CypressVue2

* fix types package resolution

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-13 12:17:22 -04:00
Emily Rohrbough 38d860ca97 Merge branch '10.0-release' into merge-develop-4-12 2022-04-13 10:53:35 -05:00