removed percy and demo tests code - not useful anymore (#4029)

* removed percy and demo tests code - not usefull anymore

* removed percy from dev dependecies
This commit is contained in:
wojteknowacki 2023-07-28 11:48:19 +02:00 committed by GitHub
parent c91bf54116
commit 5087dec2d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 15 additions and 722 deletions

View file

@ -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

View file

@ -24,16 +24,10 @@ module.exports = defineConfig({
e2e: { e2e: {
env: { env: {
grepFilterSpecs: true, grepFilterSpecs: true,
demoTests: false,
}, },
setupNodeEvents(on, config) { 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/support/cypress-grep/plugin")(config);
config = require("./cypress/plugins/index.js")(on, config); config = require("./cypress/plugins/index.js")(on, config);
on("after:spec", (spec, results) => { on("after:spec", (spec, results) => {
if (results && results.video) { if (results && results.video) {
return fs.unlink(results.video, function (err) { return fs.unlink(results.video, function (err) {
@ -47,5 +41,6 @@ module.exports = defineConfig({
}); });
return config; return config;
}, },
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
}, },
}); });

View file

@ -1,30 +0,0 @@
/// <reference types="cypress"/>
/// <reference types="../../support"/>
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");
});
});
});

View file

@ -37,7 +37,7 @@ module.exports = async (on, config) => {
process.env.CYPRESS_PERMISSIONS_USERS_PASSWORD; process.env.CYPRESS_PERMISSIONS_USERS_PASSWORD;
config.env.MAILPITURL = process.env.CYPRESS_MAILPITURL; config.env.MAILPITURL = process.env.CYPRESS_MAILPITURL;
config.env.grepTags = process.env.CYPRESS_grepTags; 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) => { on("before:browser:launch", (_browser = {}, launchOptions) => {
launchOptions.args.push("--proxy-bypass-list=<-loopback>"); launchOptions.args.push("--proxy-bypass-list=<-loopback>");
@ -47,9 +47,6 @@ module.exports = async (on, config) => {
return config; return config;
}; };
const baseUrl = isDemoTesting =>
isDemoTesting ? process.env.CYPRESS_DEMO_URI : process.env.CYPRESS_baseUrl;
function getShopInfo(envVariables) { function getShopInfo(envVariables) {
const createTokenMutation = graphql.gql`mutation tokenCreate($email: String!, $password: String!){ const createTokenMutation = graphql.gql`mutation tokenCreate($email: String!, $password: String!){
tokenCreate(email:$email, password:$password){ tokenCreate(email:$email, password:$password){

View file

@ -14,7 +14,6 @@ import "./customCommands/sharedElementsOperations/selects.js";
import "./customCommands/sharedElementsOperations/tables"; import "./customCommands/sharedElementsOperations/tables";
import "./customCommands/softAssertions"; import "./customCommands/softAssertions";
import "./customCommands/user"; import "./customCommands/user";
import "@percy/cypress";
import { commandTimings } from "cypress-timings"; import { commandTimings } from "cypress-timings";

591
package-lock.json generated
View file

@ -114,8 +114,6 @@
"@graphql-codegen/typescript-apollo-client-helpers": "^2.1.10", "@graphql-codegen/typescript-apollo-client-helpers": "^2.1.10",
"@graphql-codegen/typescript-operations": "^2.2.4", "@graphql-codegen/typescript-operations": "^2.2.4",
"@graphql-codegen/typescript-react-apollo": "^3.2.5", "@graphql-codegen/typescript-react-apollo": "^3.2.5",
"@percy/cli": "^1.21.0",
"@percy/cypress": "^3.1.2",
"@saleor/app-sdk": "0.43.0", "@saleor/app-sdk": "0.43.0",
"@swc/jest": "^0.2.26", "@swc/jest": "^0.2.26",
"@types/apollo-upload-client": "^17.0.2", "@types/apollo-upload-client": "^17.0.2",
@ -6991,304 +6989,6 @@
"node": ">=10.12.0" "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": { "node_modules/@radix-ui/number": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.0.1.tgz", "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.0.1.tgz",
@ -15339,8 +15039,8 @@
}, },
"node_modules/buffer-crc32": { "node_modules/buffer-crc32": {
"version": "0.2.13", "version": "0.2.13",
"devOptional": true,
"license": "MIT", "license": "MIT",
"optional": true,
"engines": { "engines": {
"node": "*" "node": "*"
} }
@ -16463,7 +16163,7 @@
"version": "0.5.4", "version": "0.5.4",
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
"devOptional": true, "optional": true,
"dependencies": { "dependencies": {
"safe-buffer": "5.2.1" "safe-buffer": "5.2.1"
}, },
@ -21020,8 +20720,8 @@
}, },
"node_modules/extract-zip": { "node_modules/extract-zip": {
"version": "2.0.1", "version": "2.0.1",
"devOptional": true,
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"optional": true,
"dependencies": { "dependencies": {
"debug": "^4.1.1", "debug": "^4.1.1",
"get-stream": "^5.1.0", "get-stream": "^5.1.0",
@ -21149,8 +20849,8 @@
}, },
"node_modules/fd-slicer": { "node_modules/fd-slicer": {
"version": "1.1.0", "version": "1.1.0",
"devOptional": true,
"license": "MIT", "license": "MIT",
"optional": true,
"dependencies": { "dependencies": {
"pend": "~1.2.0" "pend": "~1.2.0"
} }
@ -22853,21 +22553,6 @@
"minimatch": "^3.0.4" "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": { "node_modules/immutable": {
"version": "3.7.6", "version": "3.7.6",
"dev": true, "dev": true,
@ -28689,8 +28374,8 @@
}, },
"node_modules/pend": { "node_modules/pend": {
"version": "1.2.0", "version": "1.2.0",
"devOptional": true, "license": "MIT",
"license": "MIT" "optional": true
}, },
"node_modules/performance-now": { "node_modules/performance-now": {
"version": "2.1.0", "version": "2.1.0",
@ -29334,15 +29019,6 @@
"license": "MIT", "license": "MIT",
"optional": true "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": { "node_modules/queue-microtask": {
"version": "1.2.3", "version": "1.2.3",
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
@ -35205,8 +34881,8 @@
}, },
"node_modules/yauzl": { "node_modules/yauzl": {
"version": "2.10.0", "version": "2.10.0",
"devOptional": true,
"license": "MIT", "license": "MIT",
"optional": true,
"dependencies": { "dependencies": {
"buffer-crc32": "~0.2.3", "buffer-crc32": "~0.2.3",
"fd-slicer": "~1.1.0" "fd-slicer": "~1.1.0"
@ -40162,229 +39838,6 @@
"webcrypto-core": "^1.7.7" "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": { "@radix-ui/number": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.0.1.tgz", "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.0.1.tgz",
@ -46045,7 +45498,7 @@
}, },
"buffer-crc32": { "buffer-crc32": {
"version": "0.2.13", "version": "0.2.13",
"devOptional": true "optional": true
}, },
"buffer-from": { "buffer-from": {
"version": "1.1.1", "version": "1.1.1",
@ -46854,7 +46307,7 @@
"version": "0.5.4", "version": "0.5.4",
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
"devOptional": true, "optional": true,
"requires": { "requires": {
"safe-buffer": "5.2.1" "safe-buffer": "5.2.1"
} }
@ -49907,7 +49360,7 @@
}, },
"extract-zip": { "extract-zip": {
"version": "2.0.1", "version": "2.0.1",
"devOptional": true, "optional": true,
"requires": { "requires": {
"@types/yauzl": "^2.9.1", "@types/yauzl": "^2.9.1",
"debug": "^4.1.1", "debug": "^4.1.1",
@ -50013,7 +49466,7 @@
}, },
"fd-slicer": { "fd-slicer": {
"version": "1.1.0", "version": "1.1.0",
"devOptional": true, "optional": true,
"requires": { "requires": {
"pend": "~1.2.0" "pend": "~1.2.0"
} }
@ -51189,15 +50642,6 @@
"minimatch": "^3.0.4" "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": { "immutable": {
"version": "3.7.6", "version": "3.7.6",
"dev": true "dev": true
@ -55240,7 +54684,7 @@
}, },
"pend": { "pend": {
"version": "1.2.0", "version": "1.2.0",
"devOptional": true "optional": true
}, },
"performance-now": { "performance-now": {
"version": "2.1.0" "version": "2.1.0"
@ -55721,15 +55165,6 @@
"version": "2.2.0", "version": "2.2.0",
"optional": true "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": { "queue-microtask": {
"version": "1.2.3", "version": "1.2.3",
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
@ -59906,7 +59341,7 @@
}, },
"yauzl": { "yauzl": {
"version": "2.10.0", "version": "2.10.0",
"devOptional": true, "optional": true,
"requires": { "requires": {
"buffer-crc32": "~0.2.3", "buffer-crc32": "~0.2.3",
"fd-slicer": "~1.1.0" "fd-slicer": "~1.1.0"

View file

@ -121,8 +121,6 @@
"@graphql-codegen/typescript-apollo-client-helpers": "^2.1.10", "@graphql-codegen/typescript-apollo-client-helpers": "^2.1.10",
"@graphql-codegen/typescript-operations": "^2.2.4", "@graphql-codegen/typescript-operations": "^2.2.4",
"@graphql-codegen/typescript-react-apollo": "^3.2.5", "@graphql-codegen/typescript-react-apollo": "^3.2.5",
"@percy/cli": "^1.21.0",
"@percy/cypress": "^3.1.2",
"@saleor/app-sdk": "0.43.0", "@saleor/app-sdk": "0.43.0",
"@swc/jest": "^0.2.26", "@swc/jest": "^0.2.26",
"@types/apollo-upload-client": "^17.0.2", "@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:critical:parallel": "cypress run --record --env grepTags=@critical --parallel --tag Critical",
"cy:run:allEnv:parallel": "cypress run --record --env grepTags=@allEnv --parallel", "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: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": "jest src/",
"test:watch": "jest --watch src/", "test:watch": "jest --watch src/",
"lint": "eslint \"src/**/*.@(tsx|ts|jsx|js)\" --fix", "lint": "eslint \"src/**/*.@(tsx|ts|jsx|js)\" --fix",