Skip to content

Commit

Permalink
Merge pull request #14 from drydockcloud/cypress-11
Browse files Browse the repository at this point in the history
Updated cypress to version 11.2, updated the cypress config files and example test.
  • Loading branch information
dmundra authored Dec 12, 2022
2 parents c9463ad + 9f98506 commit 05de9a2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM cypress/included:9.7.0
FROM cypress/included:11.2.0

# Drydock environment setup
LABEL exposed.command.single=cypress
Expand All @@ -11,11 +11,11 @@ ENV CYPRESS_CACHE_FOLDER=/etc/Cypress
RUN mv /root/.cache/Cypress/ /etc

# Copy in sample files for base image testing
COPY cypress.json /src/
COPY smoketest.js /src/cypress/integration/
COPY cypress.config.js /src/
COPY smoketest.cy.js /src/cypress/e2e/

# Install Cypress plugins
RUN yarn add --cwd ../ axe-core cypress-axe@0.14.0
RUN yarn add --cwd ../ axe-core cypress-axe
RUN yarn add --cwd ../ @testing-library/cypress

COPY entrypoint.sh /usr/local/bin/entrypoint.sh
Expand Down
11 changes: 11 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { defineConfig } = require('cypress')

module.exports = defineConfig({
screenshotsFolder: '/results/screenshots/',
videosFolder: '/results/videos/',
reporter: 'junit',
reporterOptions: {
mochaFile: '/results/cypress.xml',
toConsole: true
}
})
9 changes: 0 additions & 9 deletions cypress.json

This file was deleted.

File renamed without changes.

0 comments on commit 05de9a2

Please sign in to comment.