Commit Graph

77 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Jess
3fe5f50e78 feat: embedding mount into the cypress binary (real dependency) (#20930) 2022-04-06 20:12:55 -04: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
Emily Rohrbough
f669c101e1 Merge branch '10.0-release' into 1f70b21bc4-develop-into-10.0-release 2022-01-21 15:50:16 -06: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
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
Tim Griesser
7c339d41c8 Merge branch 'develop' into 10.0-release
* develop: (52 commits)
  feat: use hoisted yarn install in binary build (#17285)
  fix: compile npm packages for node 12 (#18989)
  fix: show call count even if `cy.stub().log(false)`. (#18907)
  chore: Update TypeScript to 4.4.4 (#18930)
  fix: wrap playground selectors in double quotes if not included (#18442)
  fix: flaky settings_spec test (#18979)
  chore: Update Chrome (stable) to 96.0.4664.45 (#18931)
  fix: Loading of specs with % in the filename (#18877)
  chore: refactor `create` into class `$Cy` (#18715)
  chore: Update Chrome (beta) to 96.0.4664.45 (#18891)
  fix: flaky `system-tests-firefox` job (#18848)
  chore: release @cypress/webpack-preprocessor-v5.10.0
  chore: release @cypress/vue-v3.0.5
  chore: release @cypress/schematic-v1.6.0
  chore: release create-cypress-tests-v1.2.0
  release 9.0.0
  feat: ensure major release
  have conduit app wait on localhost:3000
  fix install-required-node
  use --legacy-peer-deps
  ...
2021-11-20 16:03:53 -05:00
Tim Griesser
e4f5b106d4 feat: use hoisted yarn install in binary build (#17285) 2021-11-20 14:19:51 -05:00
Tim Griesser
6a9f5a1a41 Merge branch 'develop' into unified-desktop-gui
* develop: (40 commits)
  fix(driver): Sticky elements within a fixed container will not prevent an element from being scrolled to (#18441)
  chore: make `create` function on server.ts obsolete (#18615)
  docs: Add instructions to squash commits to develop in Contributing (#18728)
  fix(@cypress/react): throw if using Next.js swc-loader without nodeVersion=system (#18686)
  refactor: remove Ramda (#18723)
  chore: Increase paralleled machines for desktop-gui tests (#18725)
  chore: Update Chrome (stable) to 95.0.4638.69 (#18696)
  chore: release @cypress/vue-v3.0.4
  chore: release @cypress/react-v5.10.2
  chore: release @cypress/schematic-v1.5.3
  fix: remove outdated registry link (#18710)
  chore: release @cypress/schematic-v1.5.2
  chore: release create-cypress-tests-v1.1.3
  chore: Update Chrome (beta) to 96.0.4664.27 (#18676)
  chore(tests): Remove flaky assertion that relies on png how compression (#18668)
  fix: make sure to go back to no-specs when delete spec file (#17760)
  fix: Next.JS 12 components testing failing with ` TypeError: Cannot read property 'traceChild' of undefined` (#18648)
  Backport .gitignore from unified-desktop-gui
  chore(docs): add 'Upgrading Electron' instructions (#18594)
  release 8.7.0 [skip ci]
  ...
2021-11-02 21:35:26 -04:00
Zachary Williams
e2a869d2a9 fix: remove outdated registry link (#18710) 2021-10-29 18:28:37 -04:00
Blue F
196e8f62cc feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead (#18422)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-10-26 10:36:44 -04:00
userquin
853a6f5a33 chore: fix initial installation on windows (#18241) 2021-09-25 14:34:37 -04:00
userquin
8614e97802 fix(unified-desktop-gui branch): initial installation on windows (#18247) 2021-09-25 14:18:17 -04:00
Lachlan Miller
8bda0a9d02 chore: merge in develop to unified-desktop-gui (#18103)
* merge in develop

* remove accidentally merged file

* update types
2021-09-15 16:24:28 +10:00
Zachary Williams
70c7c36781 fix: configure proper pages directory for next application (#18009)
* fix: find pages directory for next applications

* convert new files to typescript and add transpile step

* add tsconfig for plugins
2021-09-14 13:17:57 +10:00
Gleb Bahmutov
36be9ebea5 docs: restore author of react,vue,ng component testing (#16800)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-09-09 12:58:01 -05:00
Adam Gastineau
c4aaa58744 chore: Normalized reporters between CI tasks (#16608) 2021-05-21 08:10:53 -07:00
Jennifer Shehane
a19009afee chore: Update package.json/readmes for npm packages to better find changelog (#16482) 2021-05-13 08:53:25 -05:00
Lachlan Miller
7b242acbf6 fix: remove unnecessary dependency (#16412) 2021-05-11 14:02:34 +10:00
Barthélémy Ledoux
c4151fbd9f fix: accept webapck 4 & 5 as peer dependencies of @cypress/vue and @cypress/react (#16290) 2021-05-03 13:45:12 -05:00
Lachlan Miller
d5bbf7bdeb Merge branch 'master' into develop 2021-04-29 02:41:54 +00:00
Lachlan Miller
bd78337752 fix: bump deps and release new version (#16261) 2021-04-29 12:41:19 +10:00
Ben Kucera
0fce48787c chore: upgrade percy (#16020)
* upgrade percy
* update yarn.lock
* remove percy/healthcheck
* reduce to one percy version
* fix percy for component testing - dont let component runner overwrite spec globals
* fix type-check
2021-04-26 17:40:33 -04:00
Lachlan Miller
fe0b63c299 fix: improve handling of userland injected styles in component testing (#16024)
* feat(npm/react): do not clear head between tests

* add a shared mount utils library

* add readme

* update dependencies

* add mount utils to circle

* change module

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-04-22 01:48:48 +10:00
Barthélémy Ledoux
64cfa06c1e docs: make clean examples of vue component testing (#15796)
* remove all existsing examples

* create vue cli project

* add nuxt app example

* test: fix some vite tests

* docs: add tests to nuxt example

* add test script to nuxt example

* docs: add cy plugin nuxt

* fix: avoid creating support files

* test: add tests for vue cli

* test: fix CLI example

* fix the test

* test: make all vue examples be tested in ci

* ci: use minimist

* ci: fix cwd

* adjust the model for .env files making it easy to comment/uncomment the examples opened.

* protect empty module

* fix nuxt tests

* fix test protection

* more clear fix
2021-04-08 10:00:05 +10:00
Adam Gastineau
0ca53c783d chore: TypeScript 4.2.3 (#15646) 2021-04-06 08:21:21 -07:00
Lachlan Miller
df8cb0345f fix: make cypress/react public (#15799)
* fix: unrestrict access to react/cypress

* make cypress-react public
2021-04-06 12:49:40 +10:00
Lachlan Miller
4c5623fb1c fix: unrestrict access to react/cypress (#15798) 2021-04-06 11:37:08 +10:00
Jessica Sachs
4a228060a8 Merge remote-tracking branch 'origin' into 7.0-release 2021-04-02 12:52:49 -04:00
Dmitriy Kovalenko
254eb47d91 fix(component-testing): Fix webpack-dev-server deps validation crash (#15708)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-04-02 10:12:57 -05:00
Zach Bloomquist
16e1577848 Merge remote-tracking branch 'origin/develop' into 7.0-release 2021-03-24 16:27:56 -07:00
Jessica Sachs
ee2b1beb22 chore: remove conditional test suite, ciDependents, and ciJobs (#15552)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-03-18 13:09:16 -04:00
Jessica Sachs
018407b4b5 chore: adding a test for the release scripts (#15551) 2021-03-18 01:25:30 -04:00
renovate[bot]
b52ac98a69 feat(deps): update dependency electron to version 12.x 🌟 (#15292)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-03-10 15:24:00 +00:00
Zach Bloomquist
e049185628 chore: remove invalid nohoist (#15346)
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
2021-03-05 19:51:07 +00:00
Dmitriy Kovalenko
fc30118252 feat(@cypress/react): Make correct plugins for different adapters/bundlers (#15337)
* Remove unused stuff

* Fix eslint errors

* Use local cypress running script

* Fix dependency resolution

* Revert "Fix dependency resolution"

This reverts commit 01a70be211.

* Add @cypress/react CI

* Properly resolve @types pacakges

* Run tests with mocha

* Fix cypress tests

* Fix or skip some specs

* Add retries to the card-spec.js

* Remove jest mocks

* Run e2e examples on CI

* Fix yarn cache key

* Fix e2e examples jobs

* Rename cypress-react-unit-test with @cypress/react

* Fix circleci.yml

* Revert "Fix e2e examples jobs"

This reverts commit efcc7c4d19.

* Revert " Rename cypress-react-unit-test with @cypress/react"

This reverts commit 4febfcc82b.

* Replce cypress-react-unit-test with @cypress/react

* Persist build artifacts

* Fix working directory paths circle.yml

* Fix more CI

* adding yarn.lock files

* Make package.json for  folder

* Remove .npmrc

* Update circle.yml

* Remove unused files

* Copy plugins files to the "dist" folder

* Fix links to the github repos

* Move init wizard from npm/react/init to npm/wizard

* Move init wizard from npm/react/init to npm/wizard

* Implement initial vue template

* Run wizard tests on CI

* Refactor continue: bool to success: bool for better code readability

* Fix circleci.yml

* Use only absolute paths for tests

* Stub process.exit calls

* Remove useless comments

* Add installation cypress to the wizard logic

* More improvements

* Include packages/examples/cypress into git

* Commit new files

* Use packages/example as SST for generated files

* Last improvements for wizard

* Update packages/server/lib/scaffold.js

* Rename wizard to create-cypress-tests

* Fix circleci config

* Fix snapshot tests

* Run all create-cypress-tests on ci

* Do not install plugins and scaffold files from kitchensink

* Ignore integration/examples folder for packages/example

* Run create-cypress-tests-tests on CI

* Add copy example cross-platform script

* Use copy example script in tests

* feat: create-cypress-tests auto-inject config (#9116)

* Implement the basic babel code transformation for configs

* Add more tests for edge-cases

* Add snapshot tests for autogenerated code for each template

* Add git status guard

* Add git status guard

* Fix last test

* Fix tests

* Revert changes for packages/example

* Revert changes for packages/example/tsconfig.json

* Prepeare package for the release

* Fix inquirer name

* v0.0.125

* v0.0.127

* v0.0.128

* v0.0.130

* v0.0.131

* Add more UX features

* Add vue-cli template

* Make src as default folder for vue-cli template

* Revert dev-time changes

* Run appveyour windows build

* Run full appveyour build

* Fix circle.yml

* Update plugins

* Join paths for windows

* Revert example/lib changes

* Fix tests

* Revert unnecessary changes

* Implement dev-server dependency installation

* Update npm/create-cypress-tests/README.md

* Properly exit process if react tests failed

* Fix circleci reporter not found

* Update nextjs plugin

* react-scripts plugin for dev-server

* Implement webpack-file plugin support

* v0.0.502

* v0.0.503

* Implement rollup support

* Implement babel plugin

* Update webpack options

* Fix nextjs plugin

* Unmount components in beforeEach to prevent side-effects

* Rename preprocessor to injectDevServer

* Fix next.js example

* Fix webpack-options exampel

* Reproduce rollup problem

* Update create-cypress-tests snapshots

* Do not run examples/rollup

* Uncomment test

* Change paralllelism

* Remove useless checks

* Update snapshots

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-03-05 18:16:22 +02:00
Dmitriy Kovalenko
c405ee89ef feat: create-cypress-tests installation wizard (#9563)
* Remove unused stuff

* Fix eslint errors

* Use local cypress running script

* Fix dependency resolution

* Revert "Fix dependency resolution"

This reverts commit 01a70be211.

* Add @cypress/react CI

* Properly resolve @types pacakges

* Run tests with mocha

* Fix cypress tests

* Fix or skip some specs

* Add retries to the card-spec.js

* Remove jest mocks

* Run e2e examples on CI

* Fix yarn cache key

* Fix e2e examples jobs

* Rename cypress-react-unit-test with @cypress/react

* Fix circleci.yml

* Revert "Fix e2e examples jobs"

This reverts commit efcc7c4d19.

* Revert " Rename cypress-react-unit-test with @cypress/react"

This reverts commit 4febfcc82b.

* Replce cypress-react-unit-test with @cypress/react

* Persist build artifacts

* Fix working directory paths circle.yml

* Fix more CI

* adding yarn.lock files

* Make package.json for  folder

* Remove .npmrc

* Update circle.yml

* Remove unused files

* Copy plugins files to the "dist" folder

* Fix links to the github repos

* Move init wizard from npm/react/init to npm/wizard

* Move init wizard from npm/react/init to npm/wizard

* Implement initial vue template

* Run wizard tests on CI

* Refactor continue: bool to success: bool for better code readability

* Fix circleci.yml

* Use only absolute paths for tests

* Stub process.exit calls

* Remove useless comments

* Add installation cypress to the wizard logic

* More improvements

* Include packages/examples/cypress into git

* Commit new files

* Use packages/example as SST for generated files

* Last improvements for wizard

* Update packages/server/lib/scaffold.js

* Rename wizard to create-cypress-tests

* Fix circleci config

* Fix snapshot tests

* Run all create-cypress-tests on ci

* Do not install plugins and scaffold files from kitchensink

* Ignore integration/examples folder for packages/example

* Run create-cypress-tests-tests on CI

* Add copy example cross-platform script

* Use copy example script in tests

* feat: create-cypress-tests auto-inject config (#9116)

* Implement the basic babel code transformation for configs

* Add more tests for edge-cases

* Add snapshot tests for autogenerated code for each template

* Add git status guard

* Add git status guard

* Fix last test

* Fix tests

* Revert changes for packages/example

* Revert changes for packages/example/tsconfig.json

* Prepeare package for the release

* Fix inquirer name

* v0.0.125

* v0.0.127

* v0.0.128

* v0.0.130

* v0.0.131

* Add more UX features

* Add vue-cli template

* Make src as default folder for vue-cli template

* Revert dev-time changes

* Run appveyour windows build

* Run full appveyour build

* Fix circle.yml

* Update plugins

* Join paths for windows

* Revert example/lib changes

* Fix tests

* Revert unnecessary changes

* Implement dev-server dependency installation

* Update npm/create-cypress-tests/README.md

* Include webpack-options template in dist

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-03-05 07:51:53 +02:00
Barthélémy Ledoux
aae4872305 build: use rollup to pack cypress/vue (#15210)
* build: use rollup to pack cypress/vue

* fix: remove unnecessary json plugin
2021-02-25 10:01:53 -06:00
Barthélémy Ledoux
fa969fba78 fix: make webpack-dev-server a peer dependency (#15163)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-02-23 16:45:00 -06:00
Lachlan Miller
50cfa91e89 chore: add a script to run all react tests in a single step (#15137)
Co-authored-by: Дмитрий Коваленко <dmitrijkovalenko@Dmitrijs-MacBook-Pro.local>
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
2021-02-22 19:34:26 -05:00