Commit Graph

254 Commits

Author SHA1 Message Date
Lachlan Miller ec4748ca2d return all specs from findSpecs, improve types 2021-09-16 16:32:34 +10:00
Lachlan Miller 5955544fc0 chore(server): share common routes (#18055) 2021-09-13 09:09:56 -04:00
Barthélémy Ledoux 2c298fcc58 Merge branch 'develop' into da4b1e06ce-master-into-develop 2021-09-09 16:19:10 -05:00
Barthélémy Ledoux da4b1e06ce feat: allow usage of @react/plugins with cypress.config.js (#17738) 2021-09-09 16:17:14 -05:00
Cesar 790e7b2bdb fix: add missing clientCertificate type to ResolvedConfigOptions (#18028)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-09-09 14:01:49 -04:00
Kukhyeon Heo 94c028db81 feat: add decode option to cy.url (#17930) 2021-08-31 11:37:49 -04:00
kotmatpockuh 2a80c137d9 fix(types): Update title method options type (#17781)
Add Timeoutable option to `title` method
2021-08-23 10:36:06 -04:00
Jordan McDonough 6a0d9e43d7 fix: Add Timeoutable to cy.document function typing (#17706)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2021-08-17 16:40:56 -04:00
Ben Kucera 6f32561d6f feat: add session support (#14350) 2021-08-04 10:23:45 -04:00
Zach Bloomquist 2454c19afb feat: proxy logging (#16730)
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2021-08-02 21:10:19 +00:00
Ben Kucera 70e9c0f9cb feat: add Cypress.currentTest (#16652)
Co-authored-by: Zach Bloomquist <github@chary.us>
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
2021-08-02 15:05:23 -05:00
Zach Bloomquist a5305de5e4 fix(types): update cy.shadow docs url (#17506) 2021-07-29 09:12:13 -05:00
Lachlan Miller 257ff95dcb chore: change ct -> component, projectType -> testingType everywhere for consistency (#17461)
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
2021-07-26 11:11:56 -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
Zach Bloomquist 60e1201a43 Merge branch 'develop' into 8.0-release 2021-07-12 10:27:22 -04: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
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
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 e657481ff2 Merge branch 'develop' into 7.0-release 2021-03-31 18:00:24 -04: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
Chris Breiding 4f63851029 Merge branch 'develop' into 7.0-release 2021-03-03 10:54:36 -05:00
Chris Breiding 59c2c03895 feat: Remove experimentalRunEvents flag (#15276) 2021-03-02 10:07:02 -05:00
Chris Breiding 77b922472c fix: Improve uncaught error handling (#14826)
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2021-03-01 09:23:14 -05:00
Jennifer Shehane da5ca7f21f Merge branch 'develop' into 7.0-release 2021-02-23 20:06:29 -05:00