Commit Graph

11835 Commits

Author SHA1 Message Date
Gleb Bahmutov
ebb8afdff4 logger warn from CLI should strip all indent from nested message (#4188) 2019-05-13 18:27:26 -04:00
Gleb Bahmutov
b21918921b move close too quick check into CLI (#4186) 2019-05-13 17:08:33 -04:00
Gleb Bahmutov
d25cfacc6f Automatically retry verify and run commands on Linux if suspect DISPLAY problem (#4165)
* cli: debug explanation for XVFB

* linting

* add chai-as-promised to CLI dev

* show Linux specific error solution if cannot verify

* add todo

* chore: consolidate github issue url logic

* linting

* add npm script lint-changed to quickly eslint fix changes JS files

* retry verify with our XVFB

* update errors and tests

* update CLI tests

* add test for display error message

* fix unit test

* add successful test with retry

* finish verify retry test

* warn users if hit display problem on first verify

* try to detect display problem when running electron and retry with our xvfb

* add warning message to spawn when attempting xvfb re-run

* add test for display retry behavior on spawn

* more comments for clarity

* fix typo
2019-05-13 15:19:53 -04:00
Zach Bloomquist
1b1c2f24bd Add typedefs for Cypress.LocalStorage.clear (#4168)
* add typedefs for LocalStorage.clear

* clean up unused arguments

* appease the linter
2019-05-13 16:58:20 +06:30
renovate[bot]
bf1a942944 chore(deps): update dependency supertest to version .x 🌟 (#4154)
* chore(deps): update supertest to 4.0.2 🌟

* remove deprecated 'supertest-as-promised' + update supertest-session

* fix linting error


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-05-08 15:16:33 +06:30
renovate[bot]
9ce129c641 fix(deps): update dependency electron-packager to version .x 🌟 (#4155)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-08 15:05:54 +06:30
Paul Edwin
f34471ca0a address #3069 by using chokidar fs events (#4038)
* address #3069 by using chokidar fs events

* use chokidar directly for watching specs and add tests

the watchers lib watches for file contents changing and doesn’t watch for files being added or removed
2019-05-07 16:00:12 -04:00
Jennifer Shehane
6d5963b9ca remove unused devDep and dep "clear-module" (#4153) 2019-05-07 16:57:26 +06:30
renovate[bot]
1761ba05da fix(deps): update dependency data-uri-to-buffer to version .x 🌟 (#4152)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-07 16:26:54 +06:30
renovate[bot]
0ca9d2a5f6 fix(deps): update dependency supports-color to version .x 🌟 (#4150)
* fix(deps): update supports-color to 6.1.0 🌟

* bump cli down to 5.5.0 to continue support for Node 4


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-05-07 16:23:51 +06:30
renovate[bot]
a90bc3a3e5 chore(deps): update dependency snap-shot-it to version .x 🌟 (#4151)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-07 16:21:22 +06:30
Jennifer Shehane
a31a15ff38 Remove unused dep "tar-fs" (#4149) 2019-05-07 15:15:34 +06:30
renovate[bot]
2565e6e96c fix(deps): update dependency term-size to version .x 🌟 (#4148)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-07 14:14:08 +06:30
renovate[bot]
a97cfc381a fix(deps): update trash to 5.2.0 🌟 (#4140) 2019-05-06 16:28:05 +06:30
renovate[bot]
83674c8acc fix(deps): update dependency widest-line to version .x 🌟 (#4139)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-06 16:19:18 +06:30
renovate[bot]
c18a5eef63 chore(deps): update dependency dependency-check to version .x 🌟 (#4137)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-06 15:36:43 +06:30
Jennifer Shehane
3c0b01c90b remove unused package - codecov (#4136) 2019-05-06 14:43:10 +06:30
renovate[bot]
cb44f0facc chore(deps): update dependency wait-on to version .x 🌟 (#4135)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-06 14:15:04 +06:30
renovate[bot]
71e0124638 fix(deps): update dependency send to version 0.17.0 🌟 (#4134)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-06 12:43:39 +06:30
renovate[bot]
7a77fa3063 chore(deps): update dependency pretty-ms to version .x 🌟 (#4116)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-06 11:32:04 +06:30
renovate[bot]
7bd1698643 chore(deps): update dependency filesize to version .x 🌟 (#4113)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-06 11:01:55 +06:30
renovate[bot]
33a9ab35a1 chore(deps): update dependency proxyquire to version .x 🌟 (#4115)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-03 18:58:09 +06:30
renovate[bot]
6e13bbecaf fix(deps): update dependency semver to version 5.7.0 🌟 (#4112)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-03 18:01:58 +06:30
renovate[bot]
98994d4e3e fix(deps): update dependency jimp to version 0.6.4 🌟 (#4097)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-03 12:02:58 +06:30
renovate[bot]
4733694bc2 fix(deps): update dependency tmp to version 0.1.0 🌟 (#4111)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-03 11:59:45 +06:30
renovate[bot]
f662e48652 fix(deps): update dependency url-parse to version 1.4.7 🌟 (#4110)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-03 11:53:01 +06:30
Zach Bloomquist
146d4cd5cf Add missing Date to cy.clock typescript def (#4106)
* add missing option from clock tsdef

* add type test for cy.clock with Date
2019-05-03 11:34:16 +06:30
renovate[bot]
3394ea990a fix(deps): update dependency image-size to version 0.7.4 🌟 (#4096)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-03 10:21:05 +06:30
Gleb Bahmutov
edc7b4c453 print more info when checking built version 2019-05-02 17:35:42 -04:00
Gleb Bahmutov
28c75d0bcc upgrade kitchensink to get rid of http-server dependency (#4107) 2019-05-02 17:04:33 -04:00
Ben Kucera
1f0071002b Add timeout for cli/verify smoke test (#4080)
* temp 04/29/19 [skip ci] cli verify timeout

* add smoke test timeout error and tests

* cleanup code

* normalize snapshots for ci

* remove promise cancellation config

* cleanup error messaging and spacing for displaying the error details + descriptions


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-05-02 15:20:58 -04:00
Gleb Bahmutov
6f685ab8b8 add metadata to the uploaded test runner binary (#4092)
* move s3 api helpers into own TS file

* add demo file

* add comments

* add method to set user metadata by copying it

* set checksum metadata on uploaded binary

* move checksum to the right upload file

* call the right method

* fix require from ts

* convert size to string

* needs extension

* test binary against other projects

* set checksums as headers during first upload

* Revert "set checksums as headers during first upload"

This reverts commit 2043d9ee1f.

* set ACL to public-read when setting metadata on binary

* linting

* pass content-type

* update scripts tests

* linting

* add --platformArch parameter
2019-05-02 12:29:37 -04:00
renovate[bot]
e12edb8309 chore(deps): Update dependency aws-sdk to version 2.447.0 🌟 (#4093)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-02 13:12:09 +06:30
Jennifer Shehane
0cc949308d handle cy.contains selector with comma separated dom els (#4077)
* split filter arg on commas and generate 'contains' selector using all els

- write test with comma-separated dom els in filter arg.

* wrote extra test to ensure space + comma separated filters still find correct results.

* trim whitespace around filters in contains

- we don’t want to strip more than this since whitespace changes the
meaning of selectors. Only trim leading and trailing space.

* fix click test error to find 17 els instead of 15 (since 2 were added)

* move newly added button in DOM below previous first button

- also just update the failing test to use more specific #button id
instead of button:first


Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
2019-05-01 21:27:02 -04:00
Abdullah Uzun
bf4ac8179d Overriding user-agent when using cy.request or cy.visit (#3920)
* Overriding user-agent when using cy.request

* add driver tests for visit, request user-agent
2019-05-01 16:14:47 -04:00
Gleb Bahmutov
b96066a396 chore: linting example spec files 2019-05-01 10:18:33 -04:00
Gleb Bahmutov
ebaa7a375c Copy test runner binaries before releasing new version (#4082)
* adding S3 sdk

* test binary folder

* linting

* before searching for binary

* linting

* grab folders in the given S3 prefix

* grab folders in the given S3 prefix

* find the last build

* found last builds for commit

* refactoring

* add tests for upload dir name

* create destination zip filename

* copying S3 files

* move s3 helpers into own object, prepare for testing

* add realistic test

* linting

* chore: add documentation to DEPLOY.md file
2019-05-01 10:14:25 -04:00
Gleb Bahmutov
da23a9760a detect forked PR on AppVeyor CI, close #4063 (#4078)
* detect forked PR on AppVeyor CI, close #4063

* match what CircleCI has for env variables
2019-05-01 09:38:38 -04:00
renovate[bot]
57eda8cacf fix(deps): update dependency debug to version .x 🌟 (#3793)
* fix(deps): update debug to 4.1.1 🌟

* bump cli 'debug' down to 3.2.6 - last version that still supports Node 4


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-05-01 13:12:07 +06:30
renovate[bot]
ea1b2a10a1 fix(deps): update dependency find-process to version 1.4.1 🌟 (#4087)
* fix(deps): update find-process to 1.4.1 🌟

* Remove 'isFinite' check as this is done by default in 'find-process' dep

- See this change:
https://github.com/yibn2008/find-process/compare/1.2.2...1.2.3#diff-d460
8a571ae373e4877cb099c7a44b57R127
- some auto-linting updates


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-05-01 11:57:30 +06:30
renovate[bot]
3149b11362 fix(deps): update dependency express-handlebars to version 3.0.2 🌟 (#4086)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-01 10:36:05 +06:30
Zach Bloomquist
da61de8479 Adding compound debug configuration (#3238)
* Adding compound debug configuration

* remove trailing commas from JSON


Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-05-01 10:31:10 +06:30
renovate[bot]
db0a65ee7f chore(deps): update dependency react to version 16.8.6 🌟 (#3954)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-05-01 10:16:48 +06:30
renovate[bot]
06fa095961 chore(deps): update dependency cypress-example-kitchensink to version 1.5.2 🌟 (#4079)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-05-01 09:11:10 +06:30
Ben Kucera
ec36bf0132 reorder cli unit test snapshots for snap-shot-it (#4081) 2019-04-30 14:28:04 -04:00
renovate[bot]
4fd0f64aab fix(deps): update dependency execa to version 0.11.0 🌟 (#4076)
* fix(deps): update execa to 0.11.0 🌟

* bump execa versions to 1.0.0 (actually no changes from 0.11.0 - just stable release)

* bump execa down for cli, execa 0.11.0 drops support for < Node 6


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-04-30 20:45:46 +06:30
renovate[bot]
eb0097d8d3 chore(deps): update dependency mock-fs to version 4.9.0 🌟 (#4075)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-04-30 17:38:05 +06:30
renovate[bot]
167934f0e4 chore(deps): Update dependency inquirer to version 3.3.0 🌟 (#4071)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-04-30 16:36:38 +06:30
renovate[bot]
9372bc3f67 chore(deps): update dependency gulp-rev-all to version 0.9.8 🌟 (#4061)
* chore(deps): update gulp-rev-all to 0.9.8 🌟

* update rev-all usage to match new 0.9 API


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-04-30 15:56:55 +06:30
renovate[bot]
455046b928 chore(deps): update dependency express-session to version 1.16.1 🌟 (#4060)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-04-30 15:38:13 +06:30