Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Cypress #2622

Merged
merged 6 commits into from
Jan 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM mesosphere/dcos-system-test-driver:latest

# Specify the component versions to use
ENV CYPRESS_VERSION="0.19.1" \
NODE_VERSION="4.4.7" \
ENV NODE_VERSION="4.4.7" \
NPM_VERSION="3.9" \
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"

Expand Down Expand Up @@ -32,9 +31,7 @@ RUN set -x \
/var/lib/dpkg/info/ca-certificates-java.postinst configure \
# Install npm dependencies
&& cd /dcos-ui \
&& npm install -g cypress-cli git://github.com/johntron/http-server.git#proxy-secure-flag \
# Install cypress
&& cypress install --cypress-version ${CYPRESS_VERSION} \
&& npm install -g git://github.com/johntron/http-server.git#proxy-secure-flag \
# Install dcos-launch
&& curl 'https://downloads.dcos.io/dcos-launch/bin/linux/dcos-launch' > /usr/local/bin/dcos-launch \
&& chmod +x /usr/local/bin/dcos-launch \
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pipeline {
'export PATH=`pwd`/node_modules/.bin:$PATH',
'http-server -p 4200 dist&',
'SERVER_PID=$!',
'cypress run --reporter junit --reporter-options \'mochaFile=cypress/results.xml\'',
'npm run cypress -- --reporter junit --reporter-options \'mochaFile=cypress/results.xml\'',
'RET=$?',
'echo "cypress exit status: ${RET}"',
'sleep 10',
Expand Down
8 changes: 5 additions & 3 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"defaultCommandTimeout": 6000,
"environmentVariables": {
"env": {
"CLUSTER_URL": "http://localhost:4200",
"FULL_INTEGRATION_TEST": false
},
"fixturesFolder": "tests/_fixtures",
"integrationFolder": "tests",
"projectId": "a209b1cd-e44f-47a4-b22c-d8f26649f43f",
"supportFile": "tests/_support",
"waitForAnimations": true
}
"waitForAnimations": true,
"videoUploadOnPasses": false,
"numTestsKeptInMemory": 0
}
Loading