mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-13 02:40:22 -05:00
electron: upgrade to 1.8.2, node 8.2.1, chromium 59 (#1275)
* electron: upgrade to 1.8.2, node 8.2.1, chromium 59 * server: update snapshots for node * server: try to debug timeouts for mochawesome * bump zunder - node-sass 3.13.1 does not work with Node 8, since we’re upgrading the project to node 8.2.1, we needed node-sass 4.5.3+. This node-sass dep was coming from gulp-sass dep in zunder which has since been updated * server: figured out that fixture scaffolding can cause timeouts * bump zunder - get fix so that asserts are not prefixed with / * server: use our own heroku example app * use cypress/browsers:chrome64 docker image on Circle with Node 8 * update root folder name * add hash to root cache * disable permissions test, because cannot run as root * server: only disable test in CI * test new binary against other projects * all: rename cypress-monorepo -> cypress * scripts: use latest docker container * server: don't skip as this messes up hooks which cause failures downstream * driver: bump timeout for zonejs * server: make tests pass for node 8.2.1 and 8.4.0
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
6.5.0
|
||||
8.2.1
|
||||
|
||||
+55
-55
@@ -2,21 +2,13 @@ version: 2
|
||||
|
||||
defaults: &defaults
|
||||
parallelism: 1
|
||||
working_directory: ~/cypress-monorepo
|
||||
working_directory: ~/cypress
|
||||
docker:
|
||||
# the Docker image with Cypress dependencies and Chrome browser
|
||||
- image: cypress/browsers:chrome62
|
||||
- image: cypress/browsers:chrome64
|
||||
environment:
|
||||
## this enables colors + fixes failing unit tests
|
||||
TERM: xterm
|
||||
|
||||
CIRCLE_ARTIFACTS: /tmp/artifacts ## store artifacts here
|
||||
|
||||
npm_config_loglevel: warn
|
||||
# even when running as non-root user
|
||||
# need to set unsafe perm to be able to do `npm postinstall`
|
||||
npm_config_unsafe-perm: true
|
||||
|
||||
jobs:
|
||||
## code checkout and NPM installs
|
||||
build:
|
||||
@@ -24,8 +16,12 @@ jobs:
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
# print global NPM cache path
|
||||
- run: echo $(npm -g bin)
|
||||
- run:
|
||||
name: Print working folder
|
||||
command: echo $PWD
|
||||
- run:
|
||||
name: print global NPM cache path
|
||||
command: echo $(npm -g bin)
|
||||
|
||||
## make sure the TERM is set to 'xterm' in node
|
||||
## else colors (and tests) will fail
|
||||
@@ -167,15 +163,15 @@ jobs:
|
||||
## hmm, do not see a good way to cache it, since all code
|
||||
## might change
|
||||
- save_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}-{{ checksum "circle.yml" }}
|
||||
paths:
|
||||
- /home/person/cypress-monorepo
|
||||
- /root/cypress
|
||||
|
||||
lint:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run: npm run lint
|
||||
- run: npm run all lint
|
||||
|
||||
@@ -184,7 +180,7 @@ jobs:
|
||||
parallelism: 1
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
# make sure mocha runs
|
||||
- run: npm run test-mocha
|
||||
# make sure our snapshots are compared correctly
|
||||
@@ -201,88 +197,88 @@ jobs:
|
||||
- run: npm run all test -- --package socket
|
||||
- run: npm run all test -- --package static
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
|
||||
"server-unit-tests":
|
||||
<<: *defaults
|
||||
parallelism: 2
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run: npm run all test-unit -- --package server
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
|
||||
"server-integration-tests":
|
||||
<<: *defaults
|
||||
parallelism: 2
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run: npm run all test-integration -- --package server
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
|
||||
"server-e2e-tests-1":
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm run test-e2e -- --parallel 5 --index 0
|
||||
working_directory: packages/server
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
|
||||
"server-e2e-tests-2":
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm run test-e2e -- --parallel 5 --index 1
|
||||
working_directory: packages/server
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
|
||||
"server-e2e-tests-3":
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm run test-e2e -- --parallel 5 --index 2
|
||||
working_directory: packages/server
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
|
||||
"server-e2e-tests-4":
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm run test-e2e -- --parallel 5 --index 3
|
||||
working_directory: packages/server
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
|
||||
"server-e2e-tests-5":
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm run test-e2e -- --parallel 5 --index 4
|
||||
working_directory: packages/server
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
|
||||
"driver-integration-tests-1":
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm start
|
||||
background: true
|
||||
@@ -294,7 +290,7 @@ jobs:
|
||||
command: npm run cypress:run -- --parallel 5 --index 0
|
||||
working_directory: packages/driver
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
- store_artifacts:
|
||||
path: /tmp/artifacts
|
||||
|
||||
@@ -302,7 +298,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm start
|
||||
working_directory: packages/driver
|
||||
@@ -314,7 +310,7 @@ jobs:
|
||||
command: npm run cypress:run -- --parallel 5 --index 1
|
||||
working_directory: packages/driver
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
- store_artifacts:
|
||||
path: /tmp/artifacts
|
||||
|
||||
@@ -322,7 +318,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm start
|
||||
working_directory: packages/driver
|
||||
@@ -334,7 +330,7 @@ jobs:
|
||||
command: npm run cypress:run -- --parallel 5 --index 2
|
||||
working_directory: packages/driver
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
- store_artifacts:
|
||||
path: /tmp/artifacts
|
||||
|
||||
@@ -342,7 +338,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm start
|
||||
working_directory: packages/driver
|
||||
@@ -354,7 +350,7 @@ jobs:
|
||||
command: npm run cypress:run -- --parallel 5 --index 3
|
||||
working_directory: packages/driver
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
- store_artifacts:
|
||||
path: /tmp/artifacts
|
||||
|
||||
@@ -362,7 +358,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm start
|
||||
working_directory: packages/driver
|
||||
@@ -374,7 +370,7 @@ jobs:
|
||||
command: npm run cypress:run -- --parallel 5 --index 4
|
||||
working_directory: packages/driver
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
- store_artifacts:
|
||||
path: /tmp/artifacts
|
||||
|
||||
@@ -382,7 +378,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm run build-prod
|
||||
working_directory: packages/desktop-gui
|
||||
@@ -390,7 +386,7 @@ jobs:
|
||||
command: npm run cypress:run -- --parallel 3 --index 0
|
||||
working_directory: packages/desktop-gui
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
- store_artifacts:
|
||||
path: /tmp/artifacts
|
||||
|
||||
@@ -398,7 +394,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm run build-prod
|
||||
working_directory: packages/desktop-gui
|
||||
@@ -406,7 +402,7 @@ jobs:
|
||||
command: npm run cypress:run -- --parallel 3 --index 1
|
||||
working_directory: packages/desktop-gui
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
- store_artifacts:
|
||||
path: /tmp/artifacts
|
||||
|
||||
@@ -414,7 +410,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: npm run build-prod
|
||||
working_directory: packages/desktop-gui
|
||||
@@ -422,7 +418,7 @@ jobs:
|
||||
command: npm run cypress:run -- --parallel 3 --index 2
|
||||
working_directory: packages/desktop-gui
|
||||
- store_test_results:
|
||||
path: /tmp/cypress-monorepo
|
||||
path: /tmp/cypress
|
||||
- store_artifacts:
|
||||
path: /tmp/artifacts
|
||||
|
||||
@@ -430,7 +426,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
command: node index.js
|
||||
working_directory: packages/launcher
|
||||
@@ -439,7 +435,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run: $(npm bin)/print-arch
|
||||
- run: npm run binary-build -- --platform linux --version $NEXT_DEV_VERSION
|
||||
- run: npm run binary-zip -- --platform linux
|
||||
@@ -465,7 +461,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
name: Cloning test project
|
||||
command: git clone https://github.com/cypress-io/cypress-example-kitchensink.git /tmp/repo
|
||||
@@ -491,7 +487,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
name: Cloning test project
|
||||
command: git clone https://github.com/cypress-io/cypress-test-tiny.git /tmp/repo
|
||||
@@ -507,7 +503,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- run:
|
||||
name: bump NPM version
|
||||
command: npm --no-git-tag-version version $NEXT_DEV_VERSION
|
||||
@@ -549,7 +545,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- attach_workspace:
|
||||
at: /tmp/urls
|
||||
- run: ls -la /tmp/urls
|
||||
@@ -583,7 +579,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- attach_workspace:
|
||||
at: /tmp/urls
|
||||
# make sure we have cypress.zip received
|
||||
@@ -613,7 +609,7 @@ jobs:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: cypress-monorepo-{{ .Branch }}-{{ .Revision }}
|
||||
key: cypress-{{ .Branch }}-{{ .Revision }}
|
||||
- attach_workspace:
|
||||
at: /tmp/urls
|
||||
# make sure we have the binary
|
||||
@@ -715,6 +711,7 @@ workflows:
|
||||
branches:
|
||||
only:
|
||||
- develop
|
||||
- issue-895
|
||||
requires:
|
||||
- build
|
||||
- build-binary:
|
||||
@@ -722,6 +719,7 @@ workflows:
|
||||
branches:
|
||||
only:
|
||||
- develop
|
||||
- issue-895
|
||||
requires:
|
||||
- build
|
||||
- test-next-version:
|
||||
@@ -729,6 +727,7 @@ workflows:
|
||||
branches:
|
||||
only:
|
||||
- develop
|
||||
- issue-895
|
||||
requires:
|
||||
- build-npm-package
|
||||
- build-binary
|
||||
@@ -745,6 +744,7 @@ workflows:
|
||||
branches:
|
||||
only:
|
||||
- develop
|
||||
- issue-895
|
||||
requires:
|
||||
- build-npm-package
|
||||
- build-binary
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"reporterEnabled": "spec, mocha-junit-reporter",
|
||||
"mochaJunitReporterReporterOptions": {
|
||||
"mochaFile": "/tmp/cypress-monorepo/junit/test-results.[hash].xml"
|
||||
"mochaFile": "/tmp/cypress/junit/test-results.[hash].xml"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
"description": "Cypress.io end to end testing tool",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">=6.5.0"
|
||||
"node": ">=8.2.1"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node ./cli/bin/cypress open --dev --global",
|
||||
|
||||
@@ -43,6 +43,6 @@
|
||||
"react-bootstrap-modal": "3.0.1",
|
||||
"react-dom": "^15.6.1",
|
||||
"react-loader": "^2.4.0",
|
||||
"zunder": "5.5.2"
|
||||
"zunder": "5.6.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ describe "src/cy/commands/waiting", ->
|
||||
null
|
||||
.wait("@fetch")
|
||||
|
||||
## https://github.com/cypress-io/cypress-monorepo/issues/369
|
||||
## https://github.com/cypress-io/cypress/issues/369
|
||||
it "does not mutate 2nd route methods when using shorthand route", ->
|
||||
cy
|
||||
.server()
|
||||
@@ -565,7 +565,7 @@ describe "src/cy/commands/waiting", ->
|
||||
expect(xhr.responseBody).to.deep.eq resp
|
||||
|
||||
## TODO: fixme failing in CI sometimes
|
||||
## https://circleci.com/gh/cypress-io/cypress-monorepo/5655
|
||||
## https://circleci.com/gh/cypress-io/cypress/5655
|
||||
it.skip "waits for the 4th request before resolving", ->
|
||||
resp = {foo: "foo"}
|
||||
response = 0
|
||||
|
||||
@@ -3,7 +3,7 @@ describe "zone.js", ->
|
||||
it "can serialize XHRs without blowing out the stack", ->
|
||||
cy
|
||||
.visit("/fixtures/zonejs.html")
|
||||
.window().then (win) ->
|
||||
.window().then { timeout: 30000 }, (win) ->
|
||||
new Promise (resolve, reject) ->
|
||||
xhr = new win.XMLHttpRequest()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@packages/electron",
|
||||
"version": "0.0.0",
|
||||
"electronVersion": "1.4.6",
|
||||
"electronVersion": "1.8.2",
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -64,6 +64,6 @@
|
||||
"rebuild-node-sass": "^1.1.0",
|
||||
"sinon": "^1.17.4",
|
||||
"sinon-chai": "^2.8.0",
|
||||
"zunder": "5.5.2"
|
||||
"zunder": "5.6.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,6 @@
|
||||
"rebuild-node-sass": "^1.1.0",
|
||||
"sinon": "^1.17.5",
|
||||
"sinon-chai": "^2.8.0",
|
||||
"zunder": "5.5.2"
|
||||
"zunder": "5.6.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,3 +44,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -67,3 +67,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -78,3 +78,4 @@ Fix the error in your code and re-run your tests.
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -39,3 +39,4 @@ Fix the error in your code and re-run your tests.
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -35,3 +35,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ Because this error occurred during a 'before each' hook we are skipping the rema
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -243,3 +244,4 @@ Because this error occurred during a 'before each' hook we are skipping the rema
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -64,3 +64,4 @@ We dynamically generated a new test to display this failure.
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -93,3 +94,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -37,3 +37,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -93,3 +94,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -33,3 +33,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -39,3 +39,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -33,3 +33,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -43,3 +43,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -55,3 +56,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -118,3 +118,4 @@ https://on.cypress.io/uncaught-exception-from-application
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -30,3 +30,4 @@ Started video recording: /foo/bar/.projects/no-scaffolding/cypress/videos/abc123
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -32,3 +32,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -34,3 +34,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ Error: Async error from plugins file
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
(Tests Finished)
|
||||
@@ -140,3 +141,4 @@ A video will not be recorded when using this browser.
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
2) catches promise errors and calls done with err even when async:
|
||||
Error: foo
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -48,3 +49,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -116,6 +116,7 @@ RequestError: Error: connect ECONNREFUSED 127.0.0.1:16795
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -212,6 +213,7 @@ Body: Service Unavailable
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ https://on.cypress.io/returning-value-and-commands-in-custom-command
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -107,3 +108,4 @@ https://on.cypress.io/returning-value-and-commands-in-custom-command
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ exports['lib/plugins/child/run_plugins sends error message if pluginsFile is mis
|
||||
at Function.hookedLoader [as _load] <path>mockery.js
|
||||
at Module.require <path>module.js
|
||||
at require <path>module.js
|
||||
at module.exports.err <path>run_plugins.js
|
||||
at module.exports <path>run_plugins.js
|
||||
at Context.<anonymous> <path>run_plugins_spec.coffee
|
||||
at callFn <path>runnable.js
|
||||
at Test.Runnable.run <path>runnable.js
|
||||
@@ -35,7 +35,7 @@ exports['lib/plugins/child/run_plugins sends error message if requiring pluginsF
|
||||
at Function.hookedLoader [as _load] <path>mockery.js
|
||||
at Module.require <path>module.js
|
||||
at require <path>module.js
|
||||
at module.exports.err <path>run_plugins.js
|
||||
at module.exports <path>run_plugins.js
|
||||
at Context.<anonymous> <path>run_plugins_spec.coffee
|
||||
at callFn <path>runnable.js
|
||||
at Test.Runnable.run <path>runnable.js
|
||||
@@ -65,4 +65,3 @@ exports['lib/plugins/child/run_plugins on \'load\' message sends error if plugin
|
||||
"name": "ReferenceError",
|
||||
"message": "foo is not defined"
|
||||
}
|
||||
|
||||
|
||||
@@ -75,3 +75,4 @@ Because this error occurred during a 'after each' hook we are skipping the remai
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ Because this error occurred during a 'before each' hook we are skipping the rema
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
3) stdout_failing_spec passing hook is failing:
|
||||
CypressError: cy.visit() failed trying to load:
|
||||
@@ -76,6 +77,7 @@ The internal Cypress web server responded with:
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -198,3 +200,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -286,3 +286,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -53,3 +53,4 @@ We dynamically generated a new test to display this failure.
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -34,3 +34,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -101,6 +101,7 @@ Error: connect ECONNREFUSED 127.0.0.1:16795
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -171,6 +172,7 @@ If you do not want status codes to cause failures pass the option: 'failOnStatus
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -241,6 +243,7 @@ The internal Cypress web server responded with:
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -313,6 +316,7 @@ cy.request() will automatically get and set cookies and enable you to parse resp
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -383,6 +387,7 @@ When this 'load' event occurs, Cypress will continue running commands.
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
2) when visit times out fails timeout exceeds timeout option:
|
||||
CypressError: Timed out after waiting '500ms' for your remote page to load.
|
||||
@@ -409,6 +414,7 @@ When this 'load' event occurs, Cypress will continue running commands.
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
at stack trace line
|
||||
|
||||
|
||||
|
||||
@@ -440,3 +446,4 @@ When this 'load' event occurs, Cypress will continue running commands.
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -177,3 +177,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -40,3 +40,4 @@ Started video recording: /foo/bar/.projects/e2e/cypress/videos/abc123.mp4
|
||||
(All Done)
|
||||
|
||||
`
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ normalizeBackslashes = (options) ->
|
||||
## remove stray double quote from runProject and other path properties
|
||||
## due to bug in NPM passing arguments with
|
||||
## backslash at the end
|
||||
## https://github.com/cypress-io/cypress-monorepo/issues/535
|
||||
## https://github.com/cypress-io/cypress/issues/535
|
||||
# these properties are paths and likely to have backslash on Windows
|
||||
pathProperties = ["runProject", "project", "appPath", "execPath"]
|
||||
|
||||
|
||||
@@ -563,6 +563,11 @@ describe "lib/cypress", ->
|
||||
## also make sure we test the rest of the integration functionality
|
||||
## for headed errors! <-- not unit tests, but integration tests!
|
||||
it "logs error and exits when project folder has read permissions only and cannot write cypress.json", ->
|
||||
if process.env.CI
|
||||
## Gleb: disabling this because Node 8 docker image runs as root
|
||||
## which makes accessing everything possible.
|
||||
return
|
||||
|
||||
permissionsPath = path.resolve("./permissions")
|
||||
|
||||
cypressJson = path.join(permissionsPath, "cypress.json")
|
||||
|
||||
@@ -1318,7 +1318,7 @@ describe "Routes", ->
|
||||
expect(res.body).to.include("The error was:")
|
||||
expect(res.body).to.include("incorrect header check")
|
||||
expect(res.body).to.include("The stack trace was:")
|
||||
expect(res.body).to.include("at Zlib._handle.onerror")
|
||||
expect(res.body).to.include("at Gunzip.zlibOnError")
|
||||
expect(res.body).to.include("<html>\n<head> <script")
|
||||
expect(res.body).to.include("</script> </head> <body>")
|
||||
expect(res.body).to.include("document.domain = 'github.com';") ## should continue to inject
|
||||
|
||||
@@ -543,7 +543,7 @@ describe "Server", ->
|
||||
@server._onResolveUrl("http://localhost:64646", {}, @automationRequest)
|
||||
.catch (err) ->
|
||||
expect(err.message).to.eq("connect ECONNREFUSED 127.0.0.1:64646")
|
||||
expect(err.stack).to.include("Object.exports._errnoException")
|
||||
expect(err.stack).to.include("._errnoException")
|
||||
expect(err.port).to.eq(64646)
|
||||
expect(err.code).to.eq("ECONNREFUSED")
|
||||
|
||||
|
||||
+2
-2
@@ -8,5 +8,5 @@ describe "com.au", ->
|
||||
|
||||
describe "herokuapp.com", ->
|
||||
it "can visit", ->
|
||||
cy.visit("https://example.herokuapp.com")
|
||||
cy.contains("Example Heroku App")
|
||||
cy.visit("https://cypress-example.herokuapp.com")
|
||||
cy.contains("Getting Started with Node on Heroku")
|
||||
|
||||
@@ -11,6 +11,7 @@ morgan = require("morgan")
|
||||
express = require("express")
|
||||
Promise = require("bluebird")
|
||||
snapshot = require("snap-shot-it")
|
||||
debug = require("debug")("cypress:support:e2e")
|
||||
Fixtures = require("./fixtures")
|
||||
allowDestroy = require("#{root}../lib/util/server_destroy")
|
||||
user = require("#{root}../lib/user")
|
||||
@@ -112,9 +113,15 @@ module.exports = {
|
||||
fs.removeAsync(Fixtures.path("projects/e2e/node_modules/.bin"))
|
||||
|
||||
after ->
|
||||
## now cleanup the node modules after because these add a lot
|
||||
## of copy time for the Fixtures scaffolding
|
||||
fs.removeAsync(Fixtures.path("projects/e2e/node_modules"))
|
||||
|
||||
beforeEach ->
|
||||
## after installing node modules copying all of the fixtures
|
||||
## can take a long time (5-15 secs)
|
||||
@timeout(human("2 minutes"))
|
||||
|
||||
Fixtures.scaffold()
|
||||
|
||||
@sandbox.stub(process, "exit")
|
||||
@@ -129,10 +136,14 @@ module.exports = {
|
||||
else
|
||||
@servers = null
|
||||
.then =>
|
||||
|
||||
if s = options.settings
|
||||
settings.write(e2ePath, s)
|
||||
.then =>
|
||||
|
||||
afterEach ->
|
||||
@timeout(human("2 minutes"))
|
||||
|
||||
Fixtures.remove()
|
||||
|
||||
if s = @servers
|
||||
|
||||
@@ -28,7 +28,7 @@ describe "lib/util/args", ->
|
||||
expect(options.projectPath).to.eq projectPath
|
||||
|
||||
it "strips single double quote from the end", ->
|
||||
# https://github.com/cypress-io/cypress-monorepo/issues/535
|
||||
# https://github.com/cypress-io/cypress/issues/535
|
||||
# NPM does not pass correctly options that end with backslash
|
||||
options = @setup("--run-project", "C:\\foo\"")
|
||||
expect(options.runProject).to.eq("C:\\foo")
|
||||
|
||||
@@ -13,7 +13,7 @@ echo Command npm run binary-deploy -- "$@"
|
||||
|
||||
docker run \
|
||||
-e npm_config_loglevel='warn' \
|
||||
-v $PWD:/home/person/cypress-monorepo \
|
||||
-w /home/person/cypress-monorepo \
|
||||
-v $PWD:/home/person/cypress \
|
||||
-w /home/person/cypress \
|
||||
-it $name \
|
||||
npm run binary-deploy -- "$@"
|
||||
|
||||
@@ -2,7 +2,7 @@ set e+x
|
||||
|
||||
echo "This script should be run from cypress's root"
|
||||
|
||||
name=cypress/browsers:chrome62
|
||||
name=cypress/browsers:chrome64
|
||||
echo "Pulling CI container $name"
|
||||
|
||||
docker pull $name
|
||||
|
||||
Reference in New Issue
Block a user