Commit Graph

1127 Commits

Author SHA1 Message Date
semantic-release-bot
b673f25c0d chore: release @cypress/react-v7.0.2
[skip ci]
2022-12-02 18:42:19 -05:00
semantic-release-bot
430b49858a chore: release @cypress/mount-utils-v4.0.0
[skip ci]
2022-12-02 18:42:07 -05:00
semantic-release-bot
144497ee0f chore: release @cypress/schematic-v2.4.0
[skip ci]
2022-12-02 18:41:54 -05:00
Matt Schile
27c425dda3 fix(breaking): exclude node_modules from cross-origin-callback-loader (#24952)
* fix: exclude node_modules from cross-origin-callback-loader

* Update system-tests/test/cy_origin_error_spec.ts

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* Update system-tests/projects/origin-dependencies/.gitignore

Co-authored-by: Ryan Manuel <ryanm@cypress.io>

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
2022-12-02 14:32:03 -06:00
Blue F
8ff38cdb01 feat: Create public Cypress.ensure API for use with custom queries (#24697)
* fix: Improve TypeScript support for custom queries

* Typo fix

* Fix TS more

* Move 'ensures' off of cy and onto Cypress

* Type fixes

* One missed replacement

* Test fixes

* Properly pass in  to ensureRunnable

* Add .eslintignores to quiet down warnings

* Review feedback

* Update cli/types/cypress.d.ts

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-11-29 09:34:34 -06:00
mjhenkes
200656b1d2 Merge branch 'develop' into matth/merge-in-develop 2022-11-25 09:06:20 -06:00
semantic-release-bot
e7f873364c chore: release @cypress/webpack-batteries-included-preprocessor-v2.2.4
[skip ci]
2022-11-23 13:04:00 -05:00
semantic-release-bot
8c8e628cfa chore: release @cypress/vue-v5.0.2
[skip ci]
2022-11-23 13:02:46 -05:00
Emily Rohrbough
5f56670051 chore(12): merge in develop (#24783)
Co-authored-by: Ben M <benm@cypress.io>
Co-authored-by: Dariusz Czajkowski <darek@darek.dev>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Adam Stone <adams@cypress.io>
2022-11-23 07:55:29 -06:00
Adam Stone
2166ba0d94 fix: fix windows-lint CI job (#24758) 2022-11-22 14:35:28 -05:00
BlueWinds
286bd9dac1 Merge remote-tracking branch 'origin/develop' into update-release-12 2022-11-22 08:57:02 -08:00
Jennifer Shehane
b9d053e467 docs: Updates schematic docs for new config file type (#24313)
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-11-21 08:08:46 -06:00
Emily Rohrbough
79ea453764 chore(v12): merge develop into release/12.0.0 (#24705)
Co-authored-by: amehta265 <65267668+amehta265@users.noreply.github.com>
Co-authored-by: Bill Glesias <bglesias@gmail.com>
Co-authored-by: mattvCypress <mattv@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Jordan <jordan@jpdesigning.com>
Co-authored-by: Adam Stone <adams@cypress.io>
2022-11-18 16:02:31 -06:00
Adam Stone
e3435b6fba chore: re-name dashboard references to Cypress Cloud (#24699)
Co-authored-by: mattvCypress <mattv@cypress.io>
Co-authored-by: amehta265 <65267668+amehta265@users.noreply.github.com>
2022-11-17 09:10:50 -05:00
Jordan
ed90b14d4f refactor: move linting to each lib to enable caching (#24424) 2022-11-17 17:31:19 +10:00
Chris Breiding
b31c82938e Merge remote-tracking branch 'origin/develop' into merge-develop-v12-2022-11-14-take-2 2022-11-15 09:30:42 -05:00
semantic-release-bot
90d0003870 chore: release @cypress/vue2-v2.0.1
[skip ci]
2022-11-14 15:34:15 -05:00
Chris Breiding
e4be9697bd Merge branch 'develop' into merge-develop-v12-2022-11-14-take-2 2022-11-14 13:57:38 -05:00
Blue F
9ae911f396 feat: Queries, Detached DOM, and Retry-Ability (#24628)
* feat: Commands.addSelector, and migrate .get() to be a selector

* Fix for failed tests

* Last test fix

* More test fixes

* Self review changes

* Remove the concept of prevSubject from selectors entirely

* Rename addSelector to addQuery

* Quick fix for last commit

* Fix TS

* Fix merge from develop

* Add types and other review updates

* Increase timeout to try fixing flakiness

* Rename addQuery to _addQuery

* Fix typo in previous commit

* Fix TS

* Include AUT assertion in cy.get()

* Fix for previous commit

* Review feedback

* Minor test improvement

* Swifter failure on sizzle syntax error

* Better solution for refetching current subject in verifyUpcomingAssertions

* Command IDs now include their chainerId

* Revert "chore: Revert "feat: _addQuery() (#23665)" (#24022)"

This reverts commit f399994e9f.

* feat: move .contains() and .shadow() to be queries; remove cy.ng() (#23791)

* First stab at removing old .get() implementation

* Fix TS and a couple of tests

* Fix tests and TS

* Fix case-sensitivity for .contains()

* Stop TS complaining

* Rework cy-contains jquery expression

* Add comments, make ts happy

* Fix one test, review feedback

* Review updates

* Fix additional tests

* Fix accidental deletion of vital code

* One more try at getting logs right

* Fix race condition in cross-origin .contains

* Add commented out test to ensure .within() works properly with selectors

* Fix for sessions + query subject chaining

* Fix mixing .within() shadow DOM and .contains() in same chainer

* One more attempt at .within + .contains

* Fix rebase commits

* feat: addQuery Remaining Queries (#24203)

* First stab at removing old .get() implementation

* Fix TS and a couple of tests

* Fix tests and TS

* Fix case-sensitivity for .contains()

* Stop TS complaining

* Rework cy-contains jquery expression

* Add comments, make ts happy

* Fix one test, review feedback

* Review updates

* Fix additional tests

* Fix accidental deletion of vital code

* One more try at getting logs right

* Fix race condition in cross-origin .contains

* Add commented out test to ensure .within() works properly with selectors

* Fix for sessions + query subject chaining

* Fix mixing .within() shadow DOM and .contains() in same chainer

* One more attempt at .within + .contains

* Fix rebase commits

* Update many commands to be queries; improve log message around invalid subjects

* Update connectors, location, focused and window commands to queries

* Return noop to a command and not a query (to avoid implicit assertions)

* More test fixes

* Fix test failures

* Fix for weird-ass frontend-component test

* Error message improvements

* Fix for broken system test

* Update withinSubject to use subject chain

* Test clarifications

* Unbreak cypress-testing-library via withinState backwards compatibility

* Typo in last commit

* Improvement for assertion following failed traversal

* feat: Fix detached DOM errors for all Cypress commands (#24417)

* First stab at removing old .get() implementation

* Fix TS and a couple of tests

* Fix tests and TS

* Fix case-sensitivity for .contains()

* Stop TS complaining

* Rework cy-contains jquery expression

* Add comments, make ts happy

* Fix one test, review feedback

* Review updates

* Fix additional tests

* Fix accidental deletion of vital code

* One more try at getting logs right

* Fix race condition in cross-origin .contains

* Add commented out test to ensure .within() works properly with selectors

* Fix for sessions + query subject chaining

* Fix mixing .within() shadow DOM and .contains() in same chainer

* One more attempt at .within + .contains

* Fix rebase commits

* Update many commands to be queries; improve log message around invalid subjects

* Update connectors, location, focused and window commands to queries

* Return noop to a command and not a query (to avoid implicit assertions)

* More test fixes

* Fix test failures

* Fix for weird-ass frontend-component test

* Error message improvements

* Fix for broken system test

* Update withinSubject to use subject chain

* Test clarifications

* Unbreak cypress-testing-library via withinState backwards compatibility

* Typo in last commit

* Improvement for assertion following failed traversal

* WIP adding query support to

* More work on actionability + detached dom

* Fix TS, rename _addQuery to addQuery

* Another try to fix types

* Fix lint

* Fix for bad merge

* Fixes for a couple more tests

* Increase timeout 50ms -> 100ms on certain tests failing in CI

* Switch to new branch of cypress-testing-library

* Update lockfile

* Fix yarn.lock with latest version of forked testing-library

* More test fixes

* Fix TS again

* Increase test assertion timeout so it passes on slow browsers (webkit)

* Apply suggestions from code review

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <git@chary.us>

* More review changes

* Fix selectFile tests based on updated error message

* Improve types and type comments for Commands.add

* Undo change to Commands.add types

* Update yarn lockfiles again

* Remove overwriteQuery from Cy12; .focused() now respects passed in timeout

* Update cli/types/cypress.d.ts

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* Restore .uncheck() tests

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>

* Fix for hanging driver test after merge

* Fix for app component test

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2022-11-14 10:26:05 -06:00
crazyk2
741019d961 fix: vue2 global directives in component testing (#24488)
* fix vue2 global directives in component testing

* fix vue2 global directives in component testing

* update test

* comment out flaky spec [skip ci]

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
2022-11-14 18:20:02 +10:00
semantic-release-bot
cd234324d0 chore: release @cypress/webpack-dev-server-v3.1.0
[skip ci]
2022-11-10 17:02:35 -05:00
Zachary Williams
cc4244dd5d feat: add support for next 13 (#24396) 2022-11-10 09:46:29 -06:00
semantic-release-bot
89276add36 chore: release @cypress/webpack-preprocessor-v5.15.5
[skip ci]
2022-11-09 22:50:04 -05:00
Ryan Manuel
e9e8cadda4 fix: custom reporter and experimentalSessionAndOrigin crashes (#24630) 2022-11-09 20:43:03 -06:00
Adam Stone
141c799975 chore: normalize CT adapter readme documents (#24590) 2022-11-09 12:29:28 -05:00
semantic-release-bot
07d26660f9 chore: release @cypress/webpack-dev-server-v3.0.1
[skip ci]
2022-11-08 17:12:39 -05:00
semantic-release-bot
38e11113e7 chore: release @cypress/vite-dev-server-v4.0.1
[skip ci]
2022-11-08 17:12:27 -05:00
Lane Goldberg
d21cd96045 docs: update references to @cypress/grep (#24476)
Co-authored-by: Jordan <jordan@jpdesigning.com>
2022-11-08 16:40:29 -05:00
Zachary Williams
2513beac30 fix: vite-dev-server hoisting issue in binary (#24599) 2022-11-08 14:29:47 -06:00
Will
1886564409 docs: Update @cypress/grep README install instructions (#24484)
Swaps out references of 'cypress-grep' for '@cypress/grep' in the installation section of the README

Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com>
2022-11-08 13:31:51 -05:00
Zachary Williams
69f7dabc94 fix: revert dynamic import of webpack config file (#24598) 2022-11-08 12:21:53 -06:00
semantic-release-bot
963e184446 chore: release @cypress/vue-v5.0.1
[skip ci]
2022-11-07 19:06:57 -05:00
semantic-release-bot
5ab148b5d8 chore: release @cypress/react-v7.0.1
[skip ci]
2022-11-07 19:06:46 -05:00
semantic-release-bot
bad2cd7f3b chore: release @cypress/angular-v2.0.1
[skip ci]
2022-11-07 19:06:36 -05:00
Zachary Williams
838dd4fa2e fix: make component derived info not throw (#24571) 2022-11-07 16:36:43 -06:00
semantic-release-bot
12f9e8a6c9 chore: release @cypress/webpack-preprocessor-v5.15.4
[skip ci]
2022-11-07 10:44:15 -05:00
semantic-release-bot
097a574af1 chore: release @cypress/webpack-dev-server-v3.0.0
[skip ci]
2022-11-07 10:44:03 -05:00
semantic-release-bot
4cdeca5a32 chore: release @cypress/vue2-v2.0.0
[skip ci]
2022-11-07 10:43:49 -05:00
semantic-release-bot
b36356be16 chore: release @cypress/vue-v5.0.0
[skip ci]
2022-11-07 10:43:36 -05:00
semantic-release-bot
6748fb2373 chore: release @cypress/vite-dev-server-v4.0.0
[skip ci]
2022-11-07 10:43:24 -05:00
semantic-release-bot
b8ae6cf7f9 chore: release @cypress/svelte-v2.0.0
[skip ci]
2022-11-07 10:43:12 -05:00
semantic-release-bot
ef2b89fe4b chore: release @cypress/react18-v2.0.0
[skip ci]
2022-11-07 10:43:00 -05:00
semantic-release-bot
c5417511a0 chore: release @cypress/react-v7.0.0
[skip ci]
2022-11-07 10:42:48 -05:00
semantic-release-bot
16b12bad58 chore: release @cypress/mount-utils-v3.0.0
[skip ci]
2022-11-07 10:42:35 -05:00
semantic-release-bot
06a40949ad chore: release @cypress/angular-v2.0.0
[skip ci]
2022-11-07 10:42:18 -05:00
Zachary Williams
acfa4c4a7c fix vue2 cy.log regression 2022-11-04 09:58:47 -05:00
Zachary Williams
b58ec8742b Merge remote-tracking branch 'origin/develop' into zachw/merge-develop-11 2022-11-04 09:36:15 -05:00
Matt Henkes
2f18a8cbd2 fix: remove cypress.server.defaults, cy.server and cy.route (#24411)
* fix: remove server and route commands

* This won't totally pass but it's a step in the right direction.

* Should be down to only two failing tests due to abort.

* fix the alias.<thing> api for intercept to be equivalent to route.

* adjust timeouts to reduce flake, ideally

* skip xhr abort tests

* More clean up

* Increase timeout

* trick next version

* fix unit tests probably

* yeah sure

* Apply suggestions from code review

Co-authored-by: Blue F <blue@cypress.io>

* remove addXhrLog

* Remove more usage of XHR stemming from proxy-logging

* Remove a couple of files that found their way back with the merge from release/12.0.0

* remove more server types

* increase timeouts again to prevent flake

Co-authored-by: Blue F <blue@cypress.io>
Co-authored-by: Zach Bloomquist <git@chary.us>
2022-11-04 08:24:03 -05:00
rockindahizzy
7aba05b1a4 chore: add or improve mount JSDocs (#24475)
* Add or improve JSDoc

* Address code review comments

* Apply suggestions from code review

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* Update npm/react/src/mount.ts

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>

* Apply suggestions from code review

Co-authored-by: Stokes Player <stokes@cypress.io>

* on links

Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Co-authored-by: Stokes Player <stokes@cypress.io>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-11-04 17:26:01 +10:00
Adam Stone
294985f8b3 fix: remove some CT functions and props (#24419)
* fix: remove mountHook function for React

* fix: remove `unmount` from @cypress/react exports

* fix: remove `unmount` from the @cypress/react readme

* fix: don't alias React components on mount

* fix: remove `mountCallback` from Vue adapters

* fix: remove style injection utility functions from `mount-utils`

* fix: fix React tests

* fix: fix more React tests

* fix: fix more tests

* fix: fix screenshot test styles

* fix: update documentation around mount-utils styles; fix tests

* fix: update Vue docs to use `props` key rather than `propsData`

* fix: add test styles back in

* update unmount test and export getContainerEl for back compat

* better errors

* docs

* error for unmount

* test for error

* fix last test

* adjust language to reflect removed methods

* one last deprecation

* fix error

* wip - [skip ci]

* use proxy to catch errors

* deprecate alias

* update tests

* update on link

* use on links properly

* revert changes

Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2022-11-04 15:05:26 +10:00