From db6969e4f47ec30f761bf9e71a55b7fa20342dca Mon Sep 17 00:00:00 2001 From: huwshimi Date: Fri, 3 Jun 2022 21:26:41 +1000 Subject: [PATCH] refactor(cypress): merge the integration workspace (#3992) Merge the contents of the integration workspace with the top level package. Fixes: canonical-web-and-design/app-tribe#1010. --- integration/.env => .env.test | 0 .github/workflows/accessibility.yml | 2 +- .github/workflows/cypress.yml | 8 ++-- .gitignore | 5 +++ README.md | 2 +- integration/cypress.json => cypress.json | 0 {integration => cypress}/.eslintrc.js | 0 {integration/cypress => cypress}/constants.ts | 0 .../cypress => cypress}/fixtures/example.json | 0 .../accessibility/accessibility.spec.ts | 0 .../integration/docs-links/docs-links.spec.ts | 0 .../integration/no-users/login.spec.ts | 0 .../cypress => cypress}/integration/utils.ts | 0 .../with-users/base/footer.spec.ts | 0 .../with-users/base/header.spec.ts | 0 .../with-users/controllers/list.spec.ts | 0 .../with-users/dashboard/dashboard.spec.ts | 0 .../with-users/devices/list.spec.ts | 0 .../with-users/domains/list.spec.ts | 0 .../with-users/images/list.spec.ts | 0 .../integration/with-users/kvm/list.spec.ts | 0 .../with-users/legacy/auth.spec.ts | 0 .../with-users/login/login.spec.ts | 0 .../with-users/machines/add.spec.ts | 0 .../with-users/machines/list.spec.ts | 0 .../integration/with-users/pools/list.spec.ts | 0 .../with-users/preferences/base.spec.ts | 0 .../with-users/settings/base.spec.ts | 0 .../settings/configuration/deploy.spec.ts | 0 .../with-users/settings/users/add.spec.ts | 0 .../with-users/settings/users/list.spec.ts | 0 .../with-users/subnets/add.spec.ts | 0 .../with-users/subnets/subnets.spec.ts | 0 .../integration/with-users/zones/list.spec.ts | 0 cypress/percy.sh | 9 ++++ .../cypress => cypress}/percy/percy.spec.ts | 0 .../cypress => cypress}/plugins/index.js | 0 .../cypress => cypress}/support/commands.ts | 0 .../cypress => cypress}/support/index.ts | 0 .../cypress => cypress}/tsconfig.json | 2 +- HACKING.md => docs/HACKING.md | 2 +- integration/README.md => docs/INTEGRATION.md | 4 +- RELEASE.md => docs/RELEASE.md | 0 integration/.gitignore | 38 ---------------- integration/package.json | 45 ------------------- integration/percy.sh | 9 ---- package.json | 32 ++++++++++--- 47 files changed, 49 insertions(+), 109 deletions(-) rename integration/.env => .env.test (100%) rename integration/cypress.json => cypress.json (100%) rename {integration => cypress}/.eslintrc.js (100%) rename {integration/cypress => cypress}/constants.ts (100%) rename {integration/cypress => cypress}/fixtures/example.json (100%) rename {integration/cypress => cypress}/integration/accessibility/accessibility.spec.ts (100%) rename {integration/cypress => cypress}/integration/docs-links/docs-links.spec.ts (100%) rename {integration/cypress => cypress}/integration/no-users/login.spec.ts (100%) rename {integration/cypress => cypress}/integration/utils.ts (100%) rename {integration/cypress => cypress}/integration/with-users/base/footer.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/base/header.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/controllers/list.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/dashboard/dashboard.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/devices/list.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/domains/list.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/images/list.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/kvm/list.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/legacy/auth.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/login/login.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/machines/add.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/machines/list.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/pools/list.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/preferences/base.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/settings/base.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/settings/configuration/deploy.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/settings/users/add.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/settings/users/list.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/subnets/add.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/subnets/subnets.spec.ts (100%) rename {integration/cypress => cypress}/integration/with-users/zones/list.spec.ts (100%) create mode 100755 cypress/percy.sh rename {integration/cypress => cypress}/percy/percy.spec.ts (100%) rename {integration/cypress => cypress}/plugins/index.js (100%) rename {integration/cypress => cypress}/support/commands.ts (100%) rename {integration/cypress => cypress}/support/index.ts (100%) rename {integration/cypress => cypress}/tsconfig.json (86%) rename HACKING.md => docs/HACKING.md (99%) rename integration/README.md => docs/INTEGRATION.md (98%) rename RELEASE.md => docs/RELEASE.md (100%) delete mode 100644 integration/.gitignore delete mode 100644 integration/package.json delete mode 100755 integration/percy.sh diff --git a/integration/.env b/.env.test similarity index 100% rename from integration/.env rename to .env.test diff --git a/.github/workflows/accessibility.yml b/.github/workflows/accessibility.yml index c27e2b07c6..373fd29abf 100644 --- a/.github/workflows/accessibility.yml +++ b/.github/workflows/accessibility.yml @@ -34,7 +34,7 @@ jobs: install: false spec: "**/accessibility/**/*.spec.ts" wait-on: "${{env.MAAS_URL}}/MAAS/r/machines" - working-directory: integration + working-directory: cypress - name: Create issue on failure if: failure() uses: JasonEtco/create-an-issue@v2 diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 930769268e..960b285105 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -32,7 +32,7 @@ jobs: install: false spec: "**/no-users/**/*.spec.ts" wait-on: "${{env.MAAS_URL}}/MAAS/r/machines" - working-directory: integration + working-directory: cypress - name: Create MAAS admin run: sudo maas createadmin --username=admin --password=test --email=fake@example.org - name: Create MAAS non-admin user @@ -47,12 +47,12 @@ jobs: install: false spec: "**/with-users/**/*.spec.ts" wait-on: "${{env.MAAS_URL}}/MAAS/r/machines" - working-directory: integration + working-directory: cypress - uses: actions/upload-artifact@v3 if: failure() with: name: cypress-screenshots - path: integration/cypress/screenshots + path: cypress/screenshots - name: Create issue on failure if: failure() uses: JasonEtco/create-an-issue@v2 @@ -80,7 +80,7 @@ jobs: browser: chrome config: baseUrl=http://maas.io/docs spec: "**/docs-links/**/*.spec.ts" - working-directory: integration + working-directory: cypress - name: Create issue on failure if: failure() uses: JasonEtco/create-an-issue@v2 diff --git a/.gitignore b/.gitignore index fbfac98ecf..d346e03ff2 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,11 @@ yarn-error.log* # build /build +# cypress +cypress/screenshots +cypress/videos +cypress.env.json + # local configuration .env.*.local .env.local diff --git a/README.md b/README.md index 6fb0ad1dc4..ea3836e8bd 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Community contributions are most welcome, and there are a number of ways to part When submitting a PR, please take note that MAAS UI uses the [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/) format. To help you conform to this, you can run `yarn commit` instead of `git commit` for an interactive prompt. -Please see [HACKING](HACKING.md) for details on setting up a MAAS UI development environment. +Please see [HACKING](/docs/HACKING.md) for details on setting up a MAAS UI development environment. ## Feedback diff --git a/integration/cypress.json b/cypress.json similarity index 100% rename from integration/cypress.json rename to cypress.json diff --git a/integration/.eslintrc.js b/cypress/.eslintrc.js similarity index 100% rename from integration/.eslintrc.js rename to cypress/.eslintrc.js diff --git a/integration/cypress/constants.ts b/cypress/constants.ts similarity index 100% rename from integration/cypress/constants.ts rename to cypress/constants.ts diff --git a/integration/cypress/fixtures/example.json b/cypress/fixtures/example.json similarity index 100% rename from integration/cypress/fixtures/example.json rename to cypress/fixtures/example.json diff --git a/integration/cypress/integration/accessibility/accessibility.spec.ts b/cypress/integration/accessibility/accessibility.spec.ts similarity index 100% rename from integration/cypress/integration/accessibility/accessibility.spec.ts rename to cypress/integration/accessibility/accessibility.spec.ts diff --git a/integration/cypress/integration/docs-links/docs-links.spec.ts b/cypress/integration/docs-links/docs-links.spec.ts similarity index 100% rename from integration/cypress/integration/docs-links/docs-links.spec.ts rename to cypress/integration/docs-links/docs-links.spec.ts diff --git a/integration/cypress/integration/no-users/login.spec.ts b/cypress/integration/no-users/login.spec.ts similarity index 100% rename from integration/cypress/integration/no-users/login.spec.ts rename to cypress/integration/no-users/login.spec.ts diff --git a/integration/cypress/integration/utils.ts b/cypress/integration/utils.ts similarity index 100% rename from integration/cypress/integration/utils.ts rename to cypress/integration/utils.ts diff --git a/integration/cypress/integration/with-users/base/footer.spec.ts b/cypress/integration/with-users/base/footer.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/base/footer.spec.ts rename to cypress/integration/with-users/base/footer.spec.ts diff --git a/integration/cypress/integration/with-users/base/header.spec.ts b/cypress/integration/with-users/base/header.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/base/header.spec.ts rename to cypress/integration/with-users/base/header.spec.ts diff --git a/integration/cypress/integration/with-users/controllers/list.spec.ts b/cypress/integration/with-users/controllers/list.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/controllers/list.spec.ts rename to cypress/integration/with-users/controllers/list.spec.ts diff --git a/integration/cypress/integration/with-users/dashboard/dashboard.spec.ts b/cypress/integration/with-users/dashboard/dashboard.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/dashboard/dashboard.spec.ts rename to cypress/integration/with-users/dashboard/dashboard.spec.ts diff --git a/integration/cypress/integration/with-users/devices/list.spec.ts b/cypress/integration/with-users/devices/list.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/devices/list.spec.ts rename to cypress/integration/with-users/devices/list.spec.ts diff --git a/integration/cypress/integration/with-users/domains/list.spec.ts b/cypress/integration/with-users/domains/list.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/domains/list.spec.ts rename to cypress/integration/with-users/domains/list.spec.ts diff --git a/integration/cypress/integration/with-users/images/list.spec.ts b/cypress/integration/with-users/images/list.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/images/list.spec.ts rename to cypress/integration/with-users/images/list.spec.ts diff --git a/integration/cypress/integration/with-users/kvm/list.spec.ts b/cypress/integration/with-users/kvm/list.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/kvm/list.spec.ts rename to cypress/integration/with-users/kvm/list.spec.ts diff --git a/integration/cypress/integration/with-users/legacy/auth.spec.ts b/cypress/integration/with-users/legacy/auth.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/legacy/auth.spec.ts rename to cypress/integration/with-users/legacy/auth.spec.ts diff --git a/integration/cypress/integration/with-users/login/login.spec.ts b/cypress/integration/with-users/login/login.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/login/login.spec.ts rename to cypress/integration/with-users/login/login.spec.ts diff --git a/integration/cypress/integration/with-users/machines/add.spec.ts b/cypress/integration/with-users/machines/add.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/machines/add.spec.ts rename to cypress/integration/with-users/machines/add.spec.ts diff --git a/integration/cypress/integration/with-users/machines/list.spec.ts b/cypress/integration/with-users/machines/list.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/machines/list.spec.ts rename to cypress/integration/with-users/machines/list.spec.ts diff --git a/integration/cypress/integration/with-users/pools/list.spec.ts b/cypress/integration/with-users/pools/list.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/pools/list.spec.ts rename to cypress/integration/with-users/pools/list.spec.ts diff --git a/integration/cypress/integration/with-users/preferences/base.spec.ts b/cypress/integration/with-users/preferences/base.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/preferences/base.spec.ts rename to cypress/integration/with-users/preferences/base.spec.ts diff --git a/integration/cypress/integration/with-users/settings/base.spec.ts b/cypress/integration/with-users/settings/base.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/settings/base.spec.ts rename to cypress/integration/with-users/settings/base.spec.ts diff --git a/integration/cypress/integration/with-users/settings/configuration/deploy.spec.ts b/cypress/integration/with-users/settings/configuration/deploy.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/settings/configuration/deploy.spec.ts rename to cypress/integration/with-users/settings/configuration/deploy.spec.ts diff --git a/integration/cypress/integration/with-users/settings/users/add.spec.ts b/cypress/integration/with-users/settings/users/add.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/settings/users/add.spec.ts rename to cypress/integration/with-users/settings/users/add.spec.ts diff --git a/integration/cypress/integration/with-users/settings/users/list.spec.ts b/cypress/integration/with-users/settings/users/list.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/settings/users/list.spec.ts rename to cypress/integration/with-users/settings/users/list.spec.ts diff --git a/integration/cypress/integration/with-users/subnets/add.spec.ts b/cypress/integration/with-users/subnets/add.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/subnets/add.spec.ts rename to cypress/integration/with-users/subnets/add.spec.ts diff --git a/integration/cypress/integration/with-users/subnets/subnets.spec.ts b/cypress/integration/with-users/subnets/subnets.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/subnets/subnets.spec.ts rename to cypress/integration/with-users/subnets/subnets.spec.ts diff --git a/integration/cypress/integration/with-users/zones/list.spec.ts b/cypress/integration/with-users/zones/list.spec.ts similarity index 100% rename from integration/cypress/integration/with-users/zones/list.spec.ts rename to cypress/integration/with-users/zones/list.spec.ts diff --git a/cypress/percy.sh b/cypress/percy.sh new file mode 100755 index 0000000000..daf57fa0ea --- /dev/null +++ b/cypress/percy.sh @@ -0,0 +1,9 @@ +#! /usr/bin/env bash + +if [ -f ../.env.test.local ]; then + source ../.env.test.local +elif [ -f ../.env.test ]; then + source ../.env.test +fi + +PERCY_TOKEN=$PERCY_TOKEN PERCY_BRANCH=local percy exec -- cypress run --config integrationFolder=percy diff --git a/integration/cypress/percy/percy.spec.ts b/cypress/percy/percy.spec.ts similarity index 100% rename from integration/cypress/percy/percy.spec.ts rename to cypress/percy/percy.spec.ts diff --git a/integration/cypress/plugins/index.js b/cypress/plugins/index.js similarity index 100% rename from integration/cypress/plugins/index.js rename to cypress/plugins/index.js diff --git a/integration/cypress/support/commands.ts b/cypress/support/commands.ts similarity index 100% rename from integration/cypress/support/commands.ts rename to cypress/support/commands.ts diff --git a/integration/cypress/support/index.ts b/cypress/support/index.ts similarity index 100% rename from integration/cypress/support/index.ts rename to cypress/support/index.ts diff --git a/integration/cypress/tsconfig.json b/cypress/tsconfig.json similarity index 86% rename from integration/cypress/tsconfig.json rename to cypress/tsconfig.json index 82e0b4c72d..b57e5abb43 100644 --- a/integration/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "strict": true, - "baseUrl": "../node_modules", + "baseUrl": "../ui/node_modules", "target": "es6", "lib": ["es2017", "dom"], "types": ["cypress", "cypress-axe", "@testing-library/cypress", "@percy/cypress"], diff --git a/HACKING.md b/docs/HACKING.md similarity index 99% rename from HACKING.md rename to docs/HACKING.md index 33a50692e2..ef61b1f0b2 100644 --- a/HACKING.md +++ b/docs/HACKING.md @@ -558,7 +558,7 @@ maas $PROFILE maas set-config name=completed_intro value=false Integration tests currently run against the maas edge snap (main) [on github actions](https://github.com/canonical-web-and-design/maas-ui/actions?query=workflow%3ACypress) with [Cypress](https://cypress.io). -For details on developing integration tests, see the integration testing [README](integration/README.md). +For details on developing integration tests, see the integration testing [README](/docs/INTEGRATION.md). ## Unit tests diff --git a/integration/README.md b/docs/INTEGRATION.md similarity index 98% rename from integration/README.md rename to docs/INTEGRATION.md index 9414406afb..f0168ce103 100644 --- a/integration/README.md +++ b/docs/INTEGRATION.md @@ -16,12 +16,11 @@ This will automatically start legacy, ui and proxy servers and run the Cypress t ## Edit local configuration -By default, cypress will run tests using the configuration defined in [cypress.json](/integration/cypress.json). +By default, cypress will run tests using the configuration defined in [cypress.json](/cypress/cypress.json). If you wish to overwrite any of the settings (e.g. MAAS URL or username/password) you can create a local configuration file: ```shell -cd integration touch cypress.env.json ``` @@ -44,7 +43,6 @@ yarn serve Then open the Cypress Test Runner by running: ```shell -cd integration yarn cypress-open ``` diff --git a/RELEASE.md b/docs/RELEASE.md similarity index 100% rename from RELEASE.md rename to docs/RELEASE.md diff --git a/integration/.gitignore b/integration/.gitignore deleted file mode 100644 index 8ea08355cc..0000000000 --- a/integration/.gitignore +++ /dev/null @@ -1,38 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# note: yarn.lock is in the parent directory as this project uses yarn workspaces -# however ./run erroneously generates a yarn.lock here. -yarn.lock - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build -/dist - -# cypress -cypress/screenshots -cypress/videos -cypress.env.json - -# misc -*.swp -.DS_Store -.env.development.local -.env.local -.env.production.local -.env.test.local - -# [env] Local environment settings -.docker-project -.*.hash - -npm-debug.log* -yarn-debug.log* -yarn-error.log* diff --git a/integration/package.json b/integration/package.json deleted file mode 100644 index 571e5867e8..0000000000 --- a/integration/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "@maas-ui/maas-ui-integration", - "private": true, - "version": "3.3.0", - "scripts": { - "clean": "rm -rf node_modules", - "lint": "yarn lint-package-json && yarn lint-js", - "lint-js": "eslint \"cypress/**/*.{ts,tsx}\"", - "lint-package-json": "npmPkgJsonLint .", - "cypress-test": "yarn --cwd ../shared build && start-server-and-test serve-frontends '8401|8402' serve-base 'tcp:8400|8404' cypress-run", - "serve-frontends": "yarn --cwd ../proxy serve-frontends", - "serve-base": "yarn --cwd ../proxy serve-base", - "cypress-run": "yarn cypress run", - "cypress-run-a11y": "yarn cypress run --config integrationFolder=cypress/integration/accessibility", - "cypress-open": "yarn cypress open", - "percy": "./percy.sh" - }, - "devDependencies": { - "@maas-ui/maas-ui-shared": "3.3.0", - "@percy/cli": "1.1.4", - "@percy/cypress": "3.1.1", - "@testing-library/cypress": "8.0.2", - "@typescript-eslint/eslint-plugin": "5.23.0", - "@typescript-eslint/parser": "5.23.0", - "concurrently": "7.1.0", - "cypress": "9.6.1", - "cypress-axe": "0.14.0", - "cypress-wait-until": "1.7.2", - "dotenv-flow": "3.2.0", - "eslint-plugin-cypress": "2.12.1", - "eslint-plugin-import": "2.26.0", - "eslint-plugin-no-only-tests": "2.6.0", - "nanoid": "3.3.4", - "npm-package-json-lint": "6.3.0", - "start-server-and-test": "1.14.0" - }, - "npmpackagejsonlint": { - "rules": { - "prefer-absolute-version-dependencies": "error", - "prefer-absolute-version-devDependencies": "error", - "prefer-alphabetical-dependencies": "error", - "prefer-alphabetical-devDependencies": "error" - } - } -} diff --git a/integration/percy.sh b/integration/percy.sh deleted file mode 100755 index 3a871050e8..0000000000 --- a/integration/percy.sh +++ /dev/null @@ -1,9 +0,0 @@ -#! /usr/bin/env bash - -if [ -f .env.local ]; then - source .env.local -elif [ -f .env ]; then - source .env -fi - -PERCY_TOKEN=$PERCY_TOKEN PERCY_BRANCH=local percy exec -- cypress run --config integrationFolder=cypress/percy diff --git a/package.json b/package.json index 5d56a827fd..a9d9a95189 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,12 @@ "build-legacy": "cd legacy && yarn install && yarn build", "build-root": "cd root && yarn install && yarn build", "build-ui": "cd ui && yarn install && yarn build", - "cypress-open": "yarn --cwd integration cypress-open", - "cypress-run": "yarn --cwd integration cypress-run", + "serve-frontends": "yarn --cwd proxy serve-frontends", + "serve-base": "yarn --cwd proxy serve-base", + "cypress-run": "yarn cypress run", + "cypress-run-a11y": "yarn cypress run --config integrationFolder=cypress/integration/accessibility", + "cypress-open": "yarn cypress open", + "percy": "./cypress/percy.sh", "copy-build": "mkdir -p build && yarn copy-root && yarn copy-legacy-assets && yarn copy-ui-css", "copy-legacy-assets": "cp -R legacy/dist/assets build/", "copy-root": "cp -R root/dist/* build/", @@ -35,9 +39,9 @@ "lint-ui": "cd ui && yarn run lint", "lint-shared": "cd shared && yarn run lint", "lint-root": "cd root && yarn run lint", - "lint-cypress": "cd integration && yarn run lint", + "lint-cypress": "eslint -c cypress/.eslintrc.js \"cypress/**/*.{ts,tsx}\"", "lint": "yarn build-shared && yarn lint-legacy && yarn lint-ui && yarn lint-shared && yarn lint-root && yarn lint-cypress", - "test-cypress": "yarn --cwd integration run cypress-test", + "test-cypress": "yarn --cwd shared build && start-server-and-test serve-frontends '8401|8402' serve-base 'tcp:8400|8404' cypress-run", "test-legacy": "cd legacy && yarn run test", "test-ui": "cd ui && yarn run test --watchAll=false", "test-shared": "cd shared && yarn run test", @@ -46,7 +50,6 @@ }, "workspaces": { "packages": [ - "integration", "legacy", "proxy", "shared", @@ -63,7 +66,24 @@ ] }, "devDependencies": { - "cz-conventional-changelog": "3.3.0" + "@maas-ui/maas-ui-shared": "3.3.0", + "@percy/cli": "1.1.4", + "@percy/cypress": "3.1.1", + "@testing-library/cypress": "8.0.2", + "@typescript-eslint/eslint-plugin": "5.23.0", + "@typescript-eslint/parser": "5.23.0", + "concurrently": "7.1.0", + "cypress": "9.6.1", + "cypress-axe": "0.14.0", + "cypress-wait-until": "1.7.2", + "cz-conventional-changelog": "3.3.0", + "dotenv-flow": "3.2.0", + "eslint-plugin-cypress": "2.12.1", + "eslint-plugin-import": "2.26.0", + "eslint-plugin-no-only-tests": "2.6.0", + "nanoid": "3.3.4", + "npm-package-json-lint": "6.3.0", + "start-server-and-test": "1.14.0" }, "config": { "commitizen": {