Commit Graph

276 Commits

Author SHA1 Message Date
Emily Rohrbough
864ab8ebf2 chore: merge master into develop for release (#23803) 2022-09-13 10:49:01 -05:00
Lachlan Miller
23d52af3a2 chore: update eventemitter2 and vite deps (#23740) 2022-09-09 08:14:41 -05:00
Zachary Williams
f6eaad40e1 feat: adding svelte component testing support (#23553)
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Co-authored-by: Rocky <25568640+rockindahizzy@users.noreply.github.com>
2022-08-26 12:36:05 -05:00
Zachary Williams
7ddcc96388 chore: update typescript (#23523)
* chore: update typescript

* use String()

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* use String()

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* use String()

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-08-25 09:31:02 +10:00
semantic-release-bot
62bf8c0bbe chore: release @cypress/react-v6.1.1
[skip ci]
2022-08-15 19:04:06 -04:00
Bill Glesias
17f430768b Merge branch 'master' into develop 2022-08-15 12:29:07 -04:00
semantic-release-bot
93844a213c chore: release @cypress/react-v6.1.0
[skip ci]
2022-08-11 11:09:45 -04:00
Mark Noonan
26886c4ce4 docs: update stale links in README (#23262) 2022-08-11 09:09:18 +10:00
Lachlan Miller
3e76ed0523 chore: add warning encouraging react users to update mount function (#23182)
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-08-10 12:27:10 -05:00
rockindahizzy
eab950bec0 fix(react18): unmount component with react18 API (#23204)
* fix(react18): unmount component with react18 API

* Add null check and explicit typing per code review

* update snapshots and make code more concise

Co-authored-by: Zachary Williams <zachjw34@gmail.com>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-08-10 21:50:28 +10:00
Lachlan Miller
6adba462ea feat: update to Vite 3 (#22915)
* chore: do not rely on transitive dep. from npm/react

* chore: bump to vite 3.0.2

* revert

* target es6

* remove unused code

* update styles

* remove ts-ignore

* bump to vite 3.0.3
2022-07-28 10:00:31 +10: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
Chris Breiding
9ef6053264 Merge branch 'master' into develop 2022-07-19 13:18:01 -04:00
Zachary Williams
a9476ecb3d fix: remove CT side effects from mount when e2e testing (#22633) 2022-07-11 10:52:20 -05:00
WANGYUJIE
55aaf76fe3 docs: update README for @cypress/react (add commands to run tests) (#22477)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-06-29 08:33:20 -05:00
Zachary Williams
040b0544f5 chore: update ct-related READMEs and changelogs (#22538)
Co-authored-by: Blue F <blue@cypress.io>
2022-06-28 16:45:31 -05:00
semantic-release-bot
f36ca47d87 chore: release @cypress/react-v6.0.0
[skip ci]
2022-06-13 18:24:24 -04:00
Zachary Williams
b924d086ee chore: prep npm packages for use with Cypress v10
BREAKING CHANGE: new version of packages for Cypress v10
2022-06-13 12:06:26 -05:00
Zachary Williams
b66c2a6f4e chore: mark ct packages as private (#21650)
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
2022-05-27 18:35:14 +00:00
Zachary Williams
d6502cafdc Merge remote-tracking branch 'origin/develop' into zachw/merge-develop-10.0 2022-05-23 22:08:39 -05:00
semantic-release-bot
a68e3befef chore: release @cypress/react-v5.12.5
[skip ci]
2022-05-17 17:49:24 -04:00
Zachary Williams
72ed33c4ea fix: add support for Next.js v12.1.6 (#21516) 2022-05-17 15:27:57 -05: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
Jess
b326693879 chore: cutting over system-tests and Cypress to use the new CT Object API (#21079)
* removing vite-dev-server local dependency from react-vite-ts-configured system test

* moving some CRA examples over to use the object api for setup

* fixing issue where function API was broken by object API for cy config + devservers

* adding deeply nested react import to project-fixtures for cra

* finishes cutting over cypress/react for sys tests

* chore: adding circle for this feature branch

* chore: moving over many vue + vite system tests to use object API instead of function API (#21080)

* doing webpack-dev-server cutovers

* removing more webpack-dev-server refrences

* fixing snapshots

* bumping yarn.lock

* wip

* fix test

* fix assertion

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>

* feat: removing all references for "fresh" dev servers (webpack-dev-server-fresh and vite-dev-server-fresh) (#21094)

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* chore: add dev-servers as deps to server to be included in the binary (#21091)

* fix bad merge

* fix next types and webpack-dev-server- resolve

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-04-20 15:57:19 +10:00
dependabot[bot]
68173be4aa chore: bump minimist from 1.2.5 to 1.2.6 (#21134)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-04-20 12:39:48 +10:00
Jess
5615f79096 chore: making the npm deps for vue, react, and vue2 use 0.0.0-dev (#21081)
* chore: making the npm deps for vue, react, and vue2 use *

* use 0.0.0-development for mount-utils

* Make bundler system tests a little quicker / more resilient

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-14 12:57:13 -04: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
Jess
0e7b555f93 feat: swap the #__cy_root id selector to become data-cy-root for component mounting (#20951)
* Change #__cy_root selector for CT mounting point to be a data-cy-root selector

* moving all of the gets for the container element into the mount-utils

* Force HTMLElement instead of Element

* unskip vue2 tests

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-04-13 16:08:35 -04:00
David Munechika
ccae965edc fix merge conflicts 2022-04-12 08:52:19 -04:00
Jess
3fe5f50e78 feat: embedding mount into the cypress binary (real dependency) (#20930) 2022-04-06 20:12:55 -04:00
Zachary Williams
2c8e97df24 refactor: lift indexHtmlFile up to component, add validation (#20870) 2022-04-01 09:45:21 -05:00
Elon Mallin
f0c747e558 docs: fix nextjs examples link in recipes.md (#20864) 2022-04-01 11:10:55 +10:00
Alejandro Estrada
61f7cfc592 fix: scope config to current testing type (#20677)
* fix: scope config to current testing type

* Revert options changes

* Fix some tests

* Fix more tests

* Fix more tests

* Fix more tests

* Update options

* Fix tests

* Fix tests

* Add comments

* Remove un-needed quote

* Fix test

* Fix tests
2022-03-23 19:06:36 -05:00
BlueWinds
0dea68790c Review feedback 2022-03-17 08:56:47 -07:00
BlueWinds
b295c6d5ef Merge remote-tracking branch 'origin/10.0-release' into UNIFY-1312-remove-componentFolder-references 2022-03-16 10:16:44 -07:00
David Munechika
07bc5465dd merge develop 2022-03-15 10:56:04 -04:00
BlueWinds
023f6a6115 First steps 2022-03-14 18:08:47 -07:00
Jess
844c6cefd6 chore: adding tailwind and a11y examples to system-tests (#20578)
* chore: adding tailwind and a11y examples to system-tests

* Update component.js

* committing generated css
2022-03-14 14:29:21 +10:00
Alejandro Estrada
5670344590 feat: remove testFiles reference (#20565)
* feat: remove testFiles reference

* feat: remove testFiles reference

* Fix test/TS
2022-03-11 12:02:37 +10:00
Zachary Williams
3a8797e54d fix: wire up scaffolded indexHtml to dev servers (#20453)
* fix: wire up scaffolded indexHtml to dev servers

* fix vite tests

* update vuecli-5, fix system tests

* fix vite build error and launchpad test

* remove only

* address comments, remove gitignores

* remove only
2022-03-04 14:16:06 +10:00
semantic-release-bot
852c026dd4 chore: release @cypress/react-v5.12.4
[skip ci]
2022-03-03 15:43:59 -05:00
Barthélémy Ledoux
9f6090170b fix: avoid nextjs unsafeCache and watchOptions (#20440) 2022-03-03 14:15:51 -06:00
Tim Griesser
47b1f38f62 Merge branch 'develop' into 10.0-release
* develop: (35 commits)
  fix(deps): update dependency url-parse to v1.5.6 [security] (#20270)
  chore: fix cache keys to include PLATFORM (#20279)
  chore: fix server performance flake (#20271)
  test(system-tests): support docker-based tests against built binary (#20250)
  chore: fix system-test-firefox screenshots_spec flake (#20268)
  chore(deps): update dependency fs-extra to v9 🌟 (#19939)
  fix: Wait for child process to be ready (#19792)
  fix: treat form-data bodies as binary (#20144)
  test: replace cypress-test-example-repos coverage + remove bump (#20186)
  fix(driver): update wrapErr to ignore number and boolean values (#20172)
  release 9.5.0 [skip ci]
  chore: Update Chrome (stable) to 98.0.4758.102 (#20192)
  chore: enable volar.takeOverMode
  Add span names, merge develop
  fix: Update `.type(' ')` to not emit clicks when the keyup event has been prevented (#20156)
  test: remove redundant "other projects" CI jobs (#20133)
  chore(driver): move cy.focused and cy.root into their own files (#20054)
  Move sending root event to own script
  chore: release @cypress/vue-v3.1.1
  chore: release @cypress/react-v5.12.3
  ...
2022-02-22 12:40:07 -05:00
Brian Mann
73c7631816 fix all the tests that escape "doesn\'t" to use string templates 2022-02-18 16:23:20 -05:00
Alejandro Estrada
8a6768fee6 feat: use devServer instad of startDevServer (#20092)
* feat: use devServer instad of startDevServer

* Fix tests

* Update with feedback

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-02-11 09:46:58 -05:00
semantic-release-bot
6a96ca567e chore: release @cypress/react-v5.12.3
[skip ci]
2022-02-10 15:16:23 -05:00
Tyler Biethman
8a9713fc0d Chore: Merge branch 'develop' of https://github.com/cypress-io/cypress into 10.0-release
# Conflicts:
#	npm/vite-dev-server/src/makeCypressPlugin.ts
#	npm/vite-dev-server/src/resolveServerConfig.ts
#	npm/vue/README.md
#	npm/webpack-dev-server/package.json
#	packages/driver/cypress/integration/commands/actions/type_spec.js
#	packages/driver/src/cy/commands/navigation.ts
2022-02-10 12:11:42 -06:00
Lachlan Miller
9b967e06f5 fix: set correct default when using react-scripts plugin (#20141) 2022-02-10 01:26:20 -05:00
semantic-release-bot
f1fb88ac3a chore: release @cypress/react-v5.12.2
[skip ci]
2022-02-08 14:44:01 -05:00
Zachary Williams
dd11945f53 fix: remove nullish coalescing in js files to support node 12 (#20094) 2022-02-08 11:57:56 -06:00