* 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>
* 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
* fix iframe performance issues in electron
* reduce 1000ms to 300ms for cross:origin:release:html
* reduce shouldWithTimeout from 3000ms to 250ms
* Update system-tests/projects/e2e/cypress/e2e/spec_bridge.cy.ts
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
* add some regression tests around screenshot size when taking screenshots within cy.origin
* move screenshot e2e tests from system-tests into the driver
* move spec bridge system test into driver test
* add additional comments to spec bridge iframe scss for caution
* resolve snapshots directory correctly in open vs run mode
* revert this commit to see if assets are being tampered with or just missing in CI
* fix check:screenshot:size to always point to correct screenshot path
* remove isCypressRunMode from cypress config as internal flag as we no longer need it
* add check:screenshot:size to task.cy.js registered plugin assertion
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
* Attempt to run tests without the feature flag and the multi-domain folder
* do it for real this time dummy
* trying circleci changes
* valid file???
* moar changes!
* i am a master of bash scripting
* try another exclude pattern
* one more time with feeling
* lets do it again
* maybe this?
* different parallel group
* lets try this
* updating tests phase 1
* updating tests phase 2
* Apply suggestions from code review
Co-authored-by: Matt Schile <mschile@gmail.com>
* Update tests
* Run more tests
* Re-locate system test
* Flex message for firefox
Co-authored-by: Matt Schile <mschile@gmail.com>
* basic domain name validation
* tests and an updated message
* Apply suggestions from code review
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* pr changes
* skip flaky tests for now
* Apply suggestions from code review
* support localhost and ip addresses
Co-authored-by: Bill Glesias <bglesias@gmail.com>
* 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
...
* sync Cypress.config() from primary over to secondary domain
* skip async tests until refactoring changes are released
* attempt to sync config and env to secondary domain
* fix cy.pause() in run mode now that configs are synced properly
* fix issue where video is being turned on twice in firefox, causing multi-domain tests to fail in firefox run mode
* remove iframe before multi domain sync spec runs to allow for determinisitc testing of big Cypress config/env changes
* remove isDocument and isWindow checks from omitUnserializableValues fn
* change spec bridge removal code inside multi domain sync test
* Implement bi-directional syncing of config and env
* remove preprocessing of thrown errors in secondary domain (meant to remove this)
* skip structuredClone test for firefox versions below 94
* delete half of test code with same value as env and config are very similar
* address comments in code review to improve tests
* rename config_utilities to config since util is implied by directory name
* simplify config utils and preprocess functions
* wrap read only config test in promise to prevent false negatives
* make code review comments to fix coding errors and improve tests/documentation
* cut over env/config test to exclusively use promises over done
* reset config and env after multi domain env/config tests
* namespace env/config keys to prevent any overlap in tests. Deleting env keys persist through test due to known bug on soft reruns. Also doctored spies tests to not directly assert on the values of env.
* 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>