* 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>
* 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>
* 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>
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>
* 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>
* 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>