Skip to content

Commit

Permalink
chore(cypress): upgrade cypress and remove self build cypress image (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hgw77 authored Oct 29, 2024
1 parent 6bdaaf8 commit aea945b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
11 changes: 1 addition & 10 deletions e2e/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
// https://docs.cypress.io/guides/references/configuration
const { defineConfig } = require("cypress")
const { cloudPlugin } = require("cypress-cloud/plugin")

module.exports = defineConfig({
e2e: {
defaultCommandTimeout: 20000,
pageLoadTimeout: 20000,
viewportWidth: 1300,
viewportHeight: 1100,
videoCompression: 20,
chromeWebSecurity: false,
includeShadowDom: true,
supportFile: "cypress/support/index.js", // Path to file to load before spec files load. This file is compiled and bundled. (Pass false to disable)
specPattern: "cypress/integration/**/*.{js,jsx}", // A String or Array of glob patterns of the test files to load.
setupNodeEvents(on, config) {
on("task", {
log(message) {
console.log(message)
return null
},
})
return cloudPlugin(on, config)
},
},
})
5 changes: 2 additions & 3 deletions e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ docker run --rm -it \
--env CYPRESS_TEST_DOMAIN="$TEST_DOMAIN" \
--entrypoint $CY_CMD \
--network=host \
keppel.eu-de-1.cloud.sap/ccloud/cypress-client:latest run "${CY_OPTIONS[@]}" --spec "$SPECS_FOLDER" --browser "$CYPRESS_BROWSER"
keppel.eu-de-1.cloud.sap/ccloud-dockerhub-mirror/cypress/included:12.17.3 run "${CY_OPTIONS[@]}" --spec "$SPECS_FOLDER" --browser "$CYPRESS_BROWSER"
# NOTE: for testing and debug inside the container use --entrypoint /bin/bash
# https://github.wdf.sap.corp/cc/secrets/tree/master/ci/cypress-dashboard/Dockerfile
# https://main.ci.eu-de-2.cloud.sap/teams/services/pipelines/cypress-dashboard/jobs/build-cypress-client-image/
# https://hub.docker.com/r/cypress/included/tags?name=12.17.3

0 comments on commit aea945b

Please sign in to comment.