Commit Graph

12332 Commits

Author SHA1 Message Date
Jennifer Shehane
299f0dfd24 Remove support for Node 6 (#5632)
* Bump required node version of cli to 8.0.0+

* Bump chalk to 3.0.0

- previously required Node 8 support

* bump debug to 4.1.1

- Drops Node 4 support, adds Node 10 support
- They  mentioned no breaking changes, so we’ll see.

* bump is-ci to 2.0.0

- removes Node end of lives
- supports more CIs for detection

* bump is-installed-globally

- drops support for Node 6 + improvements on detection

* bump log-symbols dep

- requires Node 8

* bump supports-color

- Requires Node 8

* bump untildify - require Node 8

* bump commander to 4.0.1

- require Node 8
- may break some snapshots - they changed some quotes like 'this'
instead of `this'

* bump execa to 3.3.0

- removes Node 6 support
- some breaking changes, but I didn’t find us using any of them on
first pass.

* bump cachedir

* bump fs-extra

Drops various node version support including 6

* bump bluebird

* bump ramda
2019-11-26 21:28:24 +06:30
Chris Breiding
3ecbacc286 Merge branch 'develop' into v4.0-release 2019-10-31 10:15:13 -04:00
Chris Breiding
dd49d23d34 upgrade chai-as-promised to 7.1.1 2019-10-31 09:37:35 -04:00
Ben Kucera
232c0046d3 capture AUT uncaught errors and properly route them to uncaught… (#5249)
* set global onerror same as autWindow.onerror

* cleanup spec

* add link to issue

* Update uncaught_errors_spec.coffee

* fix spec: use throw instead of done cb

* fix spec for global onerror

* temp 10/30/19 [skip ci]

* cleanup

* use object.defineproperty to overwrite setter, only set top.onerror once

* update snapshot

* refactor xhr_spec

* fix xhr_spec

* refactor address feedback

* fix oops

* fix rerun mode


Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-10-30 19:17:22 -04:00
Zach Bloomquist
249db45363 Use websockets to stub large XHR response bodies instead of hea… (#5525)
* server: add test for XHR with body > 100kb via CLI

* Use websockets to stub large XHR response bodies instead of headers

* Properly cleanup outstanding XHRs on before:test:run

* Add lil unit test for xhr_ws_server

* Use reset:xhr:server to get around sending entire test:before:run:async payload

* Responding to feedback

* Implement feedback

* move data obj wrapping into xhrs controller
2019-10-30 16:36:02 -04:00
Chris Breiding
82c76d767a upgrade sinon to 7.5.0 2019-10-30 14:35:29 -04:00
Chris Breiding
bbb9a8dbb8 Merge branch 'develop' into v4.0-release 2019-10-30 11:24:02 -04:00
Chris Breiding
0ff6c04ecf upgrade mocha to 6.2.2 2019-10-30 11:23:32 -04:00
Chris Breiding
d6f79af361 update spy/stub.reset to resetHistory, due to sinon upgrade 2019-10-30 10:14:20 -04:00
Chris Breiding
89c0ed192b fix runner tests
mocking the driver require wasn’t working, so this accomplishes it in another way
2019-10-30 09:37:09 -04:00
Ben Kucera
e405d8a9a1 3.5.0 - send keyboard events for single value change inputs (#5498)
* fix not firing key events on singleValueChange inputs

* use http for livereload

* add link to issue

* fix resolving merge conflict
2019-10-30 09:29:31 -04:00
Brian Mann
91a4477ad0 replace handlebars with squirrelly (#5521)
* WIP: rip out handlebars and implement with squirrelly

- handle caching ourselves
- TODO: add tests, make sure escaping and all that jazz works

* fixes squirrelly template handling

* only fire mocha events when in run mode

* add unit tests for template engine rendering + caching
2019-10-30 02:21:53 -04:00
Ben Kucera
3182f62573 fix iframe placeholder html (#5296)
* fix iframe placeholder html, add test

* add link to issue

* remove added test, modify existing only
2019-10-29 18:50:38 -04:00
Ben Kucera
cffe8b8fb2 3.5.0 - fix click events sent to proper element, respect select… (#5496)
* fix click during overlay on mousedown, fix selectionchange during focus handler

* fix stop-only script

* fix 5439 replace selection during modifier

* cleanup and refactor

* fix test

* fix actionability not erroring on covered element

* Revert "fix actionability not erroring on covered element"

This reverts commit 208af647de.
2019-10-29 17:59:37 -04:00
Ben Kucera
fc2dd21f8e 3.5.0 - fix clicking into iframe after interaction with AUT (#5520)
* fix clicking into iframe after interaction with AUT

* add link to issue

* move test to click_spec
2019-10-29 17:56:13 -04:00
Ben Kucera
fdaca192cb 3.5.0 - Fix actionability for covered elements (#5524)
* fix actionability not erroring on covered element

* add link to issue

* add comment for clarify
2019-10-29 17:44:39 -04:00
Chris Breiding
35d45d4ad7 Merge branch 'develop' into v4.0-release 2019-10-29 15:54:15 -04:00
Chris Breiding
a757ceec69 fix reporter unit tests 2019-10-29 14:36:35 -04:00
Chris Breiding
9dd32f308f require driver dom directly in reporter
import the entire driver caused all of its dependencies to be loaded, which caused conflicts due to different versions of mocha
2019-10-29 14:36:26 -04:00
Chris Breiding
ce3c7611d1 simplify reporter unit test setup 2019-10-29 14:35:35 -04:00
Zach Bloomquist
27cd41768c Use a default NEXT_DEV_VERSION to build NPM package; only run M… (#5517) 2019-10-29 13:58:42 -04:00
Zach Bloomquist
73a76cc600 Revert "Always pass NODE_OPTIONS with max-http-header-size" (#5522)
This reverts commit 978d97ee6d.
2019-10-29 13:45:58 -04:00
Chris Breiding
3bb6f729ab fix snapshot 2019-10-29 11:51:48 -04:00
Chris Breiding
dabf4a12c1 fix/update e2e tests & snapshots 2019-10-29 11:12:14 -04:00
Gleb Bahmutov
7be840efca use default next-dev-version if not set during Linux binary bui… (#5512) 2019-10-29 11:10:59 -04:00
Chris Breiding
cbd871fb93 move deps to right place
these are only used in integration tests
2019-10-29 11:09:11 -04:00
Chris Breiding
34f31fe080 update cli snapshots 2019-10-29 10:48:58 -04:00
Chris Breiding
fefb42c703 fix package.json sorting 2019-10-29 10:44:38 -04:00
Chris Breiding
006bf51d93 Merge branch 'develop' into v4.0-release 2019-10-29 10:16:23 -04:00
renovate[bot]
eb078974fe chore(deps): update dependency cross-env to version 5.2.1 🌟 (#5491)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-10-28 14:47:07 -04:00
renovate[bot]
905b7900dc chore(deps): Update dependency cypress-example-kitchensink to v… (#5472)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-10-28 09:39:37 -04:00
Zach Bloomquist
978d97ee6d Always pass NODE_OPTIONS with max-http-header-size (#5452)
* cli: set NODE_OPTIONS=--max-http-header-size=1024*1024 on spawn

* electron: remove redundant max-http-header-size

* server: add useCli option to make e2e tests go thru cli

* server: add test for XHR with body > 100kb via CLI

* clean up conditional

* cli: don't pass --max-http-header-size in dev w node < 11.10

* add original_node_options to restore o.g. user node_options

* force no color
2019-10-25 16:59:35 -04:00
Gleb Bahmutov
3a747abf5d use tilda for cross user path 2019-10-25 13:41:48 -04:00
Zach Bloomquist
4b278f89de Fix not keeping track of correct URL when setting cookies durin… (#5455)
* Keep track of correct URL during request redirects

* Add snapshots for URLs during redirects
2019-10-25 13:16:40 -04:00
Gleb Bahmutov
fcc252e94d Always use --no-sandbox with Electron on non-Windows system (#5458)
* WIP: add failing test job with non-root user

* change paths to node user

* print more info

* always use --no-sandbox when starting Electron on non-Windows OS

* add another test job that runs as a root

* use tilda

* use 12.0.0 image

* rename job
2019-10-25 10:54:03 -04:00
Gleb Bahmutov
94128a97e3 Fix decoding unicode values in the config object passed to the browser (#5451)
* correctly decode runner config

* add comments with original issue

* remove stray branch name to build
2019-10-24 16:52:08 -04:00
Gleb Bahmutov
1231417f49 Update a few more Circle jobs that changed their artifacts (#5454)
* grab binary and npm package from workspace

* update test-binary-against-kitchensink

* try installing several times

* update test-npm-module-and-verify-binary

* update test-binary-and-npm-against-other-projects job

* run test job after upload jobs

* update urls

* use current folder path
2019-10-24 14:17:01 -04:00
Jennifer Shehane
6cbb913f76 Update triaging. Explain handling issues about Dashboard features 2019-10-24 13:27:48 -04:00
Ben Kucera
994d16d5de don't log multiple:true by default in dblclick (#5427)
* dont log multiple:true by default in dblclick

* fix add in defaults

* fix consoleprops test

* Add link to issue this is addressing


Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-10-24 12:55:25 -04:00
Gleb Bahmutov
c306113759 test kitchensink on all commits (#5422)
* test kitchensink on all commits

* separate build binary from upload binary jobs on Circle

* split Mac binary build from upload

* split npm build from upload

* test upload on this branch

* inspect tmp folder

* hmm, where is it

* print more

* ughh

* let us try again

* use root of project

* how is the file not found

* root cypress?

* update upload npm path

* more paths

* update Mac jobs

* remove temp branch
2019-10-24 10:55:52 -04:00
Brian Mann
de5242d869 Release 3.5.0 [skip ci] 2019-10-23 17:58:46 -04:00
Gleb Bahmutov
da9a747dd9 Merge branch 'master' into develop 2019-10-23 17:09:58 -04:00
Andrew Smith
0ac77adfa3 Merge pull request #5428 from cypress-io/update-pkg-json-350
Update package.json version to 3.5.0
v3.5.0
2019-10-23 16:34:10 -04:00
Zach Bloomquist
5aaeef74a1 Update package.json version to 3.5.0 2019-10-23 16:18:06 -04:00
Ben Kucera
1e78c3afa7 correct comments tagging fixed issues for cy.type (#5425) 2019-10-23 14:33:57 -04:00
Ben Kucera
5ddcf76e99 fix failing kitchensink tests in develop (#5423)
* fix force typing in disabled input, selection on non-selectionrange inputs

* rename clearer error

* add comments

* fix test names
2019-10-23 13:05:37 -04:00
Gleb Bahmutov
6878e606f6 trigger CI 2019-10-23 09:13:13 -04:00
Ben Kucera
9b1f5896e1 simulated type fixes (#4870)
* cleanup type_spec, allow unused-vars for args

* fix missing return

* rename mouse/keyboard

* apply changes on this branch with rename

* temp 07/18/19 [skip ci] type_spec minor changes

* temp 07/19/19 [skip ci]

* temp 07/22/19 [skip ci]

* temp 07/22/19 [skip ci]

* remove accidental spec, use beforeEach visit in click_spec

* add tests for cy.trigger changes

* re-run build

* extract simulated type from native events

* most type_spec passing until tab

* add typedefs

* temp 08/08/19 [skip ci]

* fix type_spec, click_spec

* fix console table event table logging

* fix spec utils

* temp 08/12/19 [skip ci]

* large changes to selection.ts, working type_spec, eslint changes

* fix elements util, cleanup debugging code

* fix linting rules

* fix type_spec in electron by using plain Event contructor

* fix invalid clicking-into-iframe spec

* address review, cleanup

* use webpack-preprocessor (required for typescript files)

* fix invalid connectors_spec

* chore(lint): fix linting, since changed rules

* fix not borrowing property getter for maxlength

* temp 09/25/19 [skip ci]

* add test for clicking checkbox, cleanup click_spec

* document mouse click and mouse move algo, adjust mouse move, add test for recursive movement

* cleanup / formatting

* scope the getCommandLogWithText to the active runnable to prevent leakage

* cleanup tests, make values static so tests pass consistently

- use attach listener alias APIs
- remove magic number constants
- fix some incoherent html / script tag stuff

* begin implementation for returning fromAutWindow

- restore original fromWindow algorithm
- begin writing fromAutWindow for calculating red hitbox coordinates
which are layered on the AUT

* move describe block with the others

* refactor actions to DRY up duplicated logic between click/dblclick/rightclick

- tighten up the mouse.js method names, name them consistently

* remove comment

* fix iframe coords and test

* temp 10/06/19 [skip ci]

* rename fromDocCoords->fromWindowCoords, fix type_spec ux test

* fix after merge from mouse-fixes branch / develop

* temp 10/08/19 [skip ci]

* Revert "temp 10/08/19 [skip ci]"

This reverts commit 92b73f6107.

* remove only, fix contenteditable test

* add test for datetime-local inputs

* add webpack devdep

* fix debugging code

* fix force:true on hidden input

* up timeout for test in ci

* tighten up method, remove unnecessary arg

* add debug logic for retries to console.error() non cypress errors

* renamed fromWindow -> fromElWindow, and fromViewport -> fromElViewport

* handle calculating the fromElWindow coordinates inline

* extract out function for clarity, receive consistent arg names

* cleanup, add lots of comments

* fix display specific test

* fix type follow focus when redirect on focus

* cleanup new follow focus test

* upgrade eslint-plugin-dev to 5.0.0

* more [lint fixes]

* use typescript in driver

* cleanup minor

* remove unneeded file

* mild refactor webpack configs

* fix elements.ts

* fix isTextLike signature change

* fix isType check, fix type_spec

* actually use webpack-preprocessor

* fix isType domUtil

* fix connectors_spec

* cleanup connectors_spec

* address feedback- cleanup, add comments, refac

* answer: no, need index.js

* cleanup after driver typescript PR

* fix keyboard getActiveModifiers

* fix(driver:keyboard): fix typing negative numbers with existing text selection

* remove debugging code, cleanup

* link fixed issues in tests, actually fix one issue

* cleanup remove dead code

* remove unused helper

* add test for #2166

* pay no attention to the code and implementation changing... add tests and note for changing focus into date input

* mark fix for issue #3316

* mark fix for issue #3722

* rename elements.isType -> elements.isInputType for clarity

* restructure keyboard a bit, don't export default, rework static class properties to regular exports

- attach $Mouse + $Keyboard to Cypress

* tighten up

* coffeescript fixes, consistent regexp const naming

* capitalize interface, tighten up several modifier functions

* misc cleanup and tightening up

* rework impl to use stubs instead of numbers

* some more cleanup

* fix logic with when function is called


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-10-23 06:10:44 -04:00
Zach Bloomquist
74a174bc82 Close CLI when exit event fires (#5413)
* Close CLI when exit event fires

* fix debugging for code and signal

* add test for exit before close

* template quotes -> single quotes

* resolveOn
2019-10-22 16:53:55 -04:00
Gleb Bahmutov
bd54e3dff7 types: add failures and message to npm module result (#5337)
* types: add failures and message to npm module result

* remove memberof in comments
2019-10-22 15:29:21 -04:00