Emily Rohrbough
7cbf92ca4e
fix test issues
2022-01-21 16:30:33 -06:00
Emily Rohrbough
a33288b4a6
move from driver/cypress/integration to driver/cypress/e2e
2022-01-21 15:59:20 -06:00
Emily Rohrbough
f669c101e1
Merge branch '10.0-release' into 1f70b21bc4-develop-into-10.0-release
2022-01-21 15:50:16 -06:00
Blue F
b16553ec70
feat: Add mimeType support; Improve TypedArray support ( #19794 )
...
* Add mimeType support; Improve ArrayBuffer support
2022-01-21 10:23:59 -08:00
Lachlan Miller
721e586625
feat: use unified app for run mode ( #19625 )
...
* 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 >
2022-01-20 15:02:00 +10:00
Chris Breiding
edb4642328
chore: Use @typescript-eslint/indent instead of eslint's indent ( #19772 )
2022-01-19 13:38:16 -05:00
Paul Jaffre
c273189094
feat: add cy.mount() runner error ( #19145 )
...
* add cy.mount error if called before overriding
* added index ref & cleanup
* added mount spec
* feat: Allow Cypress.Commands.add on hover & mount (#19633 )
* add clarifying comments about special commands
Co-authored-by: Tim Griesser <tgriesser10@gmail.com >
2022-01-18 09:47:59 -06:00
Ryan Manuel
ed51bcbdda
feat: Set up cypress in cypress ( #19602 )
...
Co-authored-by: Brian Mann <brian.mann86@gmail.com >
2022-01-14 17:07:07 -06:00
Blue F
3809cd4d37
feat: cy.selectFile() ( #19332 ) ( #19524 )
2022-01-14 10:37:29 -06:00
Lachlan Miller
1305cca9f1
fix: rename specs to correctly match convention ( #19641 )
...
* fix: rename specs to correctly match convention
* Remove underscore from TESTFILES glob pattern
Co-authored-by: Zach Bloomquist <github@chary.us >
2022-01-12 07:10:14 +10:00
Kukhyeon Heo
ea531b7840
chore: remove pkg/driver //@ts-nocheck part 2 ( #19483 )
...
* listeners.ts
* chainer.ts
* command.ts
* actionability.ts
* inspect.ts
* agents.ts
* aliasing.ts
* angular.ts
* asserting.ts
* clock.ts files
* commands.ts
* debugging.ts
* fix comment.
* roll back change.
* Fix.
* fix
* Casted to cast.
* Feedback changes.
* fix any.
2022-01-11 09:37:05 -06:00
Lachlan Miller
1f28650d68
chore: change integration->e2e throughout code base ( #19345 )
...
* hacky way to update snapshots
* new hack to update snapshots
* trying again
* hacky fix
* ci: snapshots
* ci: snapshots
* snapshots
* mas updates
* update spec API
* fix test
* fix test
* update
* update test
* fix test
* update plugin
* update spec
* webpack optinos
* Update launchpad tests
* fix screenshot paths
* updated snapshot
* change pattern
* guard
* fix smoke test
* patch code coverage
* update percy config
* fix specs
* try updating example project
* update snapshots
* remove old test
* remove snapshot hack
* add back appveyor
* remove old code
* update snapshot
* Fix tests
* wip
* revert snapshot
* reverted all snaps
* remove only
* remove commnet
* remove old code
* reverted file
* lint
* revert video compression spec
* update snapshot
* update spec path logic
* update snap
* updated snap
* snaps
* snaps
* fix spec
* rename ignoreTestFiles to ignoreSpecPattern
* update screenshot dir for runner-ct
* update deprecations
* update
* upate
* fix test
* update snaps
* update snap
* updating snap
* added missing snaps
* updated cypress run mode integration spec
* electron snapshot
* update default
* rename integration->e2e
* rename integration->e2e in packages
* spec.ts -> cy.ts
* spec.ts -> cy.ts
* _spec.js -> .cy.js
* .spec.js -> .cy.js
* .spec.js -> .cy.js
* update config
* update config
* update
* update spec ext
* update config
* update config
* ensure newly scaffold specs are cached
* fix launchpad spec
* types
* update test
* transpile based on spec pattern
* add back example
* remove unnecessary async and nodeVersion
* spec.tsx -> cy.tsx
* update stop-only config
* exclude CT from E2E
* removed old test
* update spec pattern in angular
* update spec pattern in design system
* update all specs npm npm/react
* update spec name
* update spec patterns
* remove old script
* update tests path
* update config
* fix test
* update snapshots
* update examples
* update ignore patterns
* update snapshots
* unit tests
* update tests
* patch code coverage
* revert spec name
* rename a lot of speces
* update
* update spec ext
* update spec
* update spec
* update spec ext
* update lint
* update rules
* update lint
* snaps
* update spec dir
* update paths
* remove unused pluginsfile config opt
* update smoke test
* update create cypress tests
* update gitignore
* update types
* update paths
* update spe
* update test
* update all snaps
* update tests
* update http request spec
* update spec file names
* snaps
* update snaps
* updated snaps
* update snaps
* spacing
* spacing
* spacing
* spacing
* fix perf spec
* update
* update
* revert
* update
* snaps
* snaps
* rename spec
* update snaps
* snapshots
* update tests
* update tests
* update
* fix
* update test projects
* update
* updating
* update run-ct test
* update spec pattern and add defensive check around platform
* fix system test script
* update snap
* snaps
* update test
* update spe
* update for FF
* ff
* remove unused feature flag
* added tests
* fix react example
* update test
* update config
* update test projects
* update snapshots
* correctly remove private prefix on darwin
* fix types
* rename integration -> e2e
* update config
* updatec onfig
* fixing app scaffold integration tests
* remove code
* exclude e2e specs from CT
* update snapshot
* integration->e2e
* update path for test file in ts project
* update schematic
* use updated branch for CI
* update config
* update config
* revert some changes
* remove built code
* revert changes
* update gitignore
* include test spec
* update scaffold script
* wip: renames
* script
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* mass rename
* rename
* rename
* fix angular
* update spec in create cypress tests
* remove old file
* fix tests
* access specPattern in a more idiomatic fashion
* do not duplicate variable
* pass correct params to findSpec in files controller
* add comment explaining spec finding
* remove reference to old file that no longer exist
* resolve conflicts
* fix types
* transpile cypress dir
* update circle ymlg
* update spec pattern for example project
* supportFile: false
* fix circle yml
* update test glob
* rename some specs to use correct .cy ext
* more ext renames
* rename spec
* update extensions
* update extensions
* update specs
Co-authored-by: estrada9166 <estrada9166@hotmail.com >
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
2022-01-11 16:29:55 +10:00
Alejandro Estrada
0366d4fa89
feat: use supportFile by testingType ( #19364 )
...
* feat: use supportFile by testingType
* Fix defaults
* Start renaming files, and updating system-tests
* Fix some tests
* Fix some tests
* Fix more tests
* Try to fix CI
* Fix more tests
* Fix some tests
* Revert changes
* Revert supportFile defaultValue
* Fix some tests
* Fix some tests
* Fix some tests
* Fix some tests
* Update supportFile example
* Update snapshots
* Remove scaffold support
* Handle config errors
* Remove scaffold
* Fix tests
* Fix test
* Update test
* Fix test
* Update supportFile template
* Fix template
2022-01-05 13:37:44 -05:00
Lachlan Miller
792980ac12
feat: support specPattern, deprecate integrationFolder and componentFolder ( #19319 )
...
* use new specPattern API
* remove projectApi.findSpecs
* do not require integration folder
* support --spec
* support --spec
* remove old code
* remove old code
* nuke old code
* no appvetor
* update
* correct url for ct
* work on migrating launchpad
* update ct spec url
* types
* types
* dead code
* remove old endpiont
* revert back circle.yml
* update missing config
* delete spec util
* update config
* update config
* config again
* update spec pattern
* updated vue config
* update spec pattern for ui components
* update config for vite dev server
* update snapshots
* update config
* update design system config
* fix spec pattern in reporter
* update default
* update deprecated spec snapshots
* update system tests
* update run mode output
* revert changes
* lint
* remove scaffold tests
* update angular
* fix CT
* update circle yml
* fix system tests for ct
* fix tests
* work on server unit tests
* patch package
* patch package again
* update test
* try not to rely on config async loading too much
* normalize specPattern to array
* update snapshot
* use base name
* deal with react-scripts later
* update snapshot
* hacky way to update snapshots
* new hack to update snapshots
* trying again
* hacky fix
* ci: snapshots
* ci: snapshots
* snapshots
* mas updates
* update spec API
* fix test
* fix test
* update
* update test
* fix test
* update plugin
* update spec
* webpack optinos
* Update launchpad tests
* fix screenshot paths
* updated snapshot
* change pattern
* guard
* fix smoke test
* patch code coverage
* update percy config
* fix specs
* try updating example project
* update snapshots
* remove old test
* remove snapshot hack
* add back appveyor
* remove old code
* update snapshot
* Fix tests
* wip
* revert snapshot
* reverted all snaps
* remove only
* remove commnet
* remove old code
* reverted file
* lint
* revert video compression spec
* update snapshot
* update spec path logic
* update snap
* updated snap
* snaps
* snaps
* fix spec
* rename ignoreTestFiles to ignoreSpecPattern
* update screenshot dir for runner-ct
* update deprecations
* update
* upate
* fix test
* update snaps
* update snap
* updating snap
* added missing snaps
* updated cypress run mode integration spec
* electron snapshot
* ensure newly scaffold specs are cached
* fix launchpad spec
* types
* update test
* transpile based on spec pattern
* add back example
* remove unnecessary async and nodeVersion
* removed old test
* update spec pattern and add defensive check around platform
* remove unused feature flag
* added tests
* fix react example
* update test
* update config
* fix spec finding in run mode
* fix tests
* fixing specs
* fix switching between specs
* remove invalid test
* increase timeout
Co-authored-by: estrada9166 <estrada9166@hotmail.com >
2022-01-04 14:24:24 +10:00
Blue F
6d10a7faff
feat: cy.selectFile() ( #19332 )
...
* feat: cy.attachFile with passed-in contents (#18825 )
* feat: attachFile string shorthands (#19045 )
* feat: Add drag-n-drop support (#19213 )
* Remove cypress-file-upload
2021-12-22 09:03:27 -08:00
Tim Griesser
4626f7481c
feat: ProjectLifecycleManager & general launchpad cleanup ( #19347 )
...
See #19347 for full summary
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com >
Co-authored-by: estrada9166 <estrada9166@hotmail.com >
Co-authored-by: Alejandro Estrada <estrada9166@gmail.com >
Co-authored-by: Jess <jess@jessicasachs.io >
2021-12-21 21:28:44 -05:00
Lachlan Miller
999ffd99dd
merge in origin
2021-12-21 09:49:57 +10:00
Kukhyeon Heo
325094556d
fix: cy.contains() ignores <style> and <script> without removing them. ( #19424 )
...
* fix
* Merge tests.
* fix
* Apply suggestions from code review
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
* kick off build again
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
Co-authored-by: Matt Henkes <mjhenkes@gmail.com >
2021-12-20 14:34:12 -08:00
Blue F
b6c4ba144c
fix: No unnecessary snapshotting ( #19311 )
...
Co-authored-by: Brian Mann <brian.mann86@gmail.com >
2021-12-20 13:21:53 -08:00
Kukhyeon Heo
01f0261d3a
chore: Remove pkg/driver @ts-nocheck part 1 ( #19353 )
...
Co-authored-by: Matt Henkes <mjhenkes@gmail.com >
Co-authored-by: Ryan Manuel <ryanm@cypress.io >
2021-12-20 11:40:34 -05:00
Emily Rohrbough
8e23567d5b
fix(cy.intercept): allow fixtures to define null encoding when used in static response ( #19379 )
2021-12-16 16:44:01 -06:00
github-actions[bot]
ec84f660be
chore: Update Chrome (stable) to 96.0.4664.110 and Chrome (beta) to 97.0.4692.45 ( #18996 )
...
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com >
Co-authored-by: cypress-bot[bot] <2f0651858c6e38e0+cypress-bot[bot]@users.noreply.github.com>
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
Co-authored-by: Emily Rohrbough <emilyrohrbough@yahoo.com >
2021-12-15 13:56:29 -06:00
Tim Griesser
223d5fa7e6
Merge branch 'develop' into 10.0-release
...
* 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 )
2021-12-15 14:00:36 -05:00
Ryan Manuel
4a97a5244e
fix: Do not screenshot or trigger the failed event when tests are skipped ( #19331 )
2021-12-10 11:51:29 -06:00
Kukhyeon Heo
09bcc5b0ff
fix ( #19262 )
...
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
Co-authored-by: Matt Henkes <mjhenkes@gmail.com >
2021-12-10 09:17:03 -08:00
Ryan Manuel
0f0d10c04d
fix(unify): Do not screenshot or trigger the failed event when tests are skipped ( #19279 )
2021-12-10 10:20:00 -06:00
David Munechika
dd0fc9b9f7
fix: throw when writing to 'read only' properties of config ( #18896 )
...
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
2021-12-10 11:16:12 -05:00
Tim Griesser
9d975ec81e
refactor: makeLegacyContext -> getCtx ( #19308 )
...
* refactor: makeLegacyContext -> getCtx
* Fix tests & types
* fix: failing tests
* CI fixes
2021-12-09 10:56:31 +10:00
Zach Bloomquist
65cf6e899d
fix: disable automatic request retries ( #19161 )
2021-12-08 22:27:19 +00:00
Kukhyeon Heo
d18878feea
chore: refactor cy funcs ( #19080 )
...
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
Co-authored-by: David Munechika <david@cypress.io >
2021-12-08 10:36:10 -06:00
ElevateBart
ce0bb2c84b
Merge branch 'develop' into elevatebart/chore/merge-develop
2021-12-07 10:41:18 -06:00
Tyler Biethman
570f91dde3
fix: adding timeout option to writeFile command ( #19015 )
2021-12-06 15:31:25 -06:00
David Munechika
11e99fc35a
chore: fix flaky tests (net stubbing, websocket, proxy logging, Firefox system tests) ( #19159 )
2021-12-03 16:35:04 +00:00
Kukhyeon Heo
f85c736d3e
fix: text events propagate out of shadow root. ( #19132 )
2021-12-02 14:36:26 -05:00
Hugo Hache
4630ef49d8
fix: set the context when overwriting .clock command ( #19158 )
...
Co-authored-by: Ryan Manuel <ryanm@cypress.io >
Co-authored-by: Ryan Manuel <rfmanuel@gmail.com >
2021-12-02 17:22:10 +00:00
David Munechika
28b992fbcd
fix: Cannot add commands with "reserved" names ( #18923 )
...
* throw for reserved commands
* restore non-reserved commands
* refactor reserved commands object
* add cy properties
* use object lookup
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com >
* alphabetize command names
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com >
2021-12-02 08:50:18 -06:00
Kukhyeon Heo
d16a8eed71
fix: the shadow root container element is ignored when clicking an element in it. ( #18908 )
2021-11-29 12:51:43 +10:00
Matt Henkes
9a83eb32ce
'Fix' flaky redirect test ( #19042 )
2021-11-29 12:51:39 +10:00
Blue F
25e525d186
fix: Allow 'this' to be used in overridden commands ( #18899 )
2021-11-29 12:48:28 +10:00
Emily Rohrbough
6e8296ec7c
fix: test config overrides leak for .only execution ( #18961 )
2021-11-29 12:42:51 +10:00
David Munechika
e2e7618885
feat: Set CYPRESS=true as env var in child processes where Cypress runs user code in Node ( #18981 )
2021-11-29 12:40:27 +10: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
Kukhyeon Heo
8c9b2824a8
fix: the shadow root container element is ignored when clicking an element in it. ( #18908 )
2021-11-23 11:40:58 -05:00
Matt Henkes
2b4916f032
'Fix' flaky redirect test ( #19042 )
2021-11-23 08:16:20 -08:00
Blue F
5dc6c88ed5
fix: Allow 'this' to be used in overridden commands ( #18899 )
2021-11-22 12:33:11 -08:00
Emily Rohrbough
b7002bfd52
fix: test config overrides leak for .only execution ( #18961 )
2021-11-22 10:10:13 -05:00
David Munechika
de4fca351b
feat: Set CYPRESS=true as env var in child processes where Cypress runs user code in Node ( #18981 )
2021-11-22 08:39:42 -06: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
Kukhyeon Heo
002fbdda60
fix: show call count even if cy.stub().log(false). ( #18907 )
...
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com >
2021-11-19 10:03:22 -05:00