diff --git a/.github/workflows/smoke_tests.yaml b/.github/workflows/smoke_tests.yaml index 9529f95..280bcd5 100644 --- a/.github/workflows/smoke_tests.yaml +++ b/.github/workflows/smoke_tests.yaml @@ -63,7 +63,7 @@ jobs: export NEXUS_PASS=$(cat /tmp/password) echo $NEXUS_PASS cat /tmp/password - cypress run --headless --browser chrome + cypress run env: TEST_SNYK_TOKEN: ${{ secrets.TEST_SNYK_TOKEN }} TEST_SNYK_ORG: ${{ secrets.TEST_SNYK_ORG }} @@ -83,14 +83,14 @@ jobs: if: always() with: name: screenshots - path: /home/runner/work/nexus-snyk-security-plugin/nexus-snyk-security-plugin/test/smoke/cypress/screenshots/cypress-test.spec.js/ + path: /home/runner/work/nexus-snyk-security-plugin/nexus-snyk-security-plugin/test/smoke/cypress/screenshots/cypress-test.cy.js/test retention-days: 1 - uses: actions/upload-artifact@v2 if: always() with: name: video - path: /home/runner/work/nexus-snyk-security-plugin/nexus-snyk-security-plugin/test/smoke/cypress/videos/cypress-test.spec.js.mp4 + path: /home/runner/work/nexus-snyk-security-plugin/nexus-snyk-security-plugin/test/smoke/cypress/videos/cypress-test.cy.js.mp4 retention-days: 1 - name: Save docker logs to file diff --git a/test/smoke/cypress.config.js b/test/smoke/cypress.config.js new file mode 100644 index 0000000..fab1138 --- /dev/null +++ b/test/smoke/cypress.config.js @@ -0,0 +1,12 @@ +module.exports = { + defaultCommandTimeout: 10000, + e2e: { + // We've imported your old cypress plugins here. + // You may want to clean this up later by importing these. + setupNodeEvents(on, config) { + return require('./cypress/plugins/index.js')(on, config); + }, + supportFile: false, + video: true, + }, +}; diff --git a/test/smoke/cypress.json b/test/smoke/cypress.json deleted file mode 100644 index f1f0f50..0000000 --- a/test/smoke/cypress.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "defaultCommandTimeout": 10000 -} diff --git a/test/smoke/cypress/integration/cypress-test.spec.js b/test/smoke/cypress/e2e/cypress-test.cy.js similarity index 100% rename from test/smoke/cypress/integration/cypress-test.spec.js rename to test/smoke/cypress/e2e/cypress-test.cy.js