Commit Graph

707 Commits

Author SHA1 Message Date
Michael Luo
74ada1157c fix: add yarn v2 pnp support to default webpack processor (#17335) 2021-07-21 20:06:28 +00:00
Ben Kucera
8a4848837a fix(breaking_change): default to headless and 1280x720 for cypress run in all browsers (#17309)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-07-19 11:18:52 -05:00
Zach Bloomquist
deee831eb1 feat: error/warn on unsupported browser versions (#17355) 2021-07-19 13:28:17 +00:00
Jennifer Shehane
263c7fc395 Merge branch 'develop' into 8.0-release 2021-07-15 14:47:53 -05:00
Lachlan Miller
b945b8197e chore(server): reduce coupling between methods to instantiate a project (#17200)
* wip

* wip: use async/await

* slowly refactor

* slowly refactor

* use typescript

* use async/await

* update spec

* do not use tap because bluebird sucks

* refactor

* update

* remove bluebird

* update

* remove then

* change to async/await to make it easier to reason about

* remove more bluebird

* no more bluebird

* remov ts ignore

* do not tap

* refactor

* simplify cfg

* move static methods to separate file

* update snapshot

* comment out test

* simplifying options merging

* update tests

* change order of options

* move code out of project-base

* update tests

* update tests

* type reporter

* simplify onWatchSettings function

* sep starting websockets and watching settings. reduce need to pass large cfg object

* move util functions out of project class

* move tests to new file

* update test

* move code around

* update tests

* remove need to pass options to getConfig

* fix tests

* separate get and init config

* set browser warnings in initializeConfig

* move Ct specific concerns to same function

* do not pass config to initializeSpecStore

* remove onOpen function

* improve types

* update typing errors

* update types

* types

* fix types

* update tests

* update tests

* fix tests

* update tests

* comment back in test

* update methods

* update types

* add defensive code against config.clientRoute

* do not use async

* update tests

* use same baseUrl for proxy regardless

* remove comment

* revert change to baseUrl
2021-07-13 11:32:59 +10:00
Barthélémy Ledoux
16a4d912d3 fix: make Cypress.ConfigOptions follow json Schema (#17251) 2021-07-12 22:59:04 +00:00
GCHQDeveloper911
297599071c feat: Changes for PKI support - #2694 (#15179)
Co-authored-by: GCHQDeveloper911 <GCHQDeveloper911@users.noreply.github.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-07-12 21:09:55 +00:00
Zach Bloomquist
60e1201a43 Merge branch 'develop' into 8.0-release 2021-07-12 10:27:22 -04:00
mrmeku
cf689dd609 feat: Support running cypress as node process (#16505) (#16537)
Co-authored-by: Ben Alman <cowboy@rj3.net>
2021-07-09 09:38:28 -05:00
Jennifer Shehane
63236d307a fix: Update error to not indicate this 'usually' is due to deps (#17112) 2021-07-06 10:15:21 -05:00
Jennifer Shehane
7f1644668d fix(types): Add includeShadowDom as valid option for .contains() (#17080)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-06-24 10:13:29 -05:00
Jennifer Shehane
4c864e3c8e fix: better handle unconventional browser version (#16990) 2021-06-23 08:40:55 -05:00
Zach Panzarino
da3e49bf59 feat: updated scaffolding, new project & user banners, ability to remove scaffolding (#15826)
* update example build scripts

* remove old scaffolding relics

* update

* Fix some issues with scaffolding

* Correctly fix issues with scaffolding

* Replace old onboarding with new banner

* Add ability to remove scaffolded files

* Add banner for new users

* Update tests for new scaffolding

* Compare file sizes before removing

* Add tests for remove file

* Save when user opened cypress rather than boolean

* Update intro link and add tets for banners

* fix small issue

* Update design and copy of onboarding banners

* Update style of new spec file button

* Improve outline button active statE

* Update design of new project a bit more

* Fix specs list tests

* Update banner copy and layout

* Update banner copy and layout

* Switch to docs style alerts

* Fix testing logic

* Update banner styles a bit

* Update banners

* Add confirmation modal for delete specs

* Update tests and fix states

* Upgrade kitchensink dep

* Upgrade kitchen sink version and fix unit tests

* Update integration scaffolding test

* Add further description to warning modal

* Update test for new user and new project case

* Remove check to file tree when removing files

* Update kitchensink version

* Fix edge case where banner could appear when no files have been scaffolded

* Fix tests

* Update styling for 'note' when deleting files

* fix issue with path on windows

* Change remove command

* Fix rm dir

* Fix for windows

* Try to use appveyor to test

* appveyor please

* getting some feedback

* Why doesn't this work

* more info

* I have a feeling this works

* maybe its the other path

* please

* this is the one

* this is it

* this should work

* try reverting that change that might not be needed

* remove appveyor testing scaffolding

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-06-22 10:59:47 -05:00
Dan Kirkham
ce5abe48c0 feat: Add keystrokeDelay (#15683)
* Add keystrokeDelay

* Config tests

* Add proper comments

* Add some tests for configuring timeout

* Add tests for false values

* Few additional tests

* Rename test

* feat: add Cypress.Keyboard.defaults() for specifying default keystrokeDelay

* use test-configuration on link

* remove obsolete error message

* fix types and add type tests

* fix types tests

* fix type test

Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
2021-06-16 14:33:06 -05:00
Jennifer Shehane
9c5ba8e7d6 fix(cli): Include enquirer as dependency (#16925) 2021-06-15 10:09:09 -05:00
Nikolai Røed Kristiansen
2938df6411 chore: Remove @cypress/listr-verbose-renderer (#16858)
Vendored in #16855
2021-06-09 08:36:50 -05:00
Nikolai Røed Kristiansen
39e1786211 chore: Vendor @cypress/listr-verbose-renderer (#16855) 2021-06-08 14:08:14 -05:00
Kukhyeon Heo
ac4f790d3e fix(types): when user returns any type, then doesn't wrap it with JQuery. (#16756) 2021-06-07 16:01:58 -05:00
Kukhyeon Heo
31bd0e937f fix(types): should() cannot be used with values. (#16744)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-06-02 14:42:23 -04:00
Kukhyeon Heo
49990480bd feat(types): can specify the ResponseBody type of cy.request (#16743) 2021-06-02 09:27:15 -05:00
Kukhyeon Heo
06be00fee4 fix(types): add testingType definition (#16745) 2021-06-01 10:16:24 -05:00
Braden Mars
315d845432 fix: Migrate from listr to listr2 (#16663) 2021-06-01 10:26:03 -04:00
Kukhyeon Heo
8e0e3c1b50 chore: update extract-zip to 2.0.1 (#16544) 2021-05-17 20:11:05 +00:00
Jennifer Shehane
a19009afee chore: Update package.json/readmes for npm packages to better find changelog (#16482) 2021-05-13 08:53:25 -05:00
Minijus L
6bc7e7da0f fix: use 'ca' and 'cafile' npm config options for binary download (#8877)
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-05-10 22:14:54 +00:00
Adam Gastineau
b8527a2a7f feat(component-testing): Expose CT through CLI module API (#16368)
* Added testingType CLI module option

* Removed isComponentTesting custom arg and replaced with testingType

* Added default value to docstring

* Removed mutating of args

* Added Module API manual testing docs
2021-05-07 12:44:15 -04:00
Jonas Amundsen
d4e48858fb fix: cy.then shows wrong type when collection of HTMLElement's is provided (#15869) 2021-04-22 13:22:09 -05:00
Adam Gastineau
ee8b918ea8 feat(component-testing): breaking: Add React rerender functionality (#16038) 2021-04-20 08:35:24 -07:00
Benjamin Santalucia
3ed241d67b fix: return type of Cookies.default (#15550)
Co-authored-by: Zach Bloomquist <github@chary.us>
2021-04-14 14:49:45 +00:00
Zach Panzarino
98f48ab99c fix: add types for selector playground (#15834) 2021-04-13 16:05:44 -04:00
Chris Breiding
b53f04e4f7 feat: Fire run events in interactive mode (#15787) 2021-04-12 14:43:19 -04:00
Zach Bloomquist
51005b4ffa chore: add docsUrl to intercept, task errors (#15711) 2021-04-02 17:47:09 +00:00
Jessica Sachs
8d0829fb26 feat: adding electron support for cypress component testing (#15731) 2021-04-01 18:15:20 -04:00
Jessica Sachs
e657481ff2 Merge branch 'develop' into 7.0-release 2021-03-31 18:00:24 -04:00
Barthélémy Ledoux
651df1b2ad feat: make cypress schema for component & e2e keys (#15720) 2021-03-31 15:30:49 +00:00
Lachlan Miller
906b48bc69 make open-ct and run-ct public 2021-03-30 16:39:49 +10:00
Adam Gastineau
fa780634ca Removed experimentalComponentTesting flag 2021-03-29 10:47:52 -07:00
Chris Breiding
a7f2272af9 Merge branch 'develop' into 7.0-release 2021-03-29 13:12:16 -04:00
Kukhyeon Heo
03c8da01fa fix: cy.then shows wrong type when raw HTMLElement is provided. (#15624)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-03-29 11:23:09 -04:00
Zach Bloomquist
491e6e2286 Merge branch 'develop' into 7.0-release 2021-03-26 16:15:31 +00:00
Dmitriy Kovalenko
b1f831a86a fix(@cypress/react): Devtools unpredictable resets (#15612)
* fix: Devtools unpredictable resets

* Remove cleaning up from webpack-dev-server

* Fix lint errors

* Get back observer

* fix: bring back cleanup (#15634)

* fix: wait for fw teardown to do html teardown

* fix: port responsibility of teardown to frameworks

* chore: add comments

* fix: typings

* fix: react unmount cannot be called in the right hook

* run dtslint

Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
2021-03-25 10:43:34 +10:00
Zach Bloomquist
16e1577848 Merge remote-tracking branch 'origin/develop' into 7.0-release 2021-03-24 16:27:56 -07:00
Kukhyeon Heo
a24d782384 fix: add the type definition for cy.writeFile with 4 arguments. (#15602)
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
2021-03-22 15:43:36 -04:00
Lachlan Miller
43c8ae2a7c feat: support ct/e2e specific overrides in cypress.json (#15526)
Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>
2021-03-21 23:28:59 -04:00
Saturnino Abril
35be2aea2a feat: Add user's log option to cy.tick (#15586)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-03-20 15:05:29 -04:00
Kukhyeon Heo
6ce0c83b17 fix: Response.headers type. (#15419) 2021-03-16 21:11:21 +00:00
Chris Breiding
237c426707 fix: Revert cypress.json changes (#15499) 2021-03-15 18:01:06 -04:00
Lachlan Miller
a94c9d5ef0 feat: support ct/e2e specific overrides in cypress.json (#15444)
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
2021-03-13 03:47:49 -05:00
renovate[bot]
b52ac98a69 feat(deps): update dependency electron to version 12.x 🌟 (#15292)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zach Bloomquist <git@chary.us>
2021-03-10 15:24:00 +00:00
Chris Breiding
4f63851029 Merge branch 'develop' into 7.0-release 2021-03-03 10:54:36 -05:00