From 5087dec2d5299325ee30f223980c49869e787850 Mon Sep 17 00:00:00 2001
From: wojteknowacki <124166231+wojteknowacki@users.noreply.github.com>
Date: Fri, 28 Jul 2023 11:48:19 +0200
Subject: [PATCH] removed percy and demo tests code - not useful anymore
(#4029)
* removed percy and demo tests code - not usefull anymore
* removed percy from dev dependecies
---
.github/workflows/percy-demo-tests.yml | 99 -----
cypress.config.js | 7 +-
cypress/e2e/percy/demo.js | 30 --
cypress/plugins/index.js | 5 +-
cypress/support/e2e.js | 1 -
package-lock.json | 591 +------------------------
package.json | 4 -
7 files changed, 15 insertions(+), 722 deletions(-)
delete mode 100644 .github/workflows/percy-demo-tests.yml
delete mode 100644 cypress/e2e/percy/demo.js
diff --git a/.github/workflows/percy-demo-tests.yml b/.github/workflows/percy-demo-tests.yml
deleted file mode 100644
index 5a83c9c93..000000000
--- a/.github/workflows/percy-demo-tests.yml
+++ /dev/null
@@ -1,99 +0,0 @@
-name: Execute percy demo tests
-
-on:
- workflow_dispatch:
- inputs:
- dashboardUrl:
- description: 'Environment to run tests against'
- required: true
- default: 'https://staging-demo.saleor.io/'
- apiUrl:
- required: true
- description: 'Environment api to run tests against'
- default: 'https://staging-demo.saleor.io/graphql/'
- testsKind:
- required: true
- description: 'What kind of tests'
- type: choice
- default: "all"
- options:
- - "percy"
- - "functional"
- - "all"
-
- schedule:
- - cron: '00 2 * * 1-5'
-
- repository_dispatch:
- types: [demo-tests]
-
-jobs:
- cypress-run-tests:
- runs-on: ubuntu-latest
- env:
- TEST_KIND: ${{ github.event.inputs.testsKind || github.event.client_payload.testsKind || 'all'}}
- container: cypress/browsers:node18.12.0-chrome106-ff106
-
- steps:
-
- - name: Get environments urls
- id: get-env-urls
- env:
- DEFAULT_DASHBOARD_URL: 'https://staging-demo.saleor.io/'
- DEFAULT_API_URL: 'https://staging-demo.saleor.io/graphql/'
- run: |
- echo "DASHBOARD_URL=${{ github.event.inputs.dashboardUrl || env.DEFAULT_DASHBOARD_URL }}" >> $GITHUB_OUTPUT
- echo "API_URL=${{ github.event.inputs.apiUrl || env.DEFAULT_API_URL }}" >> $GITHUB_OUTPUT
-
- - name: Checkout
- uses: actions/checkout@v3
-
- - name: Cache node modules
- uses: actions/cache@v2
- env:
- cache-name: cache-node-modules
- with:
- path: ~/.npm
- key: ${{ runner.os }}-percy_demo-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-percy_demo-${{ env.cache-name }}-
- ${{ runner.os }}-percy_demo-
- ${{ runner.os }}-
-
- - name: Install Dependencies
- run: NODE_OPTIONS=--max_old_space_size=4096 npm install
-
- - name: Cypress run test percy
- if: contains(fromJSON('["percy", "all"]'), env.TEST_KIND)
- continue-on-error: true
- uses: cypress-io/github-action@v5
- env:
- API_URI: ${{ steps.get-env-urls.outputs.API_URL }}
- APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }}
- CYPRESS_DEMO_URI: ${{ steps.get-env-urls.outputs.DASHBOARD_URL }}
- CYPRESS_USER_NAME: admin@example.com
- CYPRESS_USER_PASSWORD: admin
- CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
- COMMIT_INFO_MESSAGE: Percy - Demo dashboard tests - ${{github.event.inputs.dashboardUrl}} - ${{ steps.get-env-urls.outputs.DASHBOARD_URL }}
- PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- CYPRESS_demoTests: true
- with:
- group: "UI - Chrome"
- command: npx percy exec -- npx cypress run --record
-
- - name: Cypress run test functional
- if: contains(fromJSON('["functional", "all"]'), env.TEST_KIND)
- continue-on-error: true
- uses: cypress-io/github-action@v5
- env:
- API_URI: ${{ steps.get-env-urls.outputs.API_URL }}
- APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }}
- CYPRESS_DEMO_URI: ${{ steps.get-env-urls.outputs.DASHBOARD_URL }}
- CYPRESS_USER_NAME: admin@example.com
- CYPRESS_USER_PASSWORD: admin
- CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
- COMMIT_INFO_MESSAGE: Demo dashboard tests - ${{github.event.inputs.dashboardUrl}} - ${{ steps.get-env-urls.outputs.DASHBOARD_URL }}
- CYPRESS_grepTags: "@demo-dashboard"
- with:
- group: 'UI - Chrome'
- record: true
diff --git a/cypress.config.js b/cypress.config.js
index 46782e813..8ff27f992 100644
--- a/cypress.config.js
+++ b/cypress.config.js
@@ -24,16 +24,10 @@ module.exports = defineConfig({
e2e: {
env: {
grepFilterSpecs: true,
- demoTests: false,
},
setupNodeEvents(on, config) {
- config.specPattern = process.env.CYPRESS_demoTests
- ? "cypress/e2e/percy/**/*.{js,jsx,ts,tsx}"
- : "cypress/e2e/**/*.{js,jsx,ts,tsx}";
-
config = require("./cypress/support/cypress-grep/plugin")(config);
config = require("./cypress/plugins/index.js")(on, config);
-
on("after:spec", (spec, results) => {
if (results && results.video) {
return fs.unlink(results.video, function (err) {
@@ -47,5 +41,6 @@ module.exports = defineConfig({
});
return config;
},
+ specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
},
});
diff --git a/cypress/e2e/percy/demo.js b/cypress/e2e/percy/demo.js
deleted file mode 100644
index b734b102a..000000000
--- a/cypress/e2e/percy/demo.js
+++ /dev/null
@@ -1,30 +0,0 @@
-///
-///
-
-import { BUTTON_SELECTORS, HOMEPAGE_SELECTORS } from "../../elements";
-import { urlList } from "../../fixtures/urlList";
-
-describe("Demo staging", () => {
- it("should visual check login demo page", () => {
- // { tags: ["@login", "@allEnv", "@stable", "@oldRelease"] },
- cy.visit(urlList.dashboard);
- cy.get(BUTTON_SELECTORS.submit).should("be.visible");
- cy.percySnapshot("Demo login page");
- });
- it("should log in via UI and visual check home demo page", () => {
- // { tags: ["@login", "@allEnv", "@stable", "@oldRelease"] },
- cy.loginUserViaRequest();
- cy.fixture("bodyMocks/demo/home").then(bodyMockHomePage => {
- cy.addAliasToGraphRequestAndUseMockedResponseBody(
- "Home",
- bodyMockHomePage,
- );
- cy.visit(urlList.dashboard)
- .get(HOMEPAGE_SELECTORS.activity)
- .should("be.visible");
- cy.get(HOMEPAGE_SELECTORS.topProducts).should("be.visible");
- cy.waitForRequestAndCheckIfNoErrors("@Home");
- cy.percySnapshot("Demo home page");
- });
- });
-});
diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js
index c7fb7ea34..29d87bcb3 100644
--- a/cypress/plugins/index.js
+++ b/cypress/plugins/index.js
@@ -37,7 +37,7 @@ module.exports = async (on, config) => {
process.env.CYPRESS_PERMISSIONS_USERS_PASSWORD;
config.env.MAILPITURL = process.env.CYPRESS_MAILPITURL;
config.env.grepTags = process.env.CYPRESS_grepTags;
- config.baseUrl = baseUrl(process.env.CYPRESS_demoTests);
+ config.baseUrl = process.env.CYPRESS_baseUrl;
on("before:browser:launch", (_browser = {}, launchOptions) => {
launchOptions.args.push("--proxy-bypass-list=<-loopback>");
@@ -47,9 +47,6 @@ module.exports = async (on, config) => {
return config;
};
-const baseUrl = isDemoTesting =>
- isDemoTesting ? process.env.CYPRESS_DEMO_URI : process.env.CYPRESS_baseUrl;
-
function getShopInfo(envVariables) {
const createTokenMutation = graphql.gql`mutation tokenCreate($email: String!, $password: String!){
tokenCreate(email:$email, password:$password){
diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js
index d2f32b9bc..d11420f8c 100644
--- a/cypress/support/e2e.js
+++ b/cypress/support/e2e.js
@@ -14,7 +14,6 @@ import "./customCommands/sharedElementsOperations/selects.js";
import "./customCommands/sharedElementsOperations/tables";
import "./customCommands/softAssertions";
import "./customCommands/user";
-import "@percy/cypress";
import { commandTimings } from "cypress-timings";
diff --git a/package-lock.json b/package-lock.json
index 582da893d..ce50135e3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -114,8 +114,6 @@
"@graphql-codegen/typescript-apollo-client-helpers": "^2.1.10",
"@graphql-codegen/typescript-operations": "^2.2.4",
"@graphql-codegen/typescript-react-apollo": "^3.2.5",
- "@percy/cli": "^1.21.0",
- "@percy/cypress": "^3.1.2",
"@saleor/app-sdk": "0.43.0",
"@swc/jest": "^0.2.26",
"@types/apollo-upload-client": "^17.0.2",
@@ -6991,304 +6989,6 @@
"node": ">=10.12.0"
}
},
- "node_modules/@percy/cli": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli/-/cli-1.21.0.tgz",
- "integrity": "sha512-capaTXkj/L0Itn8VpDY/ePkHM9InaqwTRTK+IHGTA2HsRlpiNotunDAv8cNJ/fBMoRBh1Bki7tEWIp6zB+KmBQ==",
- "dev": true,
- "dependencies": {
- "@percy/cli-app": "1.21.0",
- "@percy/cli-build": "1.21.0",
- "@percy/cli-command": "1.21.0",
- "@percy/cli-config": "1.21.0",
- "@percy/cli-exec": "1.21.0",
- "@percy/cli-snapshot": "1.21.0",
- "@percy/cli-upload": "1.21.0",
- "@percy/client": "1.21.0",
- "@percy/logger": "1.21.0"
- },
- "bin": {
- "percy": "bin/run.cjs"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/cli-app": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-app/-/cli-app-1.21.0.tgz",
- "integrity": "sha512-kkYMTGEk33nsLIIKx57LzheK7WZK77Y52c+DAwnV1FDpzDvhpP4eLEpXwarTIapN76O4wZndFlX4zm07U9Cvfw==",
- "dev": true,
- "dependencies": {
- "@percy/cli-command": "1.21.0",
- "@percy/cli-exec": "1.21.0"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/cli-build": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-build/-/cli-build-1.21.0.tgz",
- "integrity": "sha512-LRvGsTl6bw6zNMOQ36emjdIdkvCEUAbRRp2nryBODMpJ8YUd1NcXw/qLVM2bzpJcTmeBXR76Yjgi1VhFZrNZlg==",
- "dev": true,
- "dependencies": {
- "@percy/cli-command": "1.21.0"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/cli-command": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-command/-/cli-command-1.21.0.tgz",
- "integrity": "sha512-ZfjDMgUQRQonJT106Y89NVDzVd2qDmwQ+4oC0AyGgE5h1cHAEaPoYV8LnMvpjbvFYni+jbeZvHNANMP7Ut2yOQ==",
- "dev": true,
- "dependencies": {
- "@percy/config": "1.21.0",
- "@percy/core": "1.21.0",
- "@percy/logger": "1.21.0"
- },
- "bin": {
- "percy-cli-readme": "bin/readme.js"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/cli-config": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-config/-/cli-config-1.21.0.tgz",
- "integrity": "sha512-7Wn3L/XkKhVWixH4/oPJV66jD6LBCma6pT/bzbKuV5Hlpscel2xz3p8JSDOvxQJl1eSRtjwhI1HP/0OT6EX5dg==",
- "dev": true,
- "dependencies": {
- "@percy/cli-command": "1.21.0"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/cli-exec": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-exec/-/cli-exec-1.21.0.tgz",
- "integrity": "sha512-Uwqw1WqXzYXk4WQLyRWkQJ4Tdm7/bUOOa2HJU/J5kGLDmoSRNX/TesobFy8ii55mB0QV2hkZnMkAFPwzfxaCSw==",
- "dev": true,
- "dependencies": {
- "@percy/cli-command": "1.21.0",
- "cross-spawn": "^7.0.3",
- "which": "^2.0.2"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/cli-exec/node_modules/which": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
- "dev": true,
- "dependencies": {
- "isexe": "^2.0.0"
- },
- "bin": {
- "node-which": "bin/node-which"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/@percy/cli-snapshot": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-snapshot/-/cli-snapshot-1.21.0.tgz",
- "integrity": "sha512-DR0yPRCCRFGXrDwfAmC/26yF4CGMTAWNgIKFgeQcPGgjkdXOSmm04fhU36QBU5S66B2gmSjEG0mfh+2oOD68EQ==",
- "dev": true,
- "dependencies": {
- "@percy/cli-command": "1.21.0",
- "yaml": "^2.0.0"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/cli-snapshot/node_modules/yaml": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz",
- "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==",
- "dev": true,
- "engines": {
- "node": ">= 14"
- }
- },
- "node_modules/@percy/cli-upload": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-upload/-/cli-upload-1.21.0.tgz",
- "integrity": "sha512-NDh6NiirUgdnrNergiwtQceA0TjcT5vK6dzuE6pscwksvb9vzx+tvvbBcVBhpEQt+FmIoYDdqb8FVzMqxd5wEg==",
- "dev": true,
- "dependencies": {
- "@percy/cli-command": "1.21.0",
- "fast-glob": "^3.2.11",
- "image-size": "^1.0.0"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/client": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/client/-/client-1.21.0.tgz",
- "integrity": "sha512-IKFcMYcibWQjisjmS4K9HK7TbjPK4fnVeh/3Uq7Da0ejiu5qBvLn49aNcYfnrguPqaUcgIvLvpcgtHeH+srv/g==",
- "dev": true,
- "dependencies": {
- "@percy/env": "1.21.0",
- "@percy/logger": "1.21.0"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/config": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/config/-/config-1.21.0.tgz",
- "integrity": "sha512-s6XFBhjP0fGVg8onapDwebGNIdwMgdidZW5q0HziBiQVqfwh/83NkDlCq+c6/JU5P0Y5DArxCIFDVUfiLkcs4A==",
- "dev": true,
- "dependencies": {
- "@percy/logger": "1.21.0",
- "ajv": "^8.6.2",
- "cosmiconfig": "^7.0.0",
- "yaml": "^2.0.0"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/config/node_modules/ajv": {
- "version": "8.12.0",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
- "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
- "dev": true,
- "dependencies": {
- "fast-deep-equal": "^3.1.1",
- "json-schema-traverse": "^1.0.0",
- "require-from-string": "^2.0.2",
- "uri-js": "^4.2.2"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/epoberezkin"
- }
- },
- "node_modules/@percy/config/node_modules/json-schema-traverse": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
- "dev": true
- },
- "node_modules/@percy/config/node_modules/yaml": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz",
- "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==",
- "dev": true,
- "engines": {
- "node": ">= 14"
- }
- },
- "node_modules/@percy/core": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/core/-/core-1.21.0.tgz",
- "integrity": "sha512-YFBTiRghq1m9t0/4ZUFWgS8LJ4DYugcMDoZ04yKWsIjRDcALwHAZahYpBZRcHkmfqB/kqLB5IYoyc6rel+PNeA==",
- "dev": true,
- "hasInstallScript": true,
- "dependencies": {
- "@percy/client": "1.21.0",
- "@percy/config": "1.21.0",
- "@percy/dom": "1.21.0",
- "@percy/logger": "1.21.0",
- "content-disposition": "^0.5.4",
- "cross-spawn": "^7.0.3",
- "extract-zip": "^2.0.1",
- "fast-glob": "^3.2.11",
- "micromatch": "^4.0.4",
- "mime-types": "^2.1.34",
- "path-to-regexp": "^6.2.0",
- "rimraf": "^3.0.2",
- "ws": "^8.0.0"
- },
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/core/node_modules/path-to-regexp": {
- "version": "6.2.1",
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.1.tgz",
- "integrity": "sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==",
- "dev": true
- },
- "node_modules/@percy/core/node_modules/ws": {
- "version": "8.13.0",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
- "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
- "dev": true,
- "engines": {
- "node": ">=10.0.0"
- },
- "peerDependencies": {
- "bufferutil": "^4.0.1",
- "utf-8-validate": ">=5.0.2"
- },
- "peerDependenciesMeta": {
- "bufferutil": {
- "optional": true
- },
- "utf-8-validate": {
- "optional": true
- }
- }
- },
- "node_modules/@percy/cypress": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/@percy/cypress/-/cypress-3.1.2.tgz",
- "integrity": "sha512-JXrGDZbqwkzQd2h5T5D7PvqoucNaiMh4ChPp8cLQiEtRuLHta9nf1lEuXH+jnatGL2j+3jJFIHJ0L7XrgVnvQA==",
- "dev": true,
- "dependencies": {
- "@percy/sdk-utils": "^1.3.1"
- },
- "peerDependencies": {
- "cypress": ">=3"
- }
- },
- "node_modules/@percy/dom": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/dom/-/dom-1.21.0.tgz",
- "integrity": "sha512-OKpS9EPnUrMx3Mu9L7QiqEtc+yAUz3gbXrbRlrPAljyRAmmBe9p5vy0hKtP8wO1vxjumqmtxNABpz5bc70CJ2Q==",
- "dev": true
- },
- "node_modules/@percy/env": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/env/-/env-1.21.0.tgz",
- "integrity": "sha512-rqbACxivUTkpAJnjk/7IosFdh2vdz1SVGV0KXFf2xtEuUb7YhYrYixhf/6xE81o93C+pxrlXYWkgUSaMhZpP5A==",
- "dev": true,
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/logger": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/logger/-/logger-1.21.0.tgz",
- "integrity": "sha512-qKKSFP25X+a50vpjUSolI8WSQ2YAunS6K4brdTRemgvc48Wlkv3541SP8iMK5BAy3Nn4u0KRiwkstvyRr1tXlA==",
- "dev": true,
- "engines": {
- "node": ">=14"
- }
- },
- "node_modules/@percy/sdk-utils": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/sdk-utils/-/sdk-utils-1.21.0.tgz",
- "integrity": "sha512-ZI6QbIhMZvE3P73ar7aeXcjSk8/czlS7h55QBynoJNorwimq5xed1CGPHu00uQsCO6dXeEKTfxQcqbCypRE6Hw==",
- "dev": true,
- "engines": {
- "node": ">=14"
- }
- },
"node_modules/@radix-ui/number": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.0.1.tgz",
@@ -15339,8 +15039,8 @@
},
"node_modules/buffer-crc32": {
"version": "0.2.13",
- "devOptional": true,
"license": "MIT",
+ "optional": true,
"engines": {
"node": "*"
}
@@ -16463,7 +16163,7 @@
"version": "0.5.4",
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
- "devOptional": true,
+ "optional": true,
"dependencies": {
"safe-buffer": "5.2.1"
},
@@ -21020,8 +20720,8 @@
},
"node_modules/extract-zip": {
"version": "2.0.1",
- "devOptional": true,
"license": "BSD-2-Clause",
+ "optional": true,
"dependencies": {
"debug": "^4.1.1",
"get-stream": "^5.1.0",
@@ -21149,8 +20849,8 @@
},
"node_modules/fd-slicer": {
"version": "1.1.0",
- "devOptional": true,
"license": "MIT",
+ "optional": true,
"dependencies": {
"pend": "~1.2.0"
}
@@ -22853,21 +22553,6 @@
"minimatch": "^3.0.4"
}
},
- "node_modules/image-size": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.2.tgz",
- "integrity": "sha512-xfOoWjceHntRb3qFCrh5ZFORYH8XCdYpASltMhZ/Q0KZiOwjdE/Yl2QCiWdwD+lygV5bMCvauzgu5PxBX/Yerg==",
- "dev": true,
- "dependencies": {
- "queue": "6.0.2"
- },
- "bin": {
- "image-size": "bin/image-size.js"
- },
- "engines": {
- "node": ">=14.0.0"
- }
- },
"node_modules/immutable": {
"version": "3.7.6",
"dev": true,
@@ -28689,8 +28374,8 @@
},
"node_modules/pend": {
"version": "1.2.0",
- "devOptional": true,
- "license": "MIT"
+ "license": "MIT",
+ "optional": true
},
"node_modules/performance-now": {
"version": "2.1.0",
@@ -29334,15 +29019,6 @@
"license": "MIT",
"optional": true
},
- "node_modules/queue": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz",
- "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==",
- "dev": true,
- "dependencies": {
- "inherits": "~2.0.3"
- }
- },
"node_modules/queue-microtask": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
@@ -35205,8 +34881,8 @@
},
"node_modules/yauzl": {
"version": "2.10.0",
- "devOptional": true,
"license": "MIT",
+ "optional": true,
"dependencies": {
"buffer-crc32": "~0.2.3",
"fd-slicer": "~1.1.0"
@@ -40162,229 +39838,6 @@
"webcrypto-core": "^1.7.7"
}
},
- "@percy/cli": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli/-/cli-1.21.0.tgz",
- "integrity": "sha512-capaTXkj/L0Itn8VpDY/ePkHM9InaqwTRTK+IHGTA2HsRlpiNotunDAv8cNJ/fBMoRBh1Bki7tEWIp6zB+KmBQ==",
- "dev": true,
- "requires": {
- "@percy/cli-app": "1.21.0",
- "@percy/cli-build": "1.21.0",
- "@percy/cli-command": "1.21.0",
- "@percy/cli-config": "1.21.0",
- "@percy/cli-exec": "1.21.0",
- "@percy/cli-snapshot": "1.21.0",
- "@percy/cli-upload": "1.21.0",
- "@percy/client": "1.21.0",
- "@percy/logger": "1.21.0"
- }
- },
- "@percy/cli-app": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-app/-/cli-app-1.21.0.tgz",
- "integrity": "sha512-kkYMTGEk33nsLIIKx57LzheK7WZK77Y52c+DAwnV1FDpzDvhpP4eLEpXwarTIapN76O4wZndFlX4zm07U9Cvfw==",
- "dev": true,
- "requires": {
- "@percy/cli-command": "1.21.0",
- "@percy/cli-exec": "1.21.0"
- }
- },
- "@percy/cli-build": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-build/-/cli-build-1.21.0.tgz",
- "integrity": "sha512-LRvGsTl6bw6zNMOQ36emjdIdkvCEUAbRRp2nryBODMpJ8YUd1NcXw/qLVM2bzpJcTmeBXR76Yjgi1VhFZrNZlg==",
- "dev": true,
- "requires": {
- "@percy/cli-command": "1.21.0"
- }
- },
- "@percy/cli-command": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-command/-/cli-command-1.21.0.tgz",
- "integrity": "sha512-ZfjDMgUQRQonJT106Y89NVDzVd2qDmwQ+4oC0AyGgE5h1cHAEaPoYV8LnMvpjbvFYni+jbeZvHNANMP7Ut2yOQ==",
- "dev": true,
- "requires": {
- "@percy/config": "1.21.0",
- "@percy/core": "1.21.0",
- "@percy/logger": "1.21.0"
- }
- },
- "@percy/cli-config": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-config/-/cli-config-1.21.0.tgz",
- "integrity": "sha512-7Wn3L/XkKhVWixH4/oPJV66jD6LBCma6pT/bzbKuV5Hlpscel2xz3p8JSDOvxQJl1eSRtjwhI1HP/0OT6EX5dg==",
- "dev": true,
- "requires": {
- "@percy/cli-command": "1.21.0"
- }
- },
- "@percy/cli-exec": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-exec/-/cli-exec-1.21.0.tgz",
- "integrity": "sha512-Uwqw1WqXzYXk4WQLyRWkQJ4Tdm7/bUOOa2HJU/J5kGLDmoSRNX/TesobFy8ii55mB0QV2hkZnMkAFPwzfxaCSw==",
- "dev": true,
- "requires": {
- "@percy/cli-command": "1.21.0",
- "cross-spawn": "^7.0.3",
- "which": "^2.0.2"
- },
- "dependencies": {
- "which": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
- "dev": true,
- "requires": {
- "isexe": "^2.0.0"
- }
- }
- }
- },
- "@percy/cli-snapshot": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-snapshot/-/cli-snapshot-1.21.0.tgz",
- "integrity": "sha512-DR0yPRCCRFGXrDwfAmC/26yF4CGMTAWNgIKFgeQcPGgjkdXOSmm04fhU36QBU5S66B2gmSjEG0mfh+2oOD68EQ==",
- "dev": true,
- "requires": {
- "@percy/cli-command": "1.21.0",
- "yaml": "^2.0.0"
- },
- "dependencies": {
- "yaml": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz",
- "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==",
- "dev": true
- }
- }
- },
- "@percy/cli-upload": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/cli-upload/-/cli-upload-1.21.0.tgz",
- "integrity": "sha512-NDh6NiirUgdnrNergiwtQceA0TjcT5vK6dzuE6pscwksvb9vzx+tvvbBcVBhpEQt+FmIoYDdqb8FVzMqxd5wEg==",
- "dev": true,
- "requires": {
- "@percy/cli-command": "1.21.0",
- "fast-glob": "^3.2.11",
- "image-size": "^1.0.0"
- }
- },
- "@percy/client": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/client/-/client-1.21.0.tgz",
- "integrity": "sha512-IKFcMYcibWQjisjmS4K9HK7TbjPK4fnVeh/3Uq7Da0ejiu5qBvLn49aNcYfnrguPqaUcgIvLvpcgtHeH+srv/g==",
- "dev": true,
- "requires": {
- "@percy/env": "1.21.0",
- "@percy/logger": "1.21.0"
- }
- },
- "@percy/config": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/config/-/config-1.21.0.tgz",
- "integrity": "sha512-s6XFBhjP0fGVg8onapDwebGNIdwMgdidZW5q0HziBiQVqfwh/83NkDlCq+c6/JU5P0Y5DArxCIFDVUfiLkcs4A==",
- "dev": true,
- "requires": {
- "@percy/logger": "1.21.0",
- "ajv": "^8.6.2",
- "cosmiconfig": "^7.0.0",
- "yaml": "^2.0.0"
- },
- "dependencies": {
- "ajv": {
- "version": "8.12.0",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
- "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
- "dev": true,
- "requires": {
- "fast-deep-equal": "^3.1.1",
- "json-schema-traverse": "^1.0.0",
- "require-from-string": "^2.0.2",
- "uri-js": "^4.2.2"
- }
- },
- "json-schema-traverse": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
- "dev": true
- },
- "yaml": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz",
- "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==",
- "dev": true
- }
- }
- },
- "@percy/core": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/core/-/core-1.21.0.tgz",
- "integrity": "sha512-YFBTiRghq1m9t0/4ZUFWgS8LJ4DYugcMDoZ04yKWsIjRDcALwHAZahYpBZRcHkmfqB/kqLB5IYoyc6rel+PNeA==",
- "dev": true,
- "requires": {
- "@percy/client": "1.21.0",
- "@percy/config": "1.21.0",
- "@percy/dom": "1.21.0",
- "@percy/logger": "1.21.0",
- "content-disposition": "^0.5.4",
- "cross-spawn": "^7.0.3",
- "extract-zip": "^2.0.1",
- "fast-glob": "^3.2.11",
- "micromatch": "^4.0.4",
- "mime-types": "^2.1.34",
- "path-to-regexp": "^6.2.0",
- "rimraf": "^3.0.2",
- "ws": "^8.0.0"
- },
- "dependencies": {
- "path-to-regexp": {
- "version": "6.2.1",
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.1.tgz",
- "integrity": "sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==",
- "dev": true
- },
- "ws": {
- "version": "8.13.0",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
- "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
- "dev": true
- }
- }
- },
- "@percy/cypress": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/@percy/cypress/-/cypress-3.1.2.tgz",
- "integrity": "sha512-JXrGDZbqwkzQd2h5T5D7PvqoucNaiMh4ChPp8cLQiEtRuLHta9nf1lEuXH+jnatGL2j+3jJFIHJ0L7XrgVnvQA==",
- "dev": true,
- "requires": {
- "@percy/sdk-utils": "^1.3.1"
- }
- },
- "@percy/dom": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/dom/-/dom-1.21.0.tgz",
- "integrity": "sha512-OKpS9EPnUrMx3Mu9L7QiqEtc+yAUz3gbXrbRlrPAljyRAmmBe9p5vy0hKtP8wO1vxjumqmtxNABpz5bc70CJ2Q==",
- "dev": true
- },
- "@percy/env": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/env/-/env-1.21.0.tgz",
- "integrity": "sha512-rqbACxivUTkpAJnjk/7IosFdh2vdz1SVGV0KXFf2xtEuUb7YhYrYixhf/6xE81o93C+pxrlXYWkgUSaMhZpP5A==",
- "dev": true
- },
- "@percy/logger": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/logger/-/logger-1.21.0.tgz",
- "integrity": "sha512-qKKSFP25X+a50vpjUSolI8WSQ2YAunS6K4brdTRemgvc48Wlkv3541SP8iMK5BAy3Nn4u0KRiwkstvyRr1tXlA==",
- "dev": true
- },
- "@percy/sdk-utils": {
- "version": "1.21.0",
- "resolved": "https://registry.npmjs.org/@percy/sdk-utils/-/sdk-utils-1.21.0.tgz",
- "integrity": "sha512-ZI6QbIhMZvE3P73ar7aeXcjSk8/czlS7h55QBynoJNorwimq5xed1CGPHu00uQsCO6dXeEKTfxQcqbCypRE6Hw==",
- "dev": true
- },
"@radix-ui/number": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.0.1.tgz",
@@ -46045,7 +45498,7 @@
},
"buffer-crc32": {
"version": "0.2.13",
- "devOptional": true
+ "optional": true
},
"buffer-from": {
"version": "1.1.1",
@@ -46854,7 +46307,7 @@
"version": "0.5.4",
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
- "devOptional": true,
+ "optional": true,
"requires": {
"safe-buffer": "5.2.1"
}
@@ -49907,7 +49360,7 @@
},
"extract-zip": {
"version": "2.0.1",
- "devOptional": true,
+ "optional": true,
"requires": {
"@types/yauzl": "^2.9.1",
"debug": "^4.1.1",
@@ -50013,7 +49466,7 @@
},
"fd-slicer": {
"version": "1.1.0",
- "devOptional": true,
+ "optional": true,
"requires": {
"pend": "~1.2.0"
}
@@ -51189,15 +50642,6 @@
"minimatch": "^3.0.4"
}
},
- "image-size": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/image-size/-/image-size-1.0.2.tgz",
- "integrity": "sha512-xfOoWjceHntRb3qFCrh5ZFORYH8XCdYpASltMhZ/Q0KZiOwjdE/Yl2QCiWdwD+lygV5bMCvauzgu5PxBX/Yerg==",
- "dev": true,
- "requires": {
- "queue": "6.0.2"
- }
- },
"immutable": {
"version": "3.7.6",
"dev": true
@@ -55240,7 +54684,7 @@
},
"pend": {
"version": "1.2.0",
- "devOptional": true
+ "optional": true
},
"performance-now": {
"version": "2.1.0"
@@ -55721,15 +55165,6 @@
"version": "2.2.0",
"optional": true
},
- "queue": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/queue/-/queue-6.0.2.tgz",
- "integrity": "sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==",
- "dev": true,
- "requires": {
- "inherits": "~2.0.3"
- }
- },
"queue-microtask": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
@@ -59906,7 +59341,7 @@
},
"yauzl": {
"version": "2.10.0",
- "devOptional": true,
+ "optional": true,
"requires": {
"buffer-crc32": "~0.2.3",
"fd-slicer": "~1.1.0"
diff --git a/package.json b/package.json
index b67f08f37..018f0de8b 100644
--- a/package.json
+++ b/package.json
@@ -121,8 +121,6 @@
"@graphql-codegen/typescript-apollo-client-helpers": "^2.1.10",
"@graphql-codegen/typescript-operations": "^2.2.4",
"@graphql-codegen/typescript-react-apollo": "^3.2.5",
- "@percy/cli": "^1.21.0",
- "@percy/cypress": "^3.1.2",
"@saleor/app-sdk": "0.43.0",
"@swc/jest": "^0.2.26",
"@types/apollo-upload-client": "^17.0.2",
@@ -316,8 +314,6 @@
"cy:run:critical:parallel": "cypress run --record --env grepTags=@critical --parallel --tag Critical",
"cy:run:allEnv:parallel": "cypress run --record --env grepTags=@allEnv --parallel",
"cy:run:stable:parallel": "cypress run --record --env grepTags=@critical --parallel --tag Stable",
- "cy:percy": "CYPRESS_demoTests=true percy exec -- npm run cy:run",
- "cy:run:demo": "CYPRESS_demoTests=true npm run cy:run",
"test": "jest src/",
"test:watch": "jest --watch src/",
"lint": "eslint \"src/**/*.@(tsx|ts|jsx|js)\" --fix",