Commit Graph

12068 Commits

Author SHA1 Message Date
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
decaffeinate 286433a489 decaffeinate: Run post-processing cleanups on gulpfile.coffee 2019-07-25 17:27:44 +06:30
decaffeinate 51f3ea9303 decaffeinate: Convert gulpfile.coffee to JS 2019-07-25 17:27:36 +06:30
decaffeinate cbb2079e9f decaffeinate: Rename gulpfile.coffee from .coffee to .js 2019-07-25 17:27:35 +06:30
renovate[bot] 3b93c7b9be chore(deps): update dependency supertest-session to version .x… (#4815)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-25 17:25:31 +06:30
renovate[bot] 9883aaed56 chore(deps): update dependency supertest-session to version .x… (#4813)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-25 16:55:46 +06:30
renovate[bot] 1c7f9ea2cf chore(deps): update dependency decaffeinate to version .x 🌟 (#4812)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-25 15:46:47 +06:30
renovate[bot] b7de89e661 chore(deps): Update dependency supertest-session to version .x… (#4809)
* chore(deps): Update supertest-session to 2.0.1 🌟

* update supertest-session to no longer use module configuration - as this has been removed in 2.x

* supertest-session also no longer requires obj + app key, just pass app


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-07-25 14:35:25 +06:30
Jennifer Shehane f189d5e408 remove packages that do not appear to be used (#4755)
- I may have broken things - let’s see.
2019-07-25 11:08:01 +06:30
Ben Kucera 50a285a980 rename cy.type disableSpecialChars options (#4761)
* Revert "Add option to ignore special character sequences to cy.type (#4744)"

This reverts commit 8153c6ec96.

* rename disableSpecialCharSequences

* update err msg pt 2

* update err msg pt 3

* update parseSpecialChar booleon - default is TRUE

* remove trailing whitespace


Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-07-24 15:50:52 -04:00
renovate[bot] a6cf9d5a13 fix(deps): update dependency semver to version 6.3.0 🌟 (#4797)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-24 18:21:14 +06:30
renovate[bot] 39f72439f3 chore(deps): update dependency supertest-session to version .x… (#4718)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-07-24 15:39:15 +06:30
renovate[bot] a2266a6f62 chore(deps): update dependency ts-node to version .x 🌟 (major) (#4361)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-24 15:01:23 +06:30
renovate[bot] ce86d54c55 fix(deps): Update dependency @ffmpeg-installer/ffmpeg to versio… (#4792)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-24 11:38:01 +06:30
Ben Kucera 48393bf128 Decaffeinate helper scripts (#4781)
* decaf script setup

* update gitignore

* fix conflicts, remove decaffeinate script hooks


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-07-23 14:49:36 -04:00
Jennifer Shehane 73378fb191 Refactor readonly input typing (#4783)
* add failing test for situation where readonly prop changes over time.

* update logic to check for readonly prop to retry / throw err on failure of retry
2019-07-23 14:46:29 -04:00
Stefano Magni abc996ec70 Fix the cy.once typings (#4788)
* Fix the cy.once typings

* C -> c


Co-authored-by: Zach Bloomquist <github@chary.us>
2019-07-23 14:37:59 -04:00
Jennifer Shehane ffe75caa80 Update PR template from team feedback [skip ci] 2019-07-23 22:28:30 +06:30
renovate[bot] e74e8cf95c chore(deps): pin dependency autoprefixer to version 9.6.1 🌟 (#4786)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-23 17:33:46 +06:30
renovate[bot] 7dc3702e4e chore(deps): update dependency @cypress/eslint-plugin-dev to ve… (#4787)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-23 17:29:47 +06:30
renovate[bot] 9c43388b75 fix(deps): Update dependency mocha-junit-reporter to version 1.… (#4785)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-23 15:56:29 +06:30
Zach Bloomquist 78bdc05242 Update PULL_REQUEST_TEMPLATE.md (#4765)
* Update PULL_REQUEST_TEMPLATE.md

* Update PULL_REQUEST_TEMPLATE.md

* Update PULL_REQUEST_TEMPLATE.md
2019-07-23 15:55:28 +06:30
renovate[bot] 9756a0382d fix(deps): Update dependency lodash to version 4.17.15 🌟 (#4784)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-23 15:54:46 +06:30
Zach Bloomquist 835095fff1 Fix DNS lookup for 'localhost' when offline on Windows (#4774) 2019-07-22 12:57:17 -04:00
Ben Kucera e4f22fcf8d [internal] use localhost for webpack livereload plugin (#4769) 2019-07-22 12:56:35 -04:00
Ben Kucera ec25c7dff8 chore(windows): make install portable to windows (#4779)
* chore(install)
- make preinstall hook windows portable
- make link-packages script use junction symlinks for windows

* use npx

* run preinstll in appveyor

* remove win32 check, pin dep (and update .npmrc)
2019-07-22 12:30:52 -04:00
Gleb Bahmutov dd81ca5e3e add options argument to cy.contains TS definition (#4756) 2019-07-19 10:15:50 -04:00
Ben Kucera 456741b943 cleanup type_spec, allow unused-vars for args (#4759)
* cleanup type_spec, allow unused-vars for args

* fix missing return

* fix missing return 2

* Revert "fix missing return 2"

This reverts commit f5f01e74d3.

* Revert "Revert "fix missing return 2""

This reverts commit 1c4cbf798b.

* bump @cypress/eslint-plugin-dev
2019-07-18 17:17:14 -04:00
Ben Kucera 7857dac907 [internal] use webpack for builds (#4103)
* add webpack

* fix build proccess

* fix reporter build and test

* fix reporter test .css

* use apply(window, ...) since strict mode in webpack

* temp 05/13/19 [skip ci] resolver

* temp 05/14/19 [skip ci] webpack w/ root level symlinks

* run ci

* minor fixes

* fix link-packages script

* hopefully fix mac build

* re-add build-prod script in reporter

* fix typo in link-packages script

* fix lint errors

* fix node-version

* namespace files in webpack

* bust circle ci cache

* bust circle ci cache 2

* remove deps

* bust circle ci cache 3

* bust circle ci cache (launcher)

* ok circleci, you win. I will change all the cache keys

* update snapshot: not sure why added stack lines

* add mocha to reporter devDeps

* separate build file for reporter

* remove unneeded code

* node-sass-globbing use relative imports for appveyor

* add debugging for appveyor failure

* node-sass-globbing force unix paths for windows

* node-sass-globbing force unix paths for windows 2

* node-sass-globbing force unix paths for windows in runner

* run ci

* add checksum to packages caches

* bust circle ci cache (sub packages)

* testing code for appveyor env vars

* fix appveyor env vars for branchname
06-00000026

* fix binary build script, smoke test catch errors, include pkg mains
03-0000000a

* build binary in appveyor for this branch
07-00000047

* fix binary unit test, revert mocha upgrade in root, fix e2e specs
02-00000004

* statically replace symlinks at build time, add test, remove proxy packages code
03-00000002

* oops, update snapshot
04-00000049

* bump circle packages cache
02-00000005

* fix path.win32 on windows, add test for it
00-00000058

* for some reason packages ci cache is not including `rebuild-node-sass` in node_modules/.bin, and npm does not recreate .bin links if a node_modules folder already exists. so Im bumping all the npm caches, again
00-00000003

* emit during webpack-dev-server watch mode
02-00000020

* try revert circle.yml
02-0000002f

* try revert everything
03-0000003b

* Revert "try revert everything"

This reverts commit be125b88ff.

* no circle cache now
02-00000013

* remove logging in reporter build
06-00002a41

* Merge branch develop of github.com:cypress-io/cypress into webpack-runner
02-0000089b

* make build scripts DRY
04-00000a7f

* fix missing fonts, better watch mode
06-00003053

* use webpack --progress in watch mode
00-00000582

* move webpack config files into dedicated package
05-000023bf

* build desktop-gui with webpack, use relative scss url()s
03-00001801

* add timings info, fix configs
07-00005582

* enable sourcemaps "eval", fix desktopgui test
04-00005a08

* try 2: fix desktopgui test
01-0000058e

* fix lint
03-00000b10

* fix snapshot (very minor do not worry)
04-000014a4

* code cleanup
00-00007a4f

* try disable devtool
07-0000a97a

* remove cypress:// devtool sourceURL mapping to prevent cross-domain on electron
00-000056e4

* re-enable eval sourcemap in dev and prod
06-000051e6

* code cleanup
02-000056ae

* refactor node-jsdom setup for tests
00-000041a2

* re-enable sourceURL protocol, enable crossorigin script on runner to appease electron

* smoke tests for static assets in binary build script, disable sourceURL protocol mapping, more consistent dev/prod webpack builds

* use cross-env for desktop-gui

* desktop-dui: expect development NODE_ENV during build script (as has been in past)

* fix build script unit test

* fix build script unit test for real

* fix sourcemaps for dev/prod, add comments, add build static asset tests

* add cross-env to runner devDeps

* fix unit tests for build binary script

* fix whitespace

* add postcss autoprefixer + staticAsset tets

* add eslintrc to scripts/unit

* tabs -> spaces

* tabs -> spaces

* fix binary/util scripts

* fix testStaticAssets in build script

* fix extension requiring node socket

* fix unit-test for binary build script

* fix unit test for runner/reporter

* disable sourcemaps/eval in production

* fix disable sourcemaps in prod code

* resort jsons w/ new lint

* linting fixes

* runner/package.json add back rebuild-node-sass

* no circle cache again

* fix circle.yml

* try appveyor again

* fix binary build: remove "timers" from server/package.json.files

* fix testStaticAssets false-positive sourcemap detection (due to diff package)

* fix 2 failing e2e tests (run in chrome for now)
use build-prod scripts in binary-build script
add build-prod scripts to all packages

* a string is no regex

* correct merge: global_mode_spec

* fix all snapshot screenshot dimensions

* fix all snapshot screenshot dimensions (again)

* fix testStaticAssets development -> production

* Revert "fix all snapshot screenshot dimensions (again)"

This reverts commit d9022ef950.

* Revert "fix all snapshot screenshot dimensions"

This reverts commit 4f7628a051.

* helpers/e2e: only normalize screenshot dimensions NOT on electron

* post-task: windows build don't build on this branch

* post-task: un-bump circleci cache

* post-task: bump circleci cache packages/node_modules to v9

* cleanup: fix eol-newline, remove unneeded eslintrc

* bump circleci cache

* run rebuild-node-sass inside webpack build config

* bump circleci cache

* use cache version from env variable on circle

* use custom command to save cache for most packages

* add custom restore cache command

* restore 2 packages separately

* allow passing package path to restore

* pass explicit path to package to restore

* add restore-caches and save-caches

* print name for restoring cache commands

* print name when storing cache

* print .bin when saving cache

* fix path to .bin

* print launcher .bin

* show .bin for desktop-gui

* print bins

* update npm version

* update npm version - try 2

* update npm version - try 3

* remove circleci debugging print commands

* Revert "remove circleci debugging print commands"

This reverts commit 248966efcd.

* add TERM=xterm to Circle

* Revert "Revert "remove circleci debugging print commands""

This reverts commit cf77273b10.

* Revert "add TERM=xterm to Circle"

This reverts commit dc77c94c57.

* remove --serial arg from run all scripts

* add web-config package to cache

* simplify circleci build job

* circleci: try rmrf node_modules/@packages before install

* appveyor: try removing --serial from install script

* Revert "appveyor: try removing --serial from install script"

This reverts commit 7ef619ff30.

* use appveyor from develop

* use preinstall removing subpackage symlinks
fix webpack config typescript errors
fix path to rebuild-node-sass in packages/web-config
assert replace minimum number of symlink requires

* test binary build [build binary]

* fix transformRequires code [build binary]
2019-07-18 12:11:27 -04:00
renovate[bot] 0449608a71 fix(deps): update dependency p-queue to version .x 🌟 (#4750)
* fix(deps): update p-queue to 6.1.0 🌟

* properly import p-queue v6 - rename to pQueue to match their docs


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-07-18 15:13:57 +06:30
John Arlinghaus 8153c6ec96 Add option to ignore special character sequences to cy.type (#4744)
* Added option to ignore special character sequences to cy.type

* Fixed lint issues

* Made option to disable special character sequences more explicitly named.

* Add typedef for new disableSpecialCharSequences option of type


Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
2019-07-18 14:47:55 +06:30
renovate[bot] d01e3bfa90 fix(deps): update dependency browserify to version .x 🌟 (#4751)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2019-07-18 14:31:18 +06:30
Jennifer Shehane fcabf50cde Do not allow typing into readonly fields. (#4729)
* Do not allow typing into readonly fields.

* fix failing spec + some chaining in cy

* Fix failing specs - refactor test generation.
2019-07-18 14:28:56 +06:30
Jennifer Shehane e06ad7828c Add ability to zoom in / out in Electron browser (#4728)
* Add ability to zoom in / out in Electron browser

- tested manually also 👍

* Move reload back to dev tools menu

* make sure eslint is enabled

* add globals defined in spec_helper to eslintrc

* remove unused require

* decaffeinate menu files + fix failing test

* fix decaffeinate merge issues
2019-07-18 14:25:57 +06:30
Brian Mann e9cb9f4c7e cleanup menu + spec, enforce eslint autofix on save in vscode, add root to globals 2019-07-17 17:45:11 -04:00