Commit Graph

12102 Commits

Author SHA1 Message Date
Chris Breiding 48816c6eba Fix more Desktop GUI layout issues (#4914)
* fix warning message layout issue

* ensure footer is at bottom when project error displayed

* fix warning about autoFocus
2019-08-08 15:11:46 -04:00
Ben Kucera 42cbe20a7d chore(deps): update @cypress/eslint-plugin-dev + eslint (#4930)
* chore(deps): update @cypress/eslint-plugin-json + eslint

* fix redefine global var
2019-08-07 16:01:49 -04:00
Ben Kucera 95b4e0d79d fix: fix selector-playground css (#4940)
* fix selector-playground css

* add selector_playground e2e spec

* add notes to webpack import syntax

* add notes to test

* fix runner unit tests: handle webpack imports
2019-08-07 13:37:14 -04:00
Gleb Bahmutov 6930cabd7b Revert "Provide strong types for 'invoke' command (#4022) (#4907)"
This reverts commit 15685dbb9f.

The type for `invoke` command seems to break jQuery method
that take an argument like

```js
cy.get('.trigger-input-range')
  .invoke('val', 25)
```
2019-08-06 15:38:33 -04:00
Mayfield 15685dbb9f Provide strong types for 'invoke' command (#4022) (#4907)
* add strong return type to 'invoke' command

* refactor invoke for clarity. use dtslint tests

* add strong args types using typescript 3.0+ features

* handle invoke's jquery wrapping of its input

* move invoke tests to namespace

* add example to jsdocs of 'invoke'
2019-08-06 10:27:45 -04:00
Ben Kucera a038e7f5d4 Renames: issue 2957 (#4879)
* [rename only] {keyboard,mouse}.js

* refactor keyboard/mouse into cy/

* fix cy.type for refactor

* fix e2e test error

* commands now recieve devices as separate prop

* add .history to .estlintignore

* fix linting errors

* remove passing log and devices to commands, pull devices off of cy

* fix commands.coffee


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-08-05 22:02:04 -04:00
Ben Kucera 15bf98ff05 [rename] {keyboard,mouse}.js (#4922) 2019-08-04 00:26:23 -04:00
Zach Bloomquist 92b91fe514 Support NO_PROXY=<-loopback>, always have NO_PROXY=localhost ot… (#4800)
* localhost is always in NO_PROXY unless <-loopback> specified

* tests

* fix failing specs

* update test to use <-loopback>
2019-08-02 18:39:46 -04:00
Zach Bloomquist 52beabeda5 Do not crash on invalid HTTP CONNECT (#4916)
* Do not crash on invalid HTTP CONNECT

* fix test
2019-08-02 18:33:38 -04:00
Brian Mann 7e2ca836cf Decaf simulated type fixes 2 (#4906)
Decaf simulated type fixes 2
2019-08-01 18:35:23 -04:00
decaffeinate 8808b54cf0 decaffeinate: Run post-processing cleanups on jquery.coffee and 1 other file 2019-08-01 17:57:58 -04:00
decaffeinate 9c9748c663 decaffeinate: Convert jquery.coffee and 1 other file to JS 2019-08-01 17:52:47 -04:00
decaffeinate 69a8dd4d3f decaffeinate: Rename jquery.coffee and 1 other file from .coffee to .js 2019-08-01 17:52:44 -04:00
Ben Kucera 2d334c868e update eslint plugins, don't lint coffeescript with eslint in l… (#4902) 2019-08-01 16:57:00 -04:00
Chris Breiding 71036d5862 Desktop GUI layout issues/improvements (#4905)
* dry up project mode spec

* fix desktop-gui footer being at top when loading project

* fix update banner covering last spec

* only scroll specs and leave filter in place
2019-08-01 16:55:53 -04:00
Ben Kucera 3e41428a2f fix skipped test in screenshot_spec (#4900)
* fix skipped test in screenshot_spec

* move to .finally
2019-08-01 16:52:14 -04:00
Ben Kucera 2ee3347851 re-add post-decaffeinate-bulk npm script (#4878)
* re-add post-decaffeinate-bulk npm script

* Update package.json
2019-07-30 12:18:16 -04:00
decaffeinate 65db0410d0 decaffeinate: Run post-processing cleanups on lodash.coffee and 1 other file 2019-07-30 10:21:38 -04:00
decaffeinate 6165f01d71 decaffeinate: Convert lodash.coffee and 1 other file to JS 2019-07-30 10:21:38 -04:00
decaffeinate e2618bf3fd decaffeinate: Rename lodash.coffee and 1 other file from .coffee to .js 2019-07-30 10:21:38 -04:00
renovate[bot] 84853ff448 chore(deps): update dependency ts-node to version 8.3.0 🌟 (#4855)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-30 10:03:50 +06:30
Brian Mann ac6af44ab9 release 3.4.1 [skip ci] v3.4.1 2019-07-29 15:44:10 -04:00
Brian Mann 285fe40753 release 3.4.1 [skip ci] 2019-07-29 15:42:12 -04:00
Brian Mann 680a2fccd2 gitignore packages/example/cypress (#4862)
- this prevents a situation where after running npm install and then
npm run build, the diff of cypress shows up as changes in git
2019-07-29 14:35:52 -04:00
renovate[bot] b52209c59f chore(deps): Update dependency @cypress/react-tooltip to versio… (#4861)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-29 14:33:46 -04:00
Gleb Bahmutov 11784c3af2 CLI: increase smoke test timeout to 30s (#4859)
* CLI: increase smoke test timeout to 30s

* hmm install reformarrted some files

* remove formatting changes

* update unit test

* add small test to confirm timeout property

* revert example changes
2019-07-29 12:59:12 -04:00
Gleb Bahmutov 3111ae1027 updated example spec files 2019-07-29 11:51:51 -04:00
Jennifer Shehane a7dfda9865 Show warning when binary is run directly (outside npm module) (#4701)
* commit previous changes made by @bahmutov for #1573

* Pass '--run-from-cli' flag through ping test in order to prevent warning from printing

* woops, require 'argsUntil'

* 'headed' was changed to 'interactiveMode'

* fix duplicate misspelled require

* tighten up args utils and cleanup decaf garbage

* cleanup errors.log to take a cb and conditionally be async

* remove extraneous --run-from-cli argument, consolidate to use --cli

- update tests

* fixes tests, ensure that record.createRun() always returns a promise

* refactor tests to handle new errors.logException interface

* make logException always return a promise, cleanup interface, add test

* fix linting errors


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-07-29 07:33:33 -04:00
Gleb Bahmutov d73d350cfb Allow video to be recorded till the end of the test (#4804)
* WIP: record the video fully without cutting the end of the test

* delay closing browser when recording video to avoid chopping off the end

* refactor code and update tests

* do not wrap delay method twice

* add extra verbose frames logging

* rename video capture props to be more discernible, refactor code, general cleanup

- simplify promise implementation in videoCapture.start
- extract a few methods in runMode to handle conditional video capturing

* fix failing test

* cleanup debug logs


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-07-29 07:33:00 -04:00
renovate[bot] 0e867e0bda chore(deps): update dependency dtslint to version 0.9.0 🌟 (#4852)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-29 16:52:13 +06:30
Zach Bloomquist 06ee0ca238 Fix erroneous socket connections to undefinedCHANGE_ME_PATH (#4799)
* only connect to socket if path has been replaced, fixes #4776

* upgrade sinon, do not instantiate sandbox

* add tests to ensure connect is not called when not in browser mode

* refactor once again to push connect to a separate module to make testable

* move initializing extension connection to init.js

- prevents situation where connect(…) is called when module is required
- simplifies handling automatic connection only when in the browser
without needing to modify globals


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-07-29 05:55:24 -04:00
renovate[bot] 6be24f62d5 fix(deps): update dependency duplexify to version 4.1.1 🌟 (#4853)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-29 15:44:57 +06:30
renovate[bot] 5019f6da5a chore(deps): update dependency @types/fs-extra to version .x 🌟 (#4851)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-29 13:45:38 +06:30
renovate[bot] 2f01d8c110 chore(deps): update dependency @types/fs-extra to version .x 🌟… (#4847)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-29 13:18:43 +06:30
renovate[bot] fa3bb9344b chore(deps): update dependency cypress-example-kitchensink to v… (#4849)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-29 12:47:51 +06:30
renovate[bot] a3e14e0419 chore(deps): Update dependency @types/fs-extra to version .x 🌟… (#4845)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-29 11:10:11 +06:30
Jennifer Shehane 7c51ece1c8 Fix browser dropdown direction to drop left (#4796)
- clean up some unnecessary units for 0 values in css
2019-07-29 00:39:53 -04:00
Ben Kucera 0c8e64990b set node_env for production and add static asset tests (#4842)
* set node_env for production and add static asset tests

* test binary build [build binary]

* fix testStaticAssets for desktop-gui [build binary]
2019-07-29 00:33:12 -04:00
Ben Kucera 1ceb9a4f0f fix .and chainer for chai-jquery assertions (#4834)
* fix .and chainer

* fix .and chainer by returning undefined

* fix .and chainer by returning undefined

* try fix e2e spec: return assertion result?

* add "inlcudes" as "contains" alias, fix chai-jquery typedefs

* re-run dtslint (passes locally)

* extend chai thru cy-chai.d.ts

* remove unneeded code

* add tests for .contains messages
2019-07-29 00:29:41 -04:00
Brian Mann 86fc0d414f Visit beforeEach specs (#4836)
* move to visiting before each in traversals + querying specs

* bump eslint dev
2019-07-26 15:04:58 -04:00
Jennifer Shehane 48b2b5ad19 Fix issue where named variable that began with top or `parent… (#4831)
* Fix issue where named variable that began with `top` or `parent` would be replaced by self

* fix instances of variables throwing due to being undefined

* small readability refactor

* make the code evaluate properly

* simpler text replacement assertions

* remove unused vars


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-07-26 14:38:11 -04:00
Brian Mann 00baf2eae7 speedup click spec (#4835)
* move to use a visit beforeEach

* fix type_spec before
2019-07-26 14:06:12 -04:00
Ben Kucera 73d0736b38 speed up type_spec (#4782)
* speed up type_spec

* fix newlines
2019-07-26 12:54:16 -04:00
renovate[bot] 189935cfcb fix(deps): update dependency browserify to version .x 🌟 (#4826)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-26 16:09:33 +06:30
renovate[bot] 3faae834ca chore(deps): update dependency @types/chai to version .x 🌟 (ma… (#4828)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-26 16:06:40 +06:30
renovate[bot] 862ad33fb3 chore(deps): update dependency mockery to version .x 🌟 (#4819)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-26 14:14:57 +06:30
renovate[bot] 879288942c chore(deps): update dependency gulp to version .x 🌟 (major) (#4816)
* chore(deps): update gulp to 4.0.2 🌟

* remove unused gulp-typescript package

* rename gulpDebug dep for consistency

* remove run-sequence dep - replace with new gulp.sequence and gulp.parallel

* pass new sourcemaps arg through to gulp-coffee

* fix favicon task that I broke. 😬

* fix extension gulpfile - needed those returns :P

- also update vinyl-source-stream to avoid vinyl errors during gulp
tasks

* Fix example gulpfile to allow empty sources


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-07-26 14:02:44 +06:30
renovate[bot] 1324ec2566 fix(deps): update dependency browserify to version .x 🌟 (#4825)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-26 13:48:33 +06:30
Jennifer Shehane 8b98d7b166 Decaffeinate gulpfile in pkg/extension (#4817)
Decaffeinate gulpfile in pkg/extension
2019-07-26 10:56:40 +06:30
renovate[bot] 55e96186ff fix(deps): update dependency graceful-fs to version 4.2.0 🌟 (#4818)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-25 17:55:58 +06:30