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)
```
* 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'
* [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>
* 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
* 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
* 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>
* 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>
* 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>
* 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>
* 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>