Commit Graph

252 Commits

Author SHA1 Message Date
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
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
Jess
4299af8a0c chore: support vite 2.5 (#20084)
* chore: support vite 2.5

* chore: update eslint ignore statements

* chore: ignore jquery type issue

* chore: yarn integrity checks

* chore: use latest commit of branch for kitchensink

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-02-08 12:07:16 -05:00
Alejandro Estrada
6e803597a3 fix: update scaffold template to use correct path (#20047)
* fix: update scaffold template to use correct path

* Remove support for dynamic import on devServer

* Update scaffold template

* Update config files

* Update with feedback

* Rename cypressConfig to cypressDevServerConfig

* Update devserver link

* Update comment
2022-02-07 16:58:24 -05:00
Alejandro Estrada
5d52758d82 feat: validate specPattern root level (#19980)
* feat: validate specPattern root level

* Fix/add tests

* Fix test

* Update specExcludePattern

* Fix tests

* Fix/add tests

* Fix/add tests

* Fix tests

* Rename specExcludePattern to excludeSpecPattern

* Fix tests
2022-02-04 10:48:10 -05:00
Ben Alman
6a402a7076 fix(unify): improve dev server config ergonomics (#19957) 2022-01-28 20:45:28 -06:00
Jennifer Shehane
3f8c0680b4 Merge pull request #19823 from cypress-io/1f70b21bc4-develop-into-10.0-release 2022-01-24 13:30:06 -06:00
Alejandro Estrada
8f32960ef8 fix: scaffold correct config file (#19776)
* fix: scaffold correct config file

* update setConfigFilePath

* Update test

* Update with code review

* remove default supportFile

* Update supportFile default value

* Add test

* Fix identation

* Update with feedback

* fix english pluralization

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-01-24 10:23:44 -05:00
Emily Rohrbough
f669c101e1 Merge branch '10.0-release' into 1f70b21bc4-develop-into-10.0-release 2022-01-21 15:50:16 -06:00
Chris Breiding
edb4642328 chore: Use @typescript-eslint/indent instead of eslint's indent (#19772) 2022-01-19 13:38:16 -05:00
Tim Griesser
bfc032a2d4 fix: open browser at correct time during lifecycle (#19572) 2022-01-12 13:41:25 -05:00
Lachlan Miller
1f28650d68 chore: change integration->e2e throughout code base (#19345)
* hacky way to update snapshots

* new hack to update snapshots

* trying again

* hacky fix

* ci: snapshots

* ci: snapshots

* snapshots

* mas updates

* update spec API

* fix test

* fix test

* update

* update test

* fix test

* update plugin

* update spec

* webpack optinos

* Update launchpad tests

* fix screenshot paths

* updated snapshot

* change pattern

* guard

* fix smoke test

* patch code coverage

* update percy config

* fix specs

* try updating example project

* update snapshots

* remove old test

* remove snapshot hack

* add back appveyor

* remove old code

* update snapshot

* Fix tests

* wip

* revert snapshot

* reverted all snaps

* remove only

* remove commnet

* remove old code

* reverted file

* lint

* revert video compression spec

* update snapshot

* update spec path logic

* update snap

* updated snap

* snaps

* snaps

* fix spec

* rename ignoreTestFiles to ignoreSpecPattern

* update screenshot dir for runner-ct

* update deprecations

* update

* upate

* fix test

* update snaps

* update snap

* updating snap

* added missing snaps

* updated cypress run mode integration spec

* electron snapshot

* update default

* rename integration->e2e

* rename integration->e2e in packages

* spec.ts -> cy.ts

* spec.ts -> cy.ts

* _spec.js -> .cy.js

* .spec.js -> .cy.js

* .spec.js -> .cy.js

* update config

* update config

* update

* update spec ext

* update config

* update config

* ensure newly scaffold specs are cached

* fix launchpad spec

* types

* update test

* transpile based on spec pattern

* add back example

* remove unnecessary async and nodeVersion

* spec.tsx -> cy.tsx

* update stop-only config

* exclude CT from E2E

* removed old test

* update spec pattern in angular

* update spec pattern in design system

* update all specs npm npm/react

* update spec name

* update spec patterns

* remove old script

* update tests path

* update config

* fix test

* update snapshots

* update examples

* update ignore patterns

* update snapshots

* unit tests

* update tests

* patch code coverage

* revert spec name

* rename a lot of speces

* update

* update spec ext

* update spec

* update spec

* update spec ext

* update lint

* update rules

* update lint

* snaps

* update spec dir

* update paths

* remove unused pluginsfile config opt

* update smoke test

* update create cypress tests

* update gitignore

* update types

* update paths

* update spe

* update test

* update all snaps

* update tests

* update http request spec

* update spec file names

* snaps

* update snaps

* updated snaps

* update snaps

* spacing

* spacing

* spacing

* spacing

* fix perf spec

* update

* update

* revert

* update

* snaps

* snaps

* rename spec

* update snaps

* snapshots

* update tests

* update tests

* update

* fix

* update test projects

* update

* updating

* update run-ct test

* update spec pattern and add defensive check around platform

* fix system test script

* update snap

* snaps

* update test

* update spe

* update for FF

* ff

* remove unused feature flag

* added tests

* fix react example

* update test

* update config

* update test projects

* update snapshots

* correctly remove private prefix on darwin

* fix types

* rename integration -> e2e

* update config

* updatec onfig

* fixing app scaffold integration tests

* remove code

* exclude e2e specs from CT

* update snapshot

* integration->e2e

* update path for test file in ts project

* update schematic

* use updated branch for CI

* update config

* update config

* revert some changes

* remove built code

* revert changes

* update gitignore

* include test spec

* update scaffold script

* wip: renames

* script

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* mass rename

* rename

* rename

* fix angular

* update spec in create cypress tests

* remove old file

* fix tests

* access specPattern in a more idiomatic fashion

* do not duplicate variable

* pass correct params to findSpec in files controller

* add comment explaining spec finding

* remove reference to old file that no longer exist

* resolve conflicts

* fix types

* transpile cypress dir

* update circle ymlg

* update spec pattern for example project

* supportFile: false

* fix circle yml

* update test glob

* rename some specs to use correct .cy ext

* more ext renames

* rename spec

* update extensions

* update extensions

* update specs

Co-authored-by: estrada9166 <estrada9166@hotmail.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-01-11 16:29:55 +10:00
Ryan Manuel
5d1dce61e0 Merge master to dev 2022-01-10 13:01:12 -06:00
Zachary Williams
3f85a049ef Merge branch 'master' into develop 2022-01-10 16:02:22 +00:00
Zachary Williams
6304fd7548 fix: check resolvedNodePath for Next.js 12 guard (#19604) 2022-01-10 10:01:27 -06:00
Alejandro Estrada
0366d4fa89 feat: use supportFile by testingType (#19364)
* feat: use supportFile by testingType

* Fix defaults

* Start renaming files, and updating system-tests

* Fix some tests

* Fix some tests

* Fix more tests

* Try to fix CI

* Fix more tests

* Fix some tests

* Revert changes

* Revert supportFile defaultValue

* Fix some tests

* Fix some tests

* Fix some tests

* Fix some tests

* Update supportFile example

* Update snapshots

* Remove scaffold support

* Handle config errors

* Remove scaffold

* Fix tests

* Fix test

* Update test

* Fix test

* Update supportFile template

* Fix template
2022-01-05 13:37:44 -05:00
Lachlan Miller
792980ac12 feat: support specPattern, deprecate integrationFolder and componentFolder (#19319)
* use new specPattern API

* remove projectApi.findSpecs

* do not require integration folder

* support --spec

* support --spec

* remove old code

* remove old code

* nuke old code

* no appvetor

* update

* correct url for ct

* work on migrating launchpad

* update ct spec url

* types

* types

* dead code

* remove old endpiont

* revert back circle.yml

* update missing config

* delete spec util

* update config

* update config

* config again

* update spec pattern

* updated vue config

* update spec pattern for ui components

* update config for vite dev server

* update snapshots

* update config

* update design system config

* fix spec pattern in reporter

* update default

* update deprecated spec snapshots

* update system tests

* update run mode output

* revert changes

* lint

* remove scaffold tests

* update angular

* fix CT

* update circle yml

* fix system tests for ct

* fix tests

* work on server unit tests

* patch package

* patch package again

* update test

* try not to rely on config async loading too much

* normalize specPattern to array

* update snapshot

* use base name

* deal with react-scripts later

* update snapshot

* hacky way to update snapshots

* new hack to update snapshots

* trying again

* hacky fix

* ci: snapshots

* ci: snapshots

* snapshots

* mas updates

* update spec API

* fix test

* fix test

* update

* update test

* fix test

* update plugin

* update spec

* webpack optinos

* Update launchpad tests

* fix screenshot paths

* updated snapshot

* change pattern

* guard

* fix smoke test

* patch code coverage

* update percy config

* fix specs

* try updating example project

* update snapshots

* remove old test

* remove snapshot hack

* add back appveyor

* remove old code

* update snapshot

* Fix tests

* wip

* revert snapshot

* reverted all snaps

* remove only

* remove commnet

* remove old code

* reverted file

* lint

* revert video compression spec

* update snapshot

* update spec path logic

* update snap

* updated snap

* snaps

* snaps

* fix spec

* rename ignoreTestFiles to ignoreSpecPattern

* update screenshot dir for runner-ct

* update deprecations

* update

* upate

* fix test

* update snaps

* update snap

* updating snap

* added missing snaps

* updated cypress run mode integration spec

* electron snapshot

* ensure newly scaffold specs are cached

* fix launchpad spec

* types

* update test

* transpile based on spec pattern

* add back example

* remove unnecessary async and nodeVersion

* removed old test

* update spec pattern and add defensive check around platform

* remove unused feature flag

* added tests

* fix react example

* update test

* update config

* fix spec finding in run mode

* fix tests

* fixing specs

* fix switching between specs

* remove invalid test

* increase timeout

Co-authored-by: estrada9166 <estrada9166@hotmail.com>
2022-01-04 14:24:24 +10:00
renovate[bot]
797002f0ff chore(deps): update dependency axios to v0.21.2 [security] (#19021)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2021-12-22 14:08:18 -06:00
Tim Griesser
4626f7481c feat: ProjectLifecycleManager & general launchpad cleanup (#19347)
See #19347 for full summary

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: estrada9166 <estrada9166@hotmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com>
Co-authored-by: Jess <jess@jessicasachs.io>
2021-12-21 21:28:44 -05:00
semantic-release-bot
10e3e0a317 chore: release @cypress/react-v5.12.0
[skip ci]
2021-12-21 14:35:12 -05:00
Zachary Williams
415a7b149a feat: support create-react-app v5 (#19434) 2021-12-21 13:18:03 -06:00
semantic-release-bot
921f17e408 chore: release @cypress/react-v5.11.0
[skip ci]
2021-12-16 12:21:28 -05:00
ElevateBart
58c60f7367 chore: update sass for windows compatibility 2021-12-07 11:26:30 -06:00
ElevateBart
ce0bb2c84b Merge branch 'develop' into elevatebart/chore/merge-develop 2021-12-07 10:41:18 -06:00
Alejandro Estrada
cc2d734818 feat: update on-links (#19235) 2021-12-03 13:23:44 -05:00
Emily Rohrbough
6b15468579 chore: Migrate Windows Tests from Appveyor to CircleCI (#19037)
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2021-12-02 14:20:06 -06:00