* add regression tests
* attempt to fix screenshot blacks basing blackouted element around container instead of body dimensions
* move blackout test to screenshot viewport suite and update snapshot
* add github issue to test
* 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>
* 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>
* chore: [Multi-origin] Correctly find the spec bridge if chromeWebSecurity set to false.
* Update packages/runner/injection/multi-domain.js
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
* Attempting a system test
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
* chore: [Multi-domain] Rename the last of the domain/multi-domain to origin type names.
* oops
* typo
* Update packages/driver/cypress/integration/e2e/multi-domain/multi_domain_validation_specs.ts
Co-authored-by: Matt Schile <mschile@gmail.com>
* Update packages/driver/cypress/integration/e2e/multi-domain/multi_domain_validation_specs.ts
Co-authored-by: Matt Schile <mschile@gmail.com>
Co-authored-by: Matt Schile <mschile@gmail.com>
* fix: prevent serialization issues with retries using multi-domain by sanitizing data sent to spec bridges
* recursively map Objects/Arrays to literallys if keys inside Object mapped are also Objects/Arrays
* update chromium based tests to now expect error objects to be literals in secondary domain
* avoid sanitizing primary to secondary user defined data
* update new system test name to not be the copy pasta alternate :)
* uncomment firefox tests to attempt run in CI
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
* Refactor error serialization to rely on structuredClone over clone and
other means.
* add system test to verify stack trace is corrected for multi-domain errors
* remove redundant code and update documentation/tests
* address comments from code review
* remove 'to map' from serialization error message
* make all errors truthy before emitting through spec bridge to prevent sending unecessary values through postMessage
* fix falsy error serialization in firefox
* move reify errors into the primaryDomainCommunicator
* address comment made in review https://github.com/cypress-io/cypress/pull/20520#discussion_r826232365
* update switchToDomain to contain fully qualified URL to be compatible with https://github.com/cypress-io/cypress/pull/20564
* add experimentalMultiDomain config flag check on middleware. Add
SetInjectionLevel tests
* Move navigation spec that was skipped to validate cross origin errors to
system test
* fix issues with web security spec having a false negative
* remove unecessary config values / assertions from system tests
* fix(unify): Updating reporter to use consistent preferred editor dialog
Migrating helpers and initial tests to app from existing runner specs
* Simplifying reporter tests around IDE launch
* It'd help to open the stack trace
* Scoping util hooks
* Removing unnecessary spec project files
* Removing socket emit assertions from system test validation
* Condensing components further to better control tooltip presentation
* Updating runnables usage
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
* start graphql server in run mode
* update url logic
* use correct mobx instance
* expose util method for testing selector playground
* add __Cypress__ global
* correctly order aut lifecycle methods
* correct spec url in tests
* fix server integration tests
* add title to html
* update url encoding
* uni test
* encoding
* encode ssr data as base64
* set correct cypress.spec.name
* set arch and os options
* add version to options
* update config test
* update encoding
* temp skip
* more skips
* try to fix launchpad tests
* update test
* update runner
* feat: automation
* ignore error
* remove unused runner steps
* try remove error
* config
* Ensuring a provided testId gets rendered on a consistent element reference within HeaderBar.
* better conditionals
* automation connection
* try applying firefox cdp automation
* skip spec
* skip for now
* skips
* respond to failed visit event correctly
* chore: fix screenshot system tests (#19686)
* set fake __CYPRESS_MODE__ on window
* vue logic for screenshot + run-mode checks
* Restore AUT wrapper div, make the name more clear
* switch to await for `before:screenshot` event send
* remove skipped tests
* add CYPRESS_INTERNAL_MODE to env
* move logic into component
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
* do not run runner-shared tests anymore
* dont care about runner unit test
* add reference screenshots confirmed to be good
* fix rerun spec
* do not hardcode http protocol, remove old code
* revert protocol and add missing pre-fetch gql query
* correctly pass ssr data, update request policy
* automation element updates
* do not apply CDP automation for firefox
* make assertions more debug-friendly
* up timeout, make firefox pixels slightly looser on CI
* Fix TS
* Try to fix tests
* Try to fix tests
* do not require urql for run mode
* wip: request policy changes
* use separate component for run mode and open mode
* expose selector playground function globally for testing purposes
* fix typescript
* fixing unit tests
* encode ssr data to match production
* fix test
* fix test
* readme
* fix: Run mode for unified runner resolve conflicts (#19743)
* merge in 10.0-release
* Fix merge conflict with client route
* Fail earlier when trying to run cypress in cypress in a browser other than chrome
* Fix some tests
* Set empty obj if config is not set
* Update tests
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* update automation namespace, remove old code
* remove skipped test
* handle non proxied case
* clean up code
* revert png
* do not start graphql server in run mode
* Fix ts error
* revert type.cy.js to original test
* revert change in driver screenshot
* remove unused async
* remove unused env var
* remove old todo comment
* remove needless console.log
* unskip test
* use pause: true to avoid gql request
* remove unused automation element
* remove unused setAutomationStatus method
* change pane -> panel
* reimplement 1px flake fix for firefox type.cy.js
* chore: remove launchpad environment variable (#19778)
* remove LAUNCHPAD conditionals
* add timeout to test
* revert file
* correctly normalize url
Co-authored-by: Tyler Biethman <tbiethman@gmail.com>
Co-authored-by: Mark Noonan <oddlyaromatic@gmail.com>
Co-authored-by: Mark Noonan <mark@cypress.io>
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com>
Co-authored-by: estrada9166 <estrada9166@hotmail.com>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
* develop:
chore(deps): update dependency ssri to 6.0.2 [security] (#19351)
chore: Fix server unit tests running on mac by using actual tmp dir (#19350)
fix: Add more precise types to Cypress.Commands (#19003)
fix: Do not screenshot or trigger the failed event when tests are skipped (#19331)
fix (#19262)
fix: throw when writing to 'read only' properties of `config` (#18896)
fix: close chrome when closing electron (#19322)
fix: disable automatic request retries (#19161)
chore: refactor cy funcs (#19080)
chore(deps): update dependency @ffmpeg-installer/ffmpeg to v1.1.0 🌟 (#19300)