Commit Graph

11454 Commits

Author SHA1 Message Date
Jennifer Shehane ac76d3d8ae Fix incorrect formatting of 'overrides' arg in .eslintrc (#2933)
- overrides should be array of objects
- trailing comma is invalid
2018-12-20 16:22:17 +06:30
Brian Mann d0ff0d1547 bump cli cache dep versions in circle 2018-12-20 00:49:03 -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 4dcc7381d0 fix issues around aborted xhrs (#2969)
- fixes #761 
- fixes #1652 
- fixes #2968
2018-12-19 18:33:06 -05:00
Chris Breiding 934ab9901b Fix Windows path stripping (#2937)
Closes #2936
2018-12-17 08:37:11 -05:00
Gleb Bahmutov 46a69a92d9 Upgrade commit info dependency to fall back on environment variables to get Git commit (#2895)
* chore: upgrade commit-info to 2.1.1 in server, close #2848

* chore: using mocked-env to test CI params

* update more CI env tests

* update last CI tests to use mocked-env

* test git commit info from environment variables

* do not crash on undefined when running npm t

* remove duplicate object key to pass linter
2018-12-17 07:39:55 -05:00
Brian Mann 96de675910 convert driver utils from CS to JS (#2950)
fixes #2949
2018-12-17 07:37:49 -05:00
Brian Mann 78ca4582a5 move test into appropriate driver file
- this avoids needing to run an entire new spec file with a single test
in it
2018-12-17 05:51:53 -05:00
Gleb Bahmutov 6cdaa5b4ef No dev deps in windows binary 2896 (#2904)
* build: print prod and dev dependencies in packages/server

* use npm v6 on Windows

* use only=production npm install flag

* use latest version of Node on AppVeyor

* add env with NODE_ENV=production

* pretty ms for npm install

* fix retry

* remove devDependencies from each file

* test binary build logic on Circle

* do not even run unit tests on circle

* form package json path

* cannot mapSeries twice

* pass package folder name

* fixed missing json to save

* uncomment circle tests

* update some comments, remove branches
2018-12-17 00:10:54 -05:00
Andrew Salib 7605f3a96e Fix bailIfRecursive callback invocation (#2924)
* Fix bailIfRecursive callback invocation

`fn.apply` shouldn't be called with `arguments` and no prior `this` value as this results in `arguments` being assigned as `this` for the function on which `.apply` is called...

* add test for xhr.onreadystatechange event argument
2018-12-11 10:52:29 -05:00
Brian Mann a09f14c677 release 3.1.3 [skip ci] 2018-12-06 12:27:30 -05:00
Jennifer Shehane d9e3d879a4 Clean up issue templates - make them less intimidating to start [skip ci] 2018-12-05 13:34:47 +06:30
Chris Breiding e9277a69b6 upgrade deps to remove event-stream or fix at safe version (#2893) 2018-12-04 10:13:08 -05:00
Brian Mann 2f97cb3604 fix _global.setTimeout being undefined when restoring the clock (#2875)
fixes #2850 

this fixes an edge case where the application under test changed the
clock at a later time and when we restored the clock, the global
function became undefined due to deleting the property off of window
2018-12-03 02:55:32 -05:00
Brian Mann e7b8683613 pass the requestAnimationFrame timestamp parameter into the callback function (#2874)
fixes #2725
2018-12-03 01:50:13 -05:00
Brian Mann 95dce9d882 expose all jquery methods and values onto Cypress.$ (#2873)
fixes #2830
2018-12-02 23:46:06 -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
Jared Bates 742e0d3bba Update nodemon to remove malware (#2864) 2018-12-02 12:26:22 -05:00
Brian Mann 6f9b47249e convert regular array of elements to jquery (#2870)
- fixes #2820 
- this fixes a situation where arrays of elements were not being
converted to their pre 3.1.2 behavior (which is to become jquery
instances)
- made notes of the anticipated behavior in 4.0
2018-12-02 12:24:17 -05:00
Brian Mann 55cc09873f update notes [skip ci] 2018-12-01 20:09:27 -05:00
Brian Mann b36f9c7e82 release 3.1.2 [skip ci] 2018-12-01 20:09:27 -05:00
Lila Conlee 1d51376143 Remove visibility error for noops in check (#2813)
* Remove visibility error for noops in check

* Revert "Remove visibility error for noops in check"

This reverts commit 870ff80d4f.

* Only ensure visibility if not forced
2018-11-27 12:29:00 -05:00
Arend-Jan Tetteroo bb2e3a9c2e Update request lib for security vulnerability in extend (#2846)
extend has a security vulnerabitlity and is used by request < 2.88
https://hackerone.com/reports/381185

https://github.com/cypress-io/cypress/pull/2485 failed testing as it bumps to a major version. 
This is just a minor version so it should not break things.
2018-11-27 22:43:12 +06:30
Lila Conlee 24e9315e38 Add clear support for HTML 5 input types (#2793)
- Fixes #2738 

Think directly setting this value might overstep something that's happening in type, but not entirely sure.
2018-11-20 12:17:07 -05:00
Lila Conlee 599785fe6a Add quotes around strings in invoking child without parent error (#2713)
- Fixes #2684
2018-11-20 11:52:03 -05:00
Brian Mann e31b356519 ensure aborted requests are propagated forward (#2802)
- this prevents situations where long running connections build up over
time
2018-11-19 04:52:22 -05:00
Brian Mann ad26755298 prevent cross origin errors (#2787)
* synchronize lodash versions

* start driver test server on 3500 + 3501 the same way

* fixes #2784, short circuit checks to discover the DOM type when comparing value and subject

-this prevents a situation where we accidentally iterate through a
cross origin <window> object and cause cross origin issues

* fix functions not being invoked with value

* skip bad jira test derp
2018-11-15 23:46:39 -05:00
Pete Johanson 7640eeb8b6 Add strong typed definition for Cypress.moment(). (#2746) 2018-11-15 09:50:11 -05:00
Brian Mann d4845d8bcb do not set url on invalid cookies (#2788)
fixes #2724
2018-11-15 09:49:53 -05:00
Lila Conlee aee8917267 Update charCode, which, and keyCode in key events (#2774)
* Update charCode, which, and keyCode in key events

* Fix failing type tests
2018-11-14 20:26:27 -05:00
Brian Mann e17fc3d846 release 3.1.1 [skip ci] 2018-11-14 20:01:32 -05:00
Brian Mann 9edc8b921c don't ask to commit package.json version 2018-11-14 20:01:32 -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
Lila Conlee 18af4fe5b7 Allow setTimeout to be called with undefined (#2753)
* Allow setTimeout to be called with undefined

* Eval all non-function codes in setTimeout

* Update test

* Another test fix
2018-11-13 11:58:44 -05:00
Lila Conlee 6bb8250532 Fully delete screenshot/video directories on linux instead of trashing them (#2745) 2018-11-09 11:14:37 -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
Chris Breiding 907bd772e9 Add warnings/errors for recording limits (#2397)
Closes #1689 

The error/warning messages need work and the properties used (daysLeft, limit, etc) need to be aligned with the API once implemented.
2018-11-06 15:40:02 -05:00
Jennifer Shehane 25bdc955cd return false if not cookie.name instead of the cookie, which would return true (#2709)
fix error when cookie.name is undefined
2018-11-01 18:47:22 -04:00
Brian Mann 23eca07c3c fixes more tsc fun 2018-11-01 16:10:27 -04:00
Brian Mann b318eafdfc fix linting and typescript errors in launcher 2018-11-01 15:56:43 -04:00
Brian Mann 8d12c8d2b1 rewrite frameElement (#2583)
- fixes #2582
2018-11-01 13:38:27 -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
richdouglasevans 759715f8f4 Visually highlight the focused spec when navigating via the keyboard (#2273)
When navigating through the specs using the `{tab}` key there was no visual feedback about which spec was currently focused. With this change you get the same visual feedback as you do when hovering over a spec with the mouse.
2018-10-31 16:40:21 -04:00
Lila Conlee 5da5bd2ba5 Truncate file names for screenshots (#2635)
* Truncate file names for screenshots

* Update screenshot filename truncation

* Update unit tests

* Change character limit to 238 chars

* Update snapshot

* Shorten max filename length

* Update max filename length

* Update max filename length one last time
2018-10-31 16:38:40 -04:00
rezaxdi 6087111143 fix: writeFile returns string instead JSON (#2373)
* Returning obj instead of text

If input of writeFile is an object, it should return an object after successful write instead of a string.

* Testing returned JSON of writeFile
2018-10-31 16:16:58 -04:00