Commit Graph

268 Commits

Author SHA1 Message Date
Gleb Bahmutov
71429e620e Fix TypeScript Omit definition (#3031)
* test built binary and NPM against kitchensink

* try building cypress/browsers:chrome67

* implement Omit using Exclude

* bump down to chrome64

* remove this branch from building binary
2019-01-02 15:09:18 -05:00
renovate[bot]
bc0daf838b chore(deps): update dtslint to 0.4.2 🌟 (#3041) 2019-01-02 14:37:03 -05:00
Thomas Rich
852176f468 https://github.com/cypress-io/cypress/issues/2975 (#2976)
Connects https://github.com/cypress-io/cypress/issues/2975
2018-12-26 23:19:13 +06:30
Gleb Bahmutov
ee659b3d2b fix: set object for qs property in cy.request types, close #2305 (#2306)
* fix: set object for qs property in cy.request types, close #2305

* server whitelist callback takes request, returns boolean
2018-12-25 23:02:49 -08:00
Ben Kucera
0ffa701bdb update cypress install message (#2755)
fix #2754
2018-12-25 23:00:17 -08:00
Lukas Werfel
c852fa9255 Update lodash to 4.17.11 (#2984)
closes #2929
2018-12-25 22:57:41 -08:00
Gleb Bahmutov
d3193d5ec0 Revert "Revert "fix: upgrade sinon types to min TS 2.8 (#2966)"" (#2974)
* Revert "Revert "fix: upgrade sinon types to min TS 2.8 (#2966)""

This reverts commit cc3de8ff78.

* enable dtslint in cli again
2018-12-20 13:10:21 -05:00
Brian Mann
cc3de8ff78 Revert "fix: upgrade sinon types to min TS 2.8 (#2966)"
This reverts commit 203622080e.
2018-12-19 23:51:54 -05:00
Brian Mann
748fa8c533 disable dtslint again 2018-12-19 20:43:27 -05:00
Gleb Bahmutov
203622080e fix: upgrade sinon types to min TS 2.8 (#2966) 2018-12-19 18:33:38 -05:00
Brian Mann
96de675910 convert driver utils from CS to JS (#2950)
fixes #2949
2018-12-17 07:37:49 -05:00
Jeremy Tymes
c0ce2c460b Allow separate request and response timeout overrides in cy.wait (#2829)
* Allow overriding the request and response timeouts for XHR.

* Add interface to the XHR wait overloads to take in the request and response timeouts.
2018-12-02 22:49:48 -05:00
Paul Sachs
ca1139a092 Update types to support promises in wrap (#2807) 2018-12-02 21:04:42 -05:00
Ben Kucera
d57ca55749 fix windowsHide prop (#2853)
* Revert "Issue 21316 windows node11 (#2699) (fixes #2667)"

This reverts commit 54ce93b985.

* add windowsHide prop

* fix test name
2018-12-02 21:03:52 -05:00
Pete Johanson
7640eeb8b6 Add strong typed definition for Cypress.moment(). (#2746) 2018-11-15 09:50:11 -05:00
Zoltan Erdos
54ce93b985 Issue 21316 windows node11 (#2699) (fixes #2667)
* release 1.0.3 [skip ci]

* release 2.0.0 [skip ci]

* Add a comment to Issue Template directing questions to be asked in chat. [skip ci]

* release 3.1.0 [skip ci]

* add fix for windows + node11

* add getNode11WindowsFix to the utils

* formatting

* do not convert to the windowsHide to string

* add unit tests

* add unit tests

* add unit tests

* Revert "formatting"

This reverts commit 9ecd31ba8e.

* don't ask to commit package.json version

* release 3.1.1 [skip ci]

* move isPlatform into cli/util

* fix version comparison

* revert accidental merge from master
2018-11-13 12:57:40 -05:00
Luke Watts
a22907a505 fix: bump progress to 2.0.1 (#2733)
* fix: bump progress to 2.0.1

* remove progress entirely
2018-11-08 14:54:32 -05:00
Brian Mann
b318eafdfc fix linting and typescript errors in launcher 2018-11-01 15:56:43 -04:00
Brian Mann
2333d04a54 secure cookie error crash (#2685)
- fixes #1264 
- fixes #1321 
- fixes #1799  
- fixes #2689
- fixes #2688
- fixes #2687 	
- fixes #2686
2018-11-01 12:34:37 -04:00
Mathias Geat
b6519258d2 Introduce CYPRESS_DOWNLOAD_BASE_URL to specify a base download url (#2609)
* Introduce CYPRESS_DOWNLOAD_BASE_URL to specify a base download url instead of download.cypress.io

* rename to CYPRESS_DOWNLOAD_MIRROR

* update spec_helper
2018-11-01 10:33:48 -04:00
Gleb Bahmutov
30556480c7 add missing screenshot options type and a few type tests (#2655) 2018-10-25 12:37:56 +02:00
Rainer Oviir
dd2ba58336 add colors for URLs in the CLI (#2493) (#2530)
This addresses #2493.

I added the chalk.blue color to all the urls in the CLI
2018-10-24 11:28:29 -04:00
Chris Breiding
2a8478fc36 add dependency check pre-condition to all packages (#2580) 2018-10-15 16:42:32 -04:00
Noel Yoo
999c217751 Refactor buffer constructor (#2489) 2018-10-01 10:25:40 -04:00
Jennifer Shehane
3b804cd09c bump @types/jquery (#2369)
* bump @types/jquery
* update expected Cypress.$ type
2018-08-28 11:52:05 -04:00
Amir Rustamzadeh
f313dd0b84 iterate through specs in parallel (#2154)
- fixes: #2153
- fixes: #1566
- fixes: #1690
- fixes: #2275
- fixes: #2276
2018-08-06 07:24:19 -04:00
Jennifer Shehane
ce3ab55f72 bump dep mocha-junit-reporter from ^1.13.0 to 1.17.0 (#2224)
- address #2221
- fixes #1357
- fixes #1348

- [x] update test to test `testCaseSwitchClassnameAndName` reporter option  https://github.com/cypress-io/cypress/blob/issue-2221/packages/server/test/e2e/reporters_spec.coffee#L38
2018-07-30 01:23:06 -04:00
Gleb Bahmutov
a5f2a0f338 schema: update videoCompression to allow boolean, close #2140 (#2142) 2018-07-23 06:12:04 -04:00
Gleb Bahmutov
ca20e74486 fix dtslint file name rule (#2192) 2018-07-23 11:32:37 +02:00
Gleb Bahmutov
7a2c21144f add missing TypeScript jsdocs for types for issue 2009 (#2137)
* doc second cy.find type

* document type for cy.request

* document Cypress.env command

* doc type for Cypress.log

* doc types for uncheck

* add type docs for cy.spy

* document spies and stubs types

* add space to align jsdoc stars

* types: show to correctly pass request options, close #2093

* cast just the http method property

* types for spy withArgs and as

* doc more types for overrides

* type for spread

* type for overriden then

* types for cy.trigger overrides

* rest of types of overriden methods, close #2009
2018-07-12 18:42:50 -04:00
Jennifer Shehane
c5af554dca bump deps for security warnings (#2067)
- removes security warning during npm audit
- close #1701
2018-06-30 04:48:03 -04:00
Ben Kucera
ddec7db17a fix error typo (#2057) 2018-06-28 11:08:44 -04:00
Gleb Bahmutov
ee3eb4a2dd add cy.stub type for window alert and confirm (#2008)
* add cy.stub type for window alert and confirm

* jsdoc for cy.contains

* add jsdoc for viewport width and height

* jsdoc for prev command

* add jsdoc for cy.wait

* add jsdoc for clearLocalStorage

* jsdoc for wrap

* add jsdoc for screenshot with filename

* add jsdoc for clock

* add jsdoc example to cy.its

* complete jsdoc for siblings

* jsdoc for route overrides
2018-06-25 16:42:51 -07:00
Brian Mann
df0ec8ea8c catch EPIPE errors (#2011)
fixes #1841
2018-06-21 18:29:27 -04:00
Ben Kucera
f90bfbec90 update ci error msg (#1928) 2018-06-20 00:14:15 -04:00
Ben Kucera
db4a4a6d22 Improve Error logging around Cypress verify (#1986)
close #1984 improve error logging for `cypress verify`
close #1985 remove "skipping install" message to local users, keep in CI
2018-06-19 21:52:25 -04:00
Ben Kucera
5a4b2a4a0a allow relative paths in CYPRESS_* env vars (#1989) 2018-06-19 17:34:51 -04:00
Brian Mann
abfb594872 add browser.isHeadless + browser.isHeaded (#1975)
* add isHeadless + isHeaded to browser

- move around logic so that instead of launching a browser by name, its
passed the entire browser object
- simplify logic for passing around options.headed

* launch the browser with an object, not browser name

* update browser types

* fix failing tests
2018-06-18 03:15:19 -04:00
Chris Breiding
0e2246785c Screenshot fixes/enhancements (#1858)
* create directory path from screenshot name

* fix screenshot e2e specs

* ensure unique file paths for non-named screenshots

* append failure screenshots with ‘— failure’

* fix snapshot differences caused by slow computer

* fix driver specs

* fix minutes/seconds e2e snapshot replacer

* fix minutes/seconds e2e snapshot replacer again

* fix e2e specs failing due to screenshot path differences

* more snapshot fixes

* more snapshot fixes

* more snapshot fixes

* fix reporter showing wrong path for nested spec when no tests

* nest non-named screenshots in path based on spec path

* fix specs

* fix snapshot

* test that server + project state is reset between specs in cypress run mode

* rename spec.path to spec.relative. pass around the spec object instead of a string path

- store state on the project for current spec + browsers
- simplify how desktop gui passes around spec object
- fixes #1921
- make all specs a real spec model
- rename ‘Run all tests’ to ‘Run all specs’

* remove pretty-error dependency

* fixes #1919 and #1918, add Cypress.spec and Cypress.browser

* fixes all the failing tests

* fixes failing tests

* types: Cypress.spec

* add types for Cypress.browser

* fixes more failing tests

* enable null for spec props when running "All Specs"

* read comments per PR

https://github.com/cypress-io/cypress/pull/1858#issuecomment-396121876

* fixes failing tests

* fix linting

* fix types assertion

* fixes failing tests

* fixes failing tests, update from -- failed to (failed)

* ugh regexp

* fixes more tests

* add name, specName, and testFailure to the afterScreenshot props

* fix failing tests. append (failed) for failed screenshots

- use { testFailure: true } to indicate a failing test screenshot for
use in props
2018-06-17 20:01:27 -04:00
Jennifer Shehane
453313fe92 bump cachedir to 1.3.0 (#1947) 2018-06-14 23:52:39 -04:00
Josh Pike
40c3a6b104 Updated request in CLI package.json (#1916) 2018-06-09 16:23:17 -04:00
Gleb Bahmutov
360b58b27d Ts server yields 1907 (#1911)
* types: cy.server yields default server options, close #1907

* add examples to a few TS commands
2018-06-08 11:47:24 -04:00
Gleb Bahmutov
3241c6e229 types for auth in cy.visit, close #1897 (#1908) 2018-06-08 10:11:36 -04:00
Gleb Bahmutov
ff58367838 Ts definition for clear local storage 1899 (#1903)
* types: clearLocalStorage yields localStorage, close #1899

* types: minimatch is a function, close #1902
2018-06-07 20:10:45 -04:00
Ben Kucera
56e00981aa cache commands, --no-exit (#1875)
* add --no-exit, cache commands

* Manage -> Manages

* fix run, run spec

* remove comments
2018-06-05 16:19:23 -04:00
Gleb Bahmutov
39b31fd771 Route typescript fix 1831 (#1874)
* types: add object to routes, close #1831

* types: remove Response type from cy.route, it belongs only in cy.request

* add example to cy.route doc

* types: add PATCH method, same as pull request #1778
2018-06-05 15:33:24 -04:00
Kevin Heard
5330ccd476 fix typo in comments (#1791) 2018-06-05 15:20:59 -04:00
Ben Kucera
ca9cb8f10b env vars from configs, respect loglevel from npm (#1855) 2018-06-05 15:14:51 -04:00
Job
a4fa1b32f7 fix cli: global binary cache reuse (#1819)
closes #1813
2018-05-30 08:42:42 -04:00
Brian Mann
d92d51a8eb rename videoRecording -> video (#1804) 2018-05-29 17:23:01 -04:00