Commit Graph

11965 Commits

Author SHA1 Message Date
Gleb Bahmutov e338e23e5a Add comment how to install pre-release version (#4647)
* WIP: post install message on commit

* linting

* finish message contents

* linting

* fix npm and binary, circleci name

* comment on CI build on AppVeyor

* remove extra build branches
2019-07-08 12:10:13 -04:00
Zach Bloomquist 178e9bf0ab Warn when Cypress detects policies that may interfere with auto… (#4405)
* add chrome policy check that is logged to stdout/displayed in GUI

* improve warning message

* add desktop-gui warning when launching browser

* update tests

* clean up adding warnings to browsers in the gui

* support multiple warnings in gui

* update on-link

* don't show warning in open mode

* add test for warning getting attached, add hyperlink to warning tooltip

* render tooltip warnings with markdown

* pass NO_CHECK_DEPS=1 to skip dep check

* @cypress/react-tooltip@0.5.0 - adds clickability to tooltips

* add link to issue

* dont need to update reporter and runner

* use synchronous console.log, not async errors.log for displaying yellow warnings

* use trigger, do not build up events manually

/cc @flotwig


Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-07-03 15:35:58 +02:00
Jennifer Shehane 59d9b55bbf Collect env vars for concourse and goCD CI providers (#4642)
* Collect env vars for concourse and goCD CI providers

Combines work done from #3235 and #4446

Co-Authored-By: Michael Sterpka <michaelsterpka@gmail.com>
Co-Authored-By: Juliardi عبدالله <sog01@users.noreply.github.com>

* alphabets are hard

* add comment for where env vars are for concourse and goCD

- //# -> //
- place goCD extraction method alphabetically

* faster iteration to determine whether we're in concourse env


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-07-03 15:07:15 +02:00
Ben Kucera a9927b13f4 Decaf issue 2957 mouse fixes (#4636)
* decaffeinate: Rename mouse.coffee from .coffee to .js

* decaffeinate: Convert mouse.coffee to JS

* decaffeinate: Rename click_spec.coffee from .coffee to .js

* decaffeinate: Convert click_spec.coffee to JS

* decaffeinate: Run post-processing cleanups on mouse.coffee

* decaffeinate: Run post-processing cleanups on click_spec.coffee

* eslint rules for decaf

* cleanup decaf

* revert eslint

* [temp only] eslint rules for decaf

* decaffeinate: Rename click.coffee from .coffee to .js

* decaffeinate: Convert click.coffee to JS

* decaffeinate: Run post-processing cleanups on click.coffee

* cleanup decaf

* decaffeinate: Rename keyboard.coffee from .coffee to .js

* decaffeinate: Convert keyboard.coffee to JS

* decaffeinate: Run post-processing cleanups on keyboard.coffee

* cleanup decaf

* Revert "[temp only] eslint rules for decaf"

This reverts commit 326d9c2ac7.
2019-07-03 14:08:50 +02:00
Brian Mann 93b3edaab6 ignore garbage render worker errors coming from electron (#4644)
* ignore garbage render worker errors coming from electron

* add tests
2019-07-03 14:08:07 +02:00
Kyle f9750b01dc fixed outline on 'Configuration' panel heading in desktop-gui (#3402)
* fixed outline issue but not quite clear on collapse issue

* closes issue #3357


Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-07-03 13:39:45 +06:30
renovate[bot] 0701e20429 fix(deps): update dependency fs-extra to version 8.1.0 🌟 (#4620)
* fix(deps): update fs-extra to 8.0.1 🌟

* but fs-extra in cli package back to 5.0.0 (Needs Node 4 support)

* fix(deps): update fs-extra to 8.1.0 🌟


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-07-03 11:43:05 +06:30
renovate[bot] bfcfe83231 chore(deps): Update dependency @cypress/react-tooltip to versio… (#4610)
* chore(deps): Update @cypress/react-tooltip to 0.5.0 🌟

* fix selector-playground spec


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com>
2019-07-03 11:40:43 +06:30
Zach Bloomquist 16adce5dfc Fix run_plugins_spec test leaking into other tests, other fla… (#4600)
* _.once-ify run_plugins_spec callback so it can't leak

* bump timeout up on retries tests so cannot flake with ETIMEOUT in CI

* _.once second test
2019-07-02 18:40:11 +02:00
Jennifer Shehane c13e94a520 remove string-to-stream dep (getStream isn't called anywhere) (#4619)
* remove string-to-stream dep (getStream isn't called anywhere)

I don’t see ‘getStream’ being called anywhere in the code, this is the
only method that uses string-to-stream

* trigger status check
2019-07-01 11:47:15 -04:00
renovate[bot] 2823783ff7 fix(deps): update dependency errorhandler to version 1.5.1 🌟 (#4618)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-01 10:44:26 +06:30
renovate[bot] a3daee100b fix(deps): update dependency request-progress to version .x 🌟 (#4584)
* fix(deps): update request-progress to 3.0.0 🌟

* Added method to utils to convert percent value to percentage

- Wrote unit tests for both calculateETA and the percent to percentage
conversion


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-07-01 09:07:33 +06:30
Zach Bloomquist 19e1297240 Add server onAnyRequest, etc... functions to typedefs (#4109) 2019-06-28 19:52:58 +06:30
Jennifer Shehane e7e3153d39 Update configuration schema to match docs (#4300) 2019-06-28 19:52:15 +06:30
renovate[bot] ca451f4155 chore(deps): Update dependency @cypress/bumpercar to version 2.… (#4597)
* chore(deps): Update @cypress/bumpercar to 2.0.9 🌟

* remove react-tooltip upgrade from this PR

* Have tooltip have default empty string to avoid 'title requirement' warning in console


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-06-28 19:49:23 +06:30
Jennifer Shehane f685926130 update Readme for CLI to be more robust and match other packages [skip ci] 2019-06-28 13:33:48 +06:30
Brian Mann b14c1f9d86 release 3.3.2 [skip ci] v3.3.2 2019-06-27 18:19:31 -04:00
Brian Mann 17520bd4b2 remove dead code [skip ci] 2019-06-27 17:09:18 -04:00
Zach Bloomquist f74d103a60 Warn on createRun warning from dashboard if warning code is unk… (#4567)
* Warn on createRun if warning code is unknown

* add response validation in 7_record_spec

* add unknown warning fallback test

* update existing tests to match schemas
2019-06-27 15:40:22 -04:00
renovate[bot] e1f58da01c fix(deps): update dependency fs-extra to version .x 🌟 (#4581)
* fix(deps): update fs-extra to 8.0.1 🌟

* but fs-extra in cli package back to 5.0.0 (Needs Node 4 support)


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-06-27 14:04:43 +06:30
Zach Bloomquist 23d66fd5ea Use 'path' for key in browsers dropdown, fix desktop-gui duplicate key warning (#4562) 2019-06-26 17:05:09 +06:30
renovate[bot] b6345521d1 fix(deps): update dependency fs-extra to version .x 🌟 (#4571)
* fix(deps): update fs-extra to 7.0.1 🌟

* bump fs-extra down to 5.0.0 for cli (Needs Node 4 support)


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-06-26 15:33:35 +06:30
renovate[bot] 55b86d4595 fix(deps): update dependency fs-extra to version .x 🌟 (#4559)
* fix(deps): update fs-extra to 6.0.1 🌟

* Downgrade cli fs-extra back down to 5.0.0 - 6.0.0 drops Node 4 support


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-06-26 13:44:09 +06:30
Jennifer Shehane ce156e283d 4429- Do not log 'counts' for aliases that are non-routes (#4556)
* Do not log 'counts' for aliases that are non-routes

- Update styling of alias counts to be more centered
- Write tests for non-route aliases to display in runner

* Replace enzyme alias tests with Cypress tests
2019-06-26 12:44:00 +06:30
James George 70c441c9f9 fix(chore): fixup usage information (#4546)
* Fixup usage information

* Update unit test snapshot
2019-06-25 12:32:24 -04:00
renovate[bot] c2d9ae4e42 fix(deps): update dependency fs-extra to version .x 🌟 (#4555)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-06-25 17:20:04 +06:30
Zach Bloomquist 670c8a01c9 reporter: Cache aliasesWithDuplicates to prevent unnecessary re… (#4552)
* reporter: cache aliasesWithDuplicates to prevent unnecessary re-renders

* add link to issue on test
2019-06-24 18:07:17 -04:00
Zach Bloomquist defbdc4423 Adjust 6_visit_spec fast_visit_spec to not flake on potential o… (#4539)
* compare to 99%, not 100%, to avoid outliers

* 'format on save' strikes again

* try out new times
2019-06-24 17:41:34 -04:00
Jennifer Shehane 74484b22a4 Runs list usage warning (#4531)
* Remove unnecessary instructions for desktop gui testing

* Add timezone env var to ensure desktop-gui testing passes

* Add parallelization disabled warning tooltip

- Update the few to match new logic written from Dashboard.

* fix failing specs

* add unit tests for stripSharedDirs method
2019-06-24 15:36:24 +06:30
Gleb Bahmutov e5106d95f5 test Mac build against other repos (#4527)
* test Mac build against other repos

* trigger projects again to confirm all work

* when triggering projects filter by platform too

* linting
2019-06-21 12:16:04 -04:00
Jennifer Shehane c2861ba557 update winston to v2 (#4538) 2019-06-21 15:06:17 +06:30
Zach Bloomquist 989f516556 Use percentiles to make proxy performance test not flaky (#4507)
* allow perf tests to fail CI

* use percentiles to make proxy-perf less flaky, reenable https tests, clean up table output

* newline

* retry performance test, lower timeout
2019-06-20 14:47:29 -04:00
renovate[bot] c7b340a661 fix(deps): update dependency winston to version .x 🌟 (#4528)
* fix(deps): update winston to 1.1.2 🌟

* remove instances where winston is required but not used.


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-06-20 15:59:00 +06:30
Jennifer Shehane 6d614e40d7 Remove the secondary issue templates - consolidate into one template
I haven’t seen any value in splitting this up - it just creates an
extra click for our users to do when creating an issue.
2019-06-20 12:42:49 +06:30
Gleb Bahmutov 932bd1a585 chore: newline at the end of package.json 2019-06-19 15:39:01 -04:00
Chris Breiding 448de97b9d set min width for reporter contents (#4505) 2019-06-19 11:07:17 -04:00
renovate[bot] 195d757a6a fix(deps): Update dependency electron-positioner to version .x 🌟 (#4502)
* fix(deps): Update electron-positioner to 4.1.0 🌟

* remove electron-positioner dep - this is not used anywhere...


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-06-19 20:52:23 +06:30
Zach Bloomquist 74573996ff Allow users to opt out of exception reporting with CYPRESS_CRASH_REPORTS=0 (#4431)
* Allow users to disable exception reporting with CYPRESS_EXCEPTION_REPORTING=0

* rename to CYPRESS_CRASH_REPORTS, do not merge into env

* rename createRaygunException -> createCrashReport

* add projectId to default config keys so it shows up resolved project settings

-

* only suppress CYPRESS_ENV from showing up as an env var, allow CYPRESS_CRASH_REPORTS to be displayed

* make config keys a clear constant, formatting, cleanup

* truncate special env vars and debug logs

* only set authToken if truthy

* removed unused require


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-06-19 06:55:11 -04:00
andrew mcmechan 1f095c5ea9 Wrap tests titles in reporter UI (#4428)
* break title onto new line and show inline

* keep spinner to single line

* keep section header text inline after line break
2019-06-19 17:13:52 +06:30
Zach Bloomquist 74dc6e8b5e Only send cy.visit() auth options to correct protection space (#4338)
* only send auth headers to the original protection space

* cleanup

* test now fails w/o fix

* note about moving this into lib/util/uri.js

* refactor, cleanup, and provide more context

* add lots of tests around cors.urlMatchesOriginProtectionSpace

- fix some edge cases and yes… bugs due to behavior of url.format(…)
- if host is set, port value is ignored, so we must clear it out
- protocol contains a ‘:’ character, fixed the protocol + port constants
- synchronize method signatures to always return a safely cloned
url.parse(…) object
- add url notes

* have buffers use url utility

* fixes failing tests

* remove unused require


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-06-19 06:23:25 -04:00
Brian Mann 83858e89c0 display the histogram before making assertions - else they'll fail and the console task will not run 2019-06-19 06:21:15 -04:00
renovate[bot] d01c4f0715 chore(deps): Update dependency snap-shot-it to version 7.7.1 🌟 (#4498)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-06-19 15:08:24 +06:30
Jennifer Shehane e2205f9263 Address some visibility issues (#4421)
* Add failing test case for visible element within overflow hidden then position absolute element.

Addresses #4395

* Write failing test case for when parent is flex and overflow hidden with el outside bounds

Addresses #4161

* Wrote failing test for visibility outside of clip-path

Addresses #1178

* Add failing tests for transform scale

Addresses https://github.com/cypress-io/cypress/issues/723

* Add failing test for backfact-visibility hidden example

* cs -> js fixes

* Add more specific error when el is not element

* Always return as visible when checking html or body

* Add comments + rename methods to be more exact

* Add case for isHidden when visibility is collapse

* Add failing test cases for visibility issues

* Add comment about how ensureVisibility works under the hood

* Add checks and tests for opacity: 0 to be hidden

* Simplify if/case statements to be more readable

* Expand check for offset parents to also check children of ancestor for positioning attributes

close #4395
close #755

* Fix issue where els with parents with absolute position inside overflow hidden would be calculated as not visible

* comment out opacity checks for patch release

* Add more tests around new visibility assertions

- Add case to make sure display none is not on the option or optgroup
itself

* Fix failing assertion - where el was undefined when looking for visibiliyt

* remove commented out code involving opacity 😬
2019-06-19 14:51:33 +06:30
Zach Bloomquist 60318a7f0f Use is-html as a fallback to check if cy.visit() response is HTML (#4321)
* use is-html as a fallback to check if response is HTML

* end response with passthru stream

* clean up network_failures

* add test that visit passes with undef content-type

* handle empty responses too

* try to fix dtslint: bump package version 2
02-00000876

* fix failing tests via develop merge


Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-06-19 03:05:38 -04:00
Zach Bloomquist 0c8df29def End proxied responses for 1xx, 204, 304 with no body, fix bug where cy server could be proxied (#4358)
* release 3.2.0 [skip ci]

* add failing test for 304

* always end response on 1xx, 204, or 304

* add http req spec

* add test that 1xx, 204, 304 always pass thru immediately

* cleanup

* skip stubborn test

* cleanup, tests

* fix stopping debugproxy where it hasn't been started

fix stopping debugproxy where it hasn't been started

* Never proxy websocket port

* e2e test now works

* unnecesary this

* e2e works in ci


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-06-19 00:19:30 -04:00
Zach Bloomquist f26c5a9c6f Fix flaky fast_visit_spec (#4494)
* lint plugins/index.js

* Fix flaky fast_visit_spec by using percentiles
2019-06-18 17:34:55 -04:00
renovate[bot] e81fbae9e2 fix(deps): update dependency chokidar to version .x 🌟 (#4487)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-06-18 14:36:06 +06:30
Jennifer Shehane a151428e8e remove unused nyc dev dependency (#4486) 2019-06-18 12:04:07 +06:30
renovate[bot] bb49aae35a chore(deps): Update dependency lint-staged to version .x 🌟 (#4480)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-06-18 11:13:00 +06:30
Zach Bloomquist 0d2ddfc263 Fix failing agent unit test (#4482) 2019-06-17 14:32:42 -04:00