Skip to content

Commit

Permalink
chore(#92): move cypress dependencies (#561)
Browse files Browse the repository at this point in the history
* chore(#92): moved cypress dependencies and scripts

* chore(#92): update docs e2e tests setup

* chore(#92): add cypress dashboard config

* chore(#92): install cypress binary

* chore(#92): fix docs test in ci

* chore(#92): add cypress tags to CI
  • Loading branch information
Decipher authored Aug 30, 2022
1 parent db80dc6 commit 7ea69c6
Show file tree
Hide file tree
Showing 12 changed files with 1,011 additions and 2,057 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ jobs:
command: |
cd docs/drupal && ddev drupal-install
- run:
name: Install cypress
command: npx cypress install

- run:
name: Run end-to-end tests
command: yarn test:e2e
Expand All @@ -121,7 +125,7 @@ jobs:

- run:
name: Run DruxtJS.org end-to-end tests
command: cd docs/nuxt && nvm i && nvm use && npm install --global yarn && yarn && yarn test
command: yarn docs:test
- store_artifacts:
path: ./docs/nuxt/test/cypress/screenshots
- store_artifacts:
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.16.0
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![npm](https://badgen.net/npm/v/druxt)](https://www.npmjs.com/package/druxt)
[![CircleCI](https://circleci.com/gh/druxt/druxt.js.svg?style=svg)](https://circleci.com/gh/druxt/druxt.js)
[![Cypress](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/w4vd6v&style=flat&logo=cypress)](https://dashboard.cypress.io/projects/w4vd6v/runs)
[![Known Vulnerabilities](https://snyk.io/test/github/druxt/druxt.js/badge.svg?targetFile=package.json)](https://snyk.io/test/github/druxt/druxt.js?targetFile=package.json)
[![codecov](https://codecov.io/gh/druxt/druxt.js/branch/develop/graph/badge.svg)](https://codecov.io/gh/druxt/druxt.js)

Expand Down
2 changes: 1 addition & 1 deletion docs/nuxt/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v17.9.1
v16.16.0
10 changes: 3 additions & 7 deletions docs/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@
"scripts": {
"cypress:open": "npx cypress open --project test",
"cypress:run": "npx cypress run --project test",
"dev": "NODE_OPTIONS='--openssl-legacy-provider' nuxt",
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"storybook": "nuxt storybook",
"test": "start-server-and-test 'yarn dev' http://localhost:3000 'yarn cypress:run'",
"test:open": "start-server-and-test 'yarn dev' http://localhost:3000 'yarn cypress:open'"
"storybook": "nuxt storybook"
},
"dependencies": {
"@nuxt/content": "1.15.1",
Expand All @@ -27,8 +25,6 @@
"@nuxtjs/google-analytics": "2.4.0",
"@nuxtjs/pwa": "3.3.5",
"@nuxtjs/storybook": "4.2.0",
"@nuxtjs/tailwindcss": "4.2.1",
"cypress": "^10.6.0",
"start-server-and-test": "^1.14.0"
"@nuxtjs/tailwindcss": "4.2.1"
}
}
1 change: 1 addition & 0 deletions docs/nuxt/test/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { defineConfig } = require("cypress");

module.exports = defineConfig({
projectId: 'w4vd6v',
e2e: {
baseUrl: 'http://localhost:3000',
setupNodeEvents(on, config) {
Expand Down
Loading

0 comments on commit 7ea69c6

Please sign in to comment.