From 056b3501ebb928eb6fb04378a426c5547c44db26 Mon Sep 17 00:00:00 2001 From: Karolina Rakoczy Date: Wed, 8 Jun 2022 12:33:11 +0400 Subject: [PATCH] Update Cypress Version (#2080) * Update Cypress Version * sparete specs with coma * change workflows to use latest cypress verion --- .github/workflows/e2e.yml | 4 +- .github/workflows/test-env-deploy.yml | 4 +- .github/workflows/tests-nightly.yml | 6 +- cypress.config.js | 21 ++++ cypress.json | 11 -- cypress/{integration => e2e}/apps.js | 0 .../catalog/categories.js | 0 .../catalog/collections.js | 0 .../catalog/giftCards/activateGiftCards.js | 0 .../catalog/giftCards/createGiftCard.js | 0 .../catalog/giftCards/purchaseGiftCard.js | 0 .../catalog/giftCards/updatingGiftCards.js | 0 .../checkout/clickAndCollect.js | 0 .../checkout/productWithoutShipping.js | 0 .../checkout/purchaseWithProductTypes.js | 0 .../checkout/stocksInCheckout.js | 0 .../checkout/warehouses.js | 0 .../attributes/attributeVariantSelection.js | 0 .../attributes/createContentAttribute.js | 0 .../attributes/createProductAttributes.js | 0 .../deleteAndUpdateContentAttribute.js | 0 .../configuration/attributes/filters.js | 0 .../configuration/channels/channels.js | 0 .../configuration/channels/inactiveChannel.js | 0 .../configuration/customer.js | 0 .../configuration/navigation.js | 0 .../configuration/permissions.js | 0 .../configuration/plugins/adyen.js | 0 .../configuration/plugins/plugins.js | 0 .../configuration/plugins/stripe.js | 0 .../attributesInProduductTypes.js | 0 .../productTypes/createProductType.js | 0 .../productTypes/deleteProductType.js | 0 .../shippingMethods/channelsInShipping.js | 0 .../shippingMethods/createShippingMethod.js | 0 .../shippingMethods/editShippingMethod.js | 0 .../shippingMethods/editShippingZone.js | 0 .../shippingMethods/postalCodes.js | 0 .../shippingWeights/shippingWeightsLimits.js | 0 .../shippingWeights/weightRecalculate.js | 0 .../configuration/siteSettings.js | 0 .../configuration/warehouses/warehouse.js | 0 .../customerRegistration.js | 0 .../{integration => e2e}/discounts/sales.js | 0 .../discounts/salesForProducts.js | 0 .../discounts/salesForVariants.js | 0 .../discounts/vouchers/createVouchers.js | 0 .../vouchers/createVouchersWithLimits.js | 2 - .../discounts/vouchers/updateVouchers.js | 0 .../{integration => e2e}/homePage/homePage.js | 0 .../homePage/homePageAnalitics.js | 0 cypress/{integration => e2e}/login.js | 0 cypress/{integration => e2e}/metadata.js | 0 cypress/{integration => e2e}/navigation.js | 0 .../orders/channelsInDraftOrders.js | 0 .../orders/draftOrders.js | 0 .../orders/manageStockReservation.js | 0 cypress/{integration => e2e}/orders/orders.js | 0 .../{integration => e2e}/pages/pageTypes.js | 0 cypress/{integration => e2e}/pages/pages.js | 0 .../createAndEditVariantsInPreorder.js | 0 .../preorders/stocksAndThreshold.js | 0 .../products/createProduct.js | 0 .../{integration => e2e}/products/images.js | 0 .../availableForPurchaseProducts.js | 0 .../menageProducts/publishedProducts.js | 0 .../visibleInListingsProducts.js | 0 .../productsList/filteringProducts.js | 0 .../products/productsList/pagination.js | 0 .../products/productsList/sortingProducts.js | 0 .../products/productsVariants.js | 0 .../createProductWithoutSku.js | 0 .../productsWithoutSkuInOrder.js | 0 .../updatingProductsWithoutSku.js | 0 .../products/updatingProducts.js | 0 cypress/{integration => e2e}/staffMembers.js | 0 cypress/{integration => e2e}/translations.js | 0 cypress/support/{index.js => e2e.js} | 0 package-lock.json | 106 ++++++++++-------- package.json | 8 +- 80 files changed, 94 insertions(+), 68 deletions(-) create mode 100644 cypress.config.js delete mode 100644 cypress.json rename cypress/{integration => e2e}/apps.js (100%) rename cypress/{integration => e2e}/catalog/categories.js (100%) rename cypress/{integration => e2e}/catalog/collections.js (100%) rename cypress/{integration => e2e}/catalog/giftCards/activateGiftCards.js (100%) rename cypress/{integration => e2e}/catalog/giftCards/createGiftCard.js (100%) rename cypress/{integration => e2e}/catalog/giftCards/purchaseGiftCard.js (100%) rename cypress/{integration => e2e}/catalog/giftCards/updatingGiftCards.js (100%) rename cypress/{integration => e2e}/checkout/clickAndCollect.js (100%) rename cypress/{integration => e2e}/checkout/productWithoutShipping.js (100%) rename cypress/{integration => e2e}/checkout/purchaseWithProductTypes.js (100%) rename cypress/{integration => e2e}/checkout/stocksInCheckout.js (100%) rename cypress/{integration => e2e}/checkout/warehouses.js (100%) rename cypress/{integration => e2e}/configuration/attributes/attributeVariantSelection.js (100%) rename cypress/{integration => e2e}/configuration/attributes/createContentAttribute.js (100%) rename cypress/{integration => e2e}/configuration/attributes/createProductAttributes.js (100%) rename cypress/{integration => e2e}/configuration/attributes/deleteAndUpdateContentAttribute.js (100%) rename cypress/{integration => e2e}/configuration/attributes/filters.js (100%) rename cypress/{integration => e2e}/configuration/channels/channels.js (100%) rename cypress/{integration => e2e}/configuration/channels/inactiveChannel.js (100%) rename cypress/{integration => e2e}/configuration/customer.js (100%) rename cypress/{integration => e2e}/configuration/navigation.js (100%) rename cypress/{integration => e2e}/configuration/permissions.js (100%) rename cypress/{integration => e2e}/configuration/plugins/adyen.js (100%) rename cypress/{integration => e2e}/configuration/plugins/plugins.js (100%) rename cypress/{integration => e2e}/configuration/plugins/stripe.js (100%) rename cypress/{integration => e2e}/configuration/productTypes/attributesInProduductTypes.js (100%) rename cypress/{integration => e2e}/configuration/productTypes/createProductType.js (100%) rename cypress/{integration => e2e}/configuration/productTypes/deleteProductType.js (100%) rename cypress/{integration => e2e}/configuration/shippingMethods/channelsInShipping.js (100%) rename cypress/{integration => e2e}/configuration/shippingMethods/createShippingMethod.js (100%) rename cypress/{integration => e2e}/configuration/shippingMethods/editShippingMethod.js (100%) rename cypress/{integration => e2e}/configuration/shippingMethods/editShippingZone.js (100%) rename cypress/{integration => e2e}/configuration/shippingMethods/postalCodes.js (100%) rename cypress/{integration => e2e}/configuration/shippingMethods/shippingWeights/shippingWeightsLimits.js (100%) rename cypress/{integration => e2e}/configuration/shippingMethods/shippingWeights/weightRecalculate.js (100%) rename cypress/{integration => e2e}/configuration/siteSettings.js (100%) rename cypress/{integration => e2e}/configuration/warehouses/warehouse.js (100%) rename cypress/{integration => e2e}/customerRegistration.js (100%) rename cypress/{integration => e2e}/discounts/sales.js (100%) rename cypress/{integration => e2e}/discounts/salesForProducts.js (100%) rename cypress/{integration => e2e}/discounts/salesForVariants.js (100%) rename cypress/{integration => e2e}/discounts/vouchers/createVouchers.js (100%) rename cypress/{integration => e2e}/discounts/vouchers/createVouchersWithLimits.js (98%) rename cypress/{integration => e2e}/discounts/vouchers/updateVouchers.js (100%) rename cypress/{integration => e2e}/homePage/homePage.js (100%) rename cypress/{integration => e2e}/homePage/homePageAnalitics.js (100%) rename cypress/{integration => e2e}/login.js (100%) rename cypress/{integration => e2e}/metadata.js (100%) rename cypress/{integration => e2e}/navigation.js (100%) rename cypress/{integration => e2e}/orders/channelsInDraftOrders.js (100%) rename cypress/{integration => e2e}/orders/draftOrders.js (100%) rename cypress/{integration => e2e}/orders/manageStockReservation.js (100%) rename cypress/{integration => e2e}/orders/orders.js (100%) rename cypress/{integration => e2e}/pages/pageTypes.js (100%) rename cypress/{integration => e2e}/pages/pages.js (100%) rename cypress/{integration => e2e}/preorders/createAndEditVariantsInPreorder.js (100%) rename cypress/{integration => e2e}/preorders/stocksAndThreshold.js (100%) rename cypress/{integration => e2e}/products/createProduct.js (100%) rename cypress/{integration => e2e}/products/images.js (100%) rename cypress/{integration => e2e}/products/menageProducts/availableForPurchaseProducts.js (100%) rename cypress/{integration => e2e}/products/menageProducts/publishedProducts.js (100%) rename cypress/{integration => e2e}/products/menageProducts/visibleInListingsProducts.js (100%) rename cypress/{integration => e2e}/products/productsList/filteringProducts.js (100%) rename cypress/{integration => e2e}/products/productsList/pagination.js (100%) rename cypress/{integration => e2e}/products/productsList/sortingProducts.js (100%) rename cypress/{integration => e2e}/products/productsVariants.js (100%) rename cypress/{integration => e2e}/products/productsWithoutSku/createProductWithoutSku.js (100%) rename cypress/{integration => e2e}/products/productsWithoutSku/productsWithoutSkuInOrder.js (100%) rename cypress/{integration => e2e}/products/productsWithoutSku/updatingProductsWithoutSku.js (100%) rename cypress/{integration => e2e}/products/updatingProducts.js (100%) rename cypress/{integration => e2e}/staffMembers.js (100%) rename cypress/{integration => e2e}/translations.js (100%) rename cypress/support/{index.js => e2e.js} (100%) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 602a460e8..bb6263603 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -27,7 +27,7 @@ jobs: - name: Cypress run full spec if: ${{ steps.api_uri.outputs.custom_api_uri == 'https://qa.staging.saleor.cloud/graphql/' }} - uses: cypress-io/github-action@v2 + uses: cypress-io/github-action@v4 env: API_URI: ${{ steps.api_uri.outputs.custom_api_uri }} APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }} @@ -50,7 +50,7 @@ jobs: - name: Cypress run allEnvs spec if: ${{ steps.api_uri.outputs.custom_api_uri != 'https://qa.staging.saleor.cloud/graphql/' }} - uses: cypress-io/github-action@v2 + uses: cypress-io/github-action@v4 env: API_URI: ${{ steps.api_uri.outputs.custom_api_uri }} APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }} diff --git a/.github/workflows/test-env-deploy.yml b/.github/workflows/test-env-deploy.yml index d9125ed91..4cfe5aafb 100644 --- a/.github/workflows/test-env-deploy.yml +++ b/.github/workflows/test-env-deploy.yml @@ -162,7 +162,7 @@ jobs: run: npm install - name: Cypress run critical - uses: cypress-io/github-action@v2 + uses: cypress-io/github-action@v4 env: API_URI: ${{ steps.api_uri.outputs.custom_api_uri }} APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }} @@ -174,7 +174,7 @@ jobs: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} with: tag: Critical, ${{github.event.action}} - command: npx cypress run --record --env tags=critical --spec cypress/integration/navigation.js, cypress/integration/products/createProduct.js, cypress/integration/products/productsVariants.js --tag Critical, PR_Deploy + command: npx cypress run --record --env tags=critical --spec cypress/e2e/navigation.js,cypress/e2e/products/createProduct.js,cypress/e2e/products/productsVariants.js --tag Critical, PR_Deploy - uses: actions/upload-artifact@v1 with: name: cypress-videos diff --git a/.github/workflows/tests-nightly.yml b/.github/workflows/tests-nightly.yml index e27047e67..625b6a05c 100644 --- a/.github/workflows/tests-nightly.yml +++ b/.github/workflows/tests-nightly.yml @@ -116,7 +116,7 @@ jobs: - name: Cypress run if: ${{ github.event.inputs.tests != 'Critical' }} - uses: cypress-io/github-action@v2 + uses: cypress-io/github-action@v4 env: API_URI: ${{ steps.get-env-uri.outputs.ENV_URI }}graphql/ APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }} @@ -134,7 +134,7 @@ jobs: - name: Cypress run if: ${{ github.event.inputs.tests == 'Critical' }} - uses: cypress-io/github-action@v2 + uses: cypress-io/github-action@v4 env: API_URI: ${{ steps.get-env-uri.outputs.ENV_URI }}graphql/ APP_MOUNT_URI: ${{ secrets.APP_MOUNT_URI }} @@ -148,7 +148,7 @@ jobs: with: parallel: true group: 'UI - Chrome' - command: npx cypress run --record --env tags=critical --spec cypress/integration/navigation.js, cypress/integration/products/createProduct.js, cypress/integration/products/productsVariants.js --parallel --tag ${{ steps.get-env-uri.outputs.ENV_URI }}, Critical + command: npx cypress run --record --env tags=critical --spec cypress/e2e/navigation.js,cypress/e2e/products/createProduct.js,cypress/e2e/products/productsVariants.js --parallel --tag ${{ steps.get-env-uri.outputs.ENV_URI }}, Critical diff --git a/cypress.config.js b/cypress.config.js new file mode 100644 index 000000000..6b5af67f9 --- /dev/null +++ b/cypress.config.js @@ -0,0 +1,21 @@ +/* eslint-disable @typescript-eslint/no-var-requires */ +const { defineConfig } = require("cypress"); + +module.exports = defineConfig({ + projectId: "51ef7c", + chromeWebSecurity: false, + videoUploadOnPasses: false, + defaultCommandTimeout: 15000, + requestTimeout: 15000, + viewportWidth: 1400, + viewportHeight: 660, + 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); + }, + baseUrl: "http://localhost:9000/", + specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}" + } +}); diff --git a/cypress.json b/cypress.json deleted file mode 100644 index 1fffbce33..000000000 --- a/cypress.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "baseUrl": "http://localhost:9000/", - "projectId": "51ef7c", - "chromeWebSecurity": false, - "videoUploadOnPasses": false, - "defaultCommandTimeout": 15000, - "requestTimeout": 15000, - "viewportWidth": 1400, - "viewportHeight": 660, - "videos": false -} \ No newline at end of file diff --git a/cypress/integration/apps.js b/cypress/e2e/apps.js similarity index 100% rename from cypress/integration/apps.js rename to cypress/e2e/apps.js diff --git a/cypress/integration/catalog/categories.js b/cypress/e2e/catalog/categories.js similarity index 100% rename from cypress/integration/catalog/categories.js rename to cypress/e2e/catalog/categories.js diff --git a/cypress/integration/catalog/collections.js b/cypress/e2e/catalog/collections.js similarity index 100% rename from cypress/integration/catalog/collections.js rename to cypress/e2e/catalog/collections.js diff --git a/cypress/integration/catalog/giftCards/activateGiftCards.js b/cypress/e2e/catalog/giftCards/activateGiftCards.js similarity index 100% rename from cypress/integration/catalog/giftCards/activateGiftCards.js rename to cypress/e2e/catalog/giftCards/activateGiftCards.js diff --git a/cypress/integration/catalog/giftCards/createGiftCard.js b/cypress/e2e/catalog/giftCards/createGiftCard.js similarity index 100% rename from cypress/integration/catalog/giftCards/createGiftCard.js rename to cypress/e2e/catalog/giftCards/createGiftCard.js diff --git a/cypress/integration/catalog/giftCards/purchaseGiftCard.js b/cypress/e2e/catalog/giftCards/purchaseGiftCard.js similarity index 100% rename from cypress/integration/catalog/giftCards/purchaseGiftCard.js rename to cypress/e2e/catalog/giftCards/purchaseGiftCard.js diff --git a/cypress/integration/catalog/giftCards/updatingGiftCards.js b/cypress/e2e/catalog/giftCards/updatingGiftCards.js similarity index 100% rename from cypress/integration/catalog/giftCards/updatingGiftCards.js rename to cypress/e2e/catalog/giftCards/updatingGiftCards.js diff --git a/cypress/integration/checkout/clickAndCollect.js b/cypress/e2e/checkout/clickAndCollect.js similarity index 100% rename from cypress/integration/checkout/clickAndCollect.js rename to cypress/e2e/checkout/clickAndCollect.js diff --git a/cypress/integration/checkout/productWithoutShipping.js b/cypress/e2e/checkout/productWithoutShipping.js similarity index 100% rename from cypress/integration/checkout/productWithoutShipping.js rename to cypress/e2e/checkout/productWithoutShipping.js diff --git a/cypress/integration/checkout/purchaseWithProductTypes.js b/cypress/e2e/checkout/purchaseWithProductTypes.js similarity index 100% rename from cypress/integration/checkout/purchaseWithProductTypes.js rename to cypress/e2e/checkout/purchaseWithProductTypes.js diff --git a/cypress/integration/checkout/stocksInCheckout.js b/cypress/e2e/checkout/stocksInCheckout.js similarity index 100% rename from cypress/integration/checkout/stocksInCheckout.js rename to cypress/e2e/checkout/stocksInCheckout.js diff --git a/cypress/integration/checkout/warehouses.js b/cypress/e2e/checkout/warehouses.js similarity index 100% rename from cypress/integration/checkout/warehouses.js rename to cypress/e2e/checkout/warehouses.js diff --git a/cypress/integration/configuration/attributes/attributeVariantSelection.js b/cypress/e2e/configuration/attributes/attributeVariantSelection.js similarity index 100% rename from cypress/integration/configuration/attributes/attributeVariantSelection.js rename to cypress/e2e/configuration/attributes/attributeVariantSelection.js diff --git a/cypress/integration/configuration/attributes/createContentAttribute.js b/cypress/e2e/configuration/attributes/createContentAttribute.js similarity index 100% rename from cypress/integration/configuration/attributes/createContentAttribute.js rename to cypress/e2e/configuration/attributes/createContentAttribute.js diff --git a/cypress/integration/configuration/attributes/createProductAttributes.js b/cypress/e2e/configuration/attributes/createProductAttributes.js similarity index 100% rename from cypress/integration/configuration/attributes/createProductAttributes.js rename to cypress/e2e/configuration/attributes/createProductAttributes.js diff --git a/cypress/integration/configuration/attributes/deleteAndUpdateContentAttribute.js b/cypress/e2e/configuration/attributes/deleteAndUpdateContentAttribute.js similarity index 100% rename from cypress/integration/configuration/attributes/deleteAndUpdateContentAttribute.js rename to cypress/e2e/configuration/attributes/deleteAndUpdateContentAttribute.js diff --git a/cypress/integration/configuration/attributes/filters.js b/cypress/e2e/configuration/attributes/filters.js similarity index 100% rename from cypress/integration/configuration/attributes/filters.js rename to cypress/e2e/configuration/attributes/filters.js diff --git a/cypress/integration/configuration/channels/channels.js b/cypress/e2e/configuration/channels/channels.js similarity index 100% rename from cypress/integration/configuration/channels/channels.js rename to cypress/e2e/configuration/channels/channels.js diff --git a/cypress/integration/configuration/channels/inactiveChannel.js b/cypress/e2e/configuration/channels/inactiveChannel.js similarity index 100% rename from cypress/integration/configuration/channels/inactiveChannel.js rename to cypress/e2e/configuration/channels/inactiveChannel.js diff --git a/cypress/integration/configuration/customer.js b/cypress/e2e/configuration/customer.js similarity index 100% rename from cypress/integration/configuration/customer.js rename to cypress/e2e/configuration/customer.js diff --git a/cypress/integration/configuration/navigation.js b/cypress/e2e/configuration/navigation.js similarity index 100% rename from cypress/integration/configuration/navigation.js rename to cypress/e2e/configuration/navigation.js diff --git a/cypress/integration/configuration/permissions.js b/cypress/e2e/configuration/permissions.js similarity index 100% rename from cypress/integration/configuration/permissions.js rename to cypress/e2e/configuration/permissions.js diff --git a/cypress/integration/configuration/plugins/adyen.js b/cypress/e2e/configuration/plugins/adyen.js similarity index 100% rename from cypress/integration/configuration/plugins/adyen.js rename to cypress/e2e/configuration/plugins/adyen.js diff --git a/cypress/integration/configuration/plugins/plugins.js b/cypress/e2e/configuration/plugins/plugins.js similarity index 100% rename from cypress/integration/configuration/plugins/plugins.js rename to cypress/e2e/configuration/plugins/plugins.js diff --git a/cypress/integration/configuration/plugins/stripe.js b/cypress/e2e/configuration/plugins/stripe.js similarity index 100% rename from cypress/integration/configuration/plugins/stripe.js rename to cypress/e2e/configuration/plugins/stripe.js diff --git a/cypress/integration/configuration/productTypes/attributesInProduductTypes.js b/cypress/e2e/configuration/productTypes/attributesInProduductTypes.js similarity index 100% rename from cypress/integration/configuration/productTypes/attributesInProduductTypes.js rename to cypress/e2e/configuration/productTypes/attributesInProduductTypes.js diff --git a/cypress/integration/configuration/productTypes/createProductType.js b/cypress/e2e/configuration/productTypes/createProductType.js similarity index 100% rename from cypress/integration/configuration/productTypes/createProductType.js rename to cypress/e2e/configuration/productTypes/createProductType.js diff --git a/cypress/integration/configuration/productTypes/deleteProductType.js b/cypress/e2e/configuration/productTypes/deleteProductType.js similarity index 100% rename from cypress/integration/configuration/productTypes/deleteProductType.js rename to cypress/e2e/configuration/productTypes/deleteProductType.js diff --git a/cypress/integration/configuration/shippingMethods/channelsInShipping.js b/cypress/e2e/configuration/shippingMethods/channelsInShipping.js similarity index 100% rename from cypress/integration/configuration/shippingMethods/channelsInShipping.js rename to cypress/e2e/configuration/shippingMethods/channelsInShipping.js diff --git a/cypress/integration/configuration/shippingMethods/createShippingMethod.js b/cypress/e2e/configuration/shippingMethods/createShippingMethod.js similarity index 100% rename from cypress/integration/configuration/shippingMethods/createShippingMethod.js rename to cypress/e2e/configuration/shippingMethods/createShippingMethod.js diff --git a/cypress/integration/configuration/shippingMethods/editShippingMethod.js b/cypress/e2e/configuration/shippingMethods/editShippingMethod.js similarity index 100% rename from cypress/integration/configuration/shippingMethods/editShippingMethod.js rename to cypress/e2e/configuration/shippingMethods/editShippingMethod.js diff --git a/cypress/integration/configuration/shippingMethods/editShippingZone.js b/cypress/e2e/configuration/shippingMethods/editShippingZone.js similarity index 100% rename from cypress/integration/configuration/shippingMethods/editShippingZone.js rename to cypress/e2e/configuration/shippingMethods/editShippingZone.js diff --git a/cypress/integration/configuration/shippingMethods/postalCodes.js b/cypress/e2e/configuration/shippingMethods/postalCodes.js similarity index 100% rename from cypress/integration/configuration/shippingMethods/postalCodes.js rename to cypress/e2e/configuration/shippingMethods/postalCodes.js diff --git a/cypress/integration/configuration/shippingMethods/shippingWeights/shippingWeightsLimits.js b/cypress/e2e/configuration/shippingMethods/shippingWeights/shippingWeightsLimits.js similarity index 100% rename from cypress/integration/configuration/shippingMethods/shippingWeights/shippingWeightsLimits.js rename to cypress/e2e/configuration/shippingMethods/shippingWeights/shippingWeightsLimits.js diff --git a/cypress/integration/configuration/shippingMethods/shippingWeights/weightRecalculate.js b/cypress/e2e/configuration/shippingMethods/shippingWeights/weightRecalculate.js similarity index 100% rename from cypress/integration/configuration/shippingMethods/shippingWeights/weightRecalculate.js rename to cypress/e2e/configuration/shippingMethods/shippingWeights/weightRecalculate.js diff --git a/cypress/integration/configuration/siteSettings.js b/cypress/e2e/configuration/siteSettings.js similarity index 100% rename from cypress/integration/configuration/siteSettings.js rename to cypress/e2e/configuration/siteSettings.js diff --git a/cypress/integration/configuration/warehouses/warehouse.js b/cypress/e2e/configuration/warehouses/warehouse.js similarity index 100% rename from cypress/integration/configuration/warehouses/warehouse.js rename to cypress/e2e/configuration/warehouses/warehouse.js diff --git a/cypress/integration/customerRegistration.js b/cypress/e2e/customerRegistration.js similarity index 100% rename from cypress/integration/customerRegistration.js rename to cypress/e2e/customerRegistration.js diff --git a/cypress/integration/discounts/sales.js b/cypress/e2e/discounts/sales.js similarity index 100% rename from cypress/integration/discounts/sales.js rename to cypress/e2e/discounts/sales.js diff --git a/cypress/integration/discounts/salesForProducts.js b/cypress/e2e/discounts/salesForProducts.js similarity index 100% rename from cypress/integration/discounts/salesForProducts.js rename to cypress/e2e/discounts/salesForProducts.js diff --git a/cypress/integration/discounts/salesForVariants.js b/cypress/e2e/discounts/salesForVariants.js similarity index 100% rename from cypress/integration/discounts/salesForVariants.js rename to cypress/e2e/discounts/salesForVariants.js diff --git a/cypress/integration/discounts/vouchers/createVouchers.js b/cypress/e2e/discounts/vouchers/createVouchers.js similarity index 100% rename from cypress/integration/discounts/vouchers/createVouchers.js rename to cypress/e2e/discounts/vouchers/createVouchers.js diff --git a/cypress/integration/discounts/vouchers/createVouchersWithLimits.js b/cypress/e2e/discounts/vouchers/createVouchersWithLimits.js similarity index 98% rename from cypress/integration/discounts/vouchers/createVouchersWithLimits.js rename to cypress/e2e/discounts/vouchers/createVouchersWithLimits.js index 24adde138..d6d1515dd 100644 --- a/cypress/integration/discounts/vouchers/createVouchersWithLimits.js +++ b/cypress/e2e/discounts/vouchers/createVouchersWithLimits.js @@ -3,7 +3,6 @@ import faker from "faker"; -import { createChannel } from "../../../support/api/requests/Channels"; import { completeCheckout } from "../../../support/api/requests/Checkout"; import * as channelsUtils from "../../../support/api/utils/channelsUtils"; import { deleteVouchersStartsWith } from "../../../support/api/utils/discounts/vouchersUtils"; @@ -25,7 +24,6 @@ filterTests({ definedTags: ["all"] }, () => { const shippingPrice = 100; let defaultChannel; - let createdChannel; let shippingMethod; let variants; let address; diff --git a/cypress/integration/discounts/vouchers/updateVouchers.js b/cypress/e2e/discounts/vouchers/updateVouchers.js similarity index 100% rename from cypress/integration/discounts/vouchers/updateVouchers.js rename to cypress/e2e/discounts/vouchers/updateVouchers.js diff --git a/cypress/integration/homePage/homePage.js b/cypress/e2e/homePage/homePage.js similarity index 100% rename from cypress/integration/homePage/homePage.js rename to cypress/e2e/homePage/homePage.js diff --git a/cypress/integration/homePage/homePageAnalitics.js b/cypress/e2e/homePage/homePageAnalitics.js similarity index 100% rename from cypress/integration/homePage/homePageAnalitics.js rename to cypress/e2e/homePage/homePageAnalitics.js diff --git a/cypress/integration/login.js b/cypress/e2e/login.js similarity index 100% rename from cypress/integration/login.js rename to cypress/e2e/login.js diff --git a/cypress/integration/metadata.js b/cypress/e2e/metadata.js similarity index 100% rename from cypress/integration/metadata.js rename to cypress/e2e/metadata.js diff --git a/cypress/integration/navigation.js b/cypress/e2e/navigation.js similarity index 100% rename from cypress/integration/navigation.js rename to cypress/e2e/navigation.js diff --git a/cypress/integration/orders/channelsInDraftOrders.js b/cypress/e2e/orders/channelsInDraftOrders.js similarity index 100% rename from cypress/integration/orders/channelsInDraftOrders.js rename to cypress/e2e/orders/channelsInDraftOrders.js diff --git a/cypress/integration/orders/draftOrders.js b/cypress/e2e/orders/draftOrders.js similarity index 100% rename from cypress/integration/orders/draftOrders.js rename to cypress/e2e/orders/draftOrders.js diff --git a/cypress/integration/orders/manageStockReservation.js b/cypress/e2e/orders/manageStockReservation.js similarity index 100% rename from cypress/integration/orders/manageStockReservation.js rename to cypress/e2e/orders/manageStockReservation.js diff --git a/cypress/integration/orders/orders.js b/cypress/e2e/orders/orders.js similarity index 100% rename from cypress/integration/orders/orders.js rename to cypress/e2e/orders/orders.js diff --git a/cypress/integration/pages/pageTypes.js b/cypress/e2e/pages/pageTypes.js similarity index 100% rename from cypress/integration/pages/pageTypes.js rename to cypress/e2e/pages/pageTypes.js diff --git a/cypress/integration/pages/pages.js b/cypress/e2e/pages/pages.js similarity index 100% rename from cypress/integration/pages/pages.js rename to cypress/e2e/pages/pages.js diff --git a/cypress/integration/preorders/createAndEditVariantsInPreorder.js b/cypress/e2e/preorders/createAndEditVariantsInPreorder.js similarity index 100% rename from cypress/integration/preorders/createAndEditVariantsInPreorder.js rename to cypress/e2e/preorders/createAndEditVariantsInPreorder.js diff --git a/cypress/integration/preorders/stocksAndThreshold.js b/cypress/e2e/preorders/stocksAndThreshold.js similarity index 100% rename from cypress/integration/preorders/stocksAndThreshold.js rename to cypress/e2e/preorders/stocksAndThreshold.js diff --git a/cypress/integration/products/createProduct.js b/cypress/e2e/products/createProduct.js similarity index 100% rename from cypress/integration/products/createProduct.js rename to cypress/e2e/products/createProduct.js diff --git a/cypress/integration/products/images.js b/cypress/e2e/products/images.js similarity index 100% rename from cypress/integration/products/images.js rename to cypress/e2e/products/images.js diff --git a/cypress/integration/products/menageProducts/availableForPurchaseProducts.js b/cypress/e2e/products/menageProducts/availableForPurchaseProducts.js similarity index 100% rename from cypress/integration/products/menageProducts/availableForPurchaseProducts.js rename to cypress/e2e/products/menageProducts/availableForPurchaseProducts.js diff --git a/cypress/integration/products/menageProducts/publishedProducts.js b/cypress/e2e/products/menageProducts/publishedProducts.js similarity index 100% rename from cypress/integration/products/menageProducts/publishedProducts.js rename to cypress/e2e/products/menageProducts/publishedProducts.js diff --git a/cypress/integration/products/menageProducts/visibleInListingsProducts.js b/cypress/e2e/products/menageProducts/visibleInListingsProducts.js similarity index 100% rename from cypress/integration/products/menageProducts/visibleInListingsProducts.js rename to cypress/e2e/products/menageProducts/visibleInListingsProducts.js diff --git a/cypress/integration/products/productsList/filteringProducts.js b/cypress/e2e/products/productsList/filteringProducts.js similarity index 100% rename from cypress/integration/products/productsList/filteringProducts.js rename to cypress/e2e/products/productsList/filteringProducts.js diff --git a/cypress/integration/products/productsList/pagination.js b/cypress/e2e/products/productsList/pagination.js similarity index 100% rename from cypress/integration/products/productsList/pagination.js rename to cypress/e2e/products/productsList/pagination.js diff --git a/cypress/integration/products/productsList/sortingProducts.js b/cypress/e2e/products/productsList/sortingProducts.js similarity index 100% rename from cypress/integration/products/productsList/sortingProducts.js rename to cypress/e2e/products/productsList/sortingProducts.js diff --git a/cypress/integration/products/productsVariants.js b/cypress/e2e/products/productsVariants.js similarity index 100% rename from cypress/integration/products/productsVariants.js rename to cypress/e2e/products/productsVariants.js diff --git a/cypress/integration/products/productsWithoutSku/createProductWithoutSku.js b/cypress/e2e/products/productsWithoutSku/createProductWithoutSku.js similarity index 100% rename from cypress/integration/products/productsWithoutSku/createProductWithoutSku.js rename to cypress/e2e/products/productsWithoutSku/createProductWithoutSku.js diff --git a/cypress/integration/products/productsWithoutSku/productsWithoutSkuInOrder.js b/cypress/e2e/products/productsWithoutSku/productsWithoutSkuInOrder.js similarity index 100% rename from cypress/integration/products/productsWithoutSku/productsWithoutSkuInOrder.js rename to cypress/e2e/products/productsWithoutSku/productsWithoutSkuInOrder.js diff --git a/cypress/integration/products/productsWithoutSku/updatingProductsWithoutSku.js b/cypress/e2e/products/productsWithoutSku/updatingProductsWithoutSku.js similarity index 100% rename from cypress/integration/products/productsWithoutSku/updatingProductsWithoutSku.js rename to cypress/e2e/products/productsWithoutSku/updatingProductsWithoutSku.js diff --git a/cypress/integration/products/updatingProducts.js b/cypress/e2e/products/updatingProducts.js similarity index 100% rename from cypress/integration/products/updatingProducts.js rename to cypress/e2e/products/updatingProducts.js diff --git a/cypress/integration/staffMembers.js b/cypress/e2e/staffMembers.js similarity index 100% rename from cypress/integration/staffMembers.js rename to cypress/e2e/staffMembers.js diff --git a/cypress/integration/translations.js b/cypress/e2e/translations.js similarity index 100% rename from cypress/integration/translations.js rename to cypress/e2e/translations.js diff --git a/cypress/support/index.js b/cypress/support/e2e.js similarity index 100% rename from cypress/support/index.js rename to cypress/support/e2e.js diff --git a/package-lock.json b/package-lock.json index af3d22db8..556545393 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1931,6 +1931,13 @@ "minimist": "^1.2.0" } }, + "@colors/colors": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "dev": true, + "optional": true + }, "@cypress/request": { "version": "2.88.10", "resolved": "https://registry.npmjs.org/@cypress/request/-/request-2.88.10.tgz", @@ -1968,12 +1975,6 @@ "sshpk": "^1.14.1" } }, - "json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", - "dev": true - }, "jsprim": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-2.0.2.tgz", @@ -6922,9 +6923,9 @@ "dev": true }, "@types/sinonjs__fake-timers": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-6.0.4.tgz", - "integrity": "sha512-IFQTJARgMUBF+xVd2b+hIgXWrZEjND3vJtRCvIelcFB5SIXfjV4bOHbHJ0eXKh+0COrBRc8MqteKAz/j88rE0A==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.1.tgz", + "integrity": "sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==", "dev": true }, "@types/sizzle": { @@ -7082,9 +7083,9 @@ "dev": true }, "@types/yauzl": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.2.tgz", - "integrity": "sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", "dev": true, "optional": true, "requires": { @@ -10101,7 +10102,7 @@ "buffer-crc32": { "version": "0.2.13", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", "dev": true }, "buffer-equal-constant-time": { @@ -11980,19 +11981,20 @@ "dev": true }, "cypress": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-9.2.1.tgz", - "integrity": "sha512-LVEe4yWCo4xO0Vd8iYjFHRyd5ulRvM56XqMgAdn05Qb9kJ6iJdO/MmjKD8gNd768698cp1FDuSmFQZHVZGk+Og==", + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.0.2.tgz", + "integrity": "sha512-7+C4KHYBcfZrawss+Gt5PlS35rfc6ySc59JcHDVsIMm1E/J35dqE41UEXpdtwIq3549umCerNWnFADzqib4kcA==", "dev": true, "requires": { "@cypress/request": "^2.88.10", "@cypress/xvfb": "^1.2.4", "@types/node": "^14.14.31", - "@types/sinonjs__fake-timers": "^6.0.2", + "@types/sinonjs__fake-timers": "8.1.1", "@types/sizzle": "^2.3.2", "arch": "^2.2.0", "blob-util": "^2.0.2", - "bluebird": "3.7.2", + "bluebird": "^3.7.2", + "buffer": "^5.6.0", "cachedir": "^2.3.0", "chalk": "^4.1.0", "check-more-types": "^2.24.0", @@ -12016,15 +12018,15 @@ "listr2": "^3.8.3", "lodash": "^4.17.21", "log-symbols": "^4.0.0", - "minimist": "^1.2.5", + "minimist": "^1.2.6", "ospath": "^1.2.2", "pretty-bytes": "^5.6.0", "proxy-from-env": "1.0.0", "request-progress": "^3.0.0", + "semver": "^7.3.2", "supports-color": "^8.1.1", "tmp": "~0.2.1", "untildify": "^4.0.0", - "url": "^0.11.0", "yauzl": "^2.10.0" }, "dependencies": { @@ -12040,6 +12042,16 @@ "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", "dev": true }, + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, "chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -12062,9 +12074,9 @@ } }, "ci-info": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz", - "integrity": "sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.1.tgz", + "integrity": "sha512-SXgeMX9VwDe7iFFaEWkA5AstuER9YKqy4EhHqr4DVqkwmD9rpVimkMKWHdjn30Ja45txyjhSn63lVX69eVCckg==", "dev": true }, "cli-cursor": { @@ -12077,12 +12089,12 @@ } }, "cli-table3": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.1.tgz", - "integrity": "sha512-w0q/enDHhPLq44ovMGdQeeDLvwxwavsJX7oQGYt/LrBlYsyaxyDnp6z3QzFut/6kLLKnlcUVJLrpB7KBfgG/RA==", + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.2.tgz", + "integrity": "sha512-QyavHCaIC80cMivimWu4aWHilIpiDpfm3hGmqAmXVL1UsnbLuBSMd21hTX6VY4ZSDSM73ESLeF8TOYId3rBTbw==", "dev": true, "requires": { - "colors": "1.4.0", + "@colors/colors": "1.5.0", "string-width": "^4.2.0" } }, @@ -12109,9 +12121,9 @@ "dev": true }, "debug": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", - "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "requires": { "ms": "2.1.2" @@ -12225,6 +12237,12 @@ } } }, + "minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "dev": true + }, "p-map": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", @@ -12237,7 +12255,7 @@ "proxy-from-env": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.0.0.tgz", - "integrity": "sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4=", + "integrity": "sha512-F2JHgJQ1iqwnHDcQjVBsq3n/uoaFL+iPW/eAeL7kVxy/2RrWaN4WroKjjvbsoRtv0ftelNyC01bjRhn/bhcf4A==", "dev": true }, "restore-cursor": { @@ -12251,9 +12269,9 @@ } }, "rxjs": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.2.tgz", - "integrity": "sha512-PwDt186XaL3QN5qXj/H9DGyHhP3/RYYgZZwqBv9Tv8rsAaiwFH1IsJJlcgD37J7UW5a6O67qX0KWKS3/pu0m4w==", + "version": "7.5.5", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.5.tgz", + "integrity": "sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==", "dev": true, "requires": { "tslib": "^2.1.0" @@ -12298,9 +12316,9 @@ } }, "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", "dev": true }, "universalify": { @@ -12588,9 +12606,9 @@ "dev": true }, "dayjs": { - "version": "1.10.7", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.10.7.tgz", - "integrity": "sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig==", + "version": "1.11.2", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.2.tgz", + "integrity": "sha512-F4LXf1OeU9hrSYRPTTj/6FbO4HTjPKXvEIC1P2kcnFurViINCVk3ZV0xAS3XVx9MkMsXbbqlK6hjseaYbgKEHw==", "dev": true }, "debounce": { @@ -14972,7 +14990,7 @@ "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", "dev": true } } @@ -15455,7 +15473,7 @@ "fd-slicer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", "dev": true, "requires": { "pend": "~1.2.0" @@ -23537,7 +23555,7 @@ "ospath": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/ospath/-/ospath-1.2.2.tgz", - "integrity": "sha1-EnZjl3Sj+O8lcvf+QoDg6kVQwHs=", + "integrity": "sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA==", "dev": true }, "p-cancelable": { @@ -24108,7 +24126,7 @@ "pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", "dev": true }, "performance-now": { diff --git a/package.json b/package.json index c749f2e4e..e8118358e 100644 --- a/package.json +++ b/package.json @@ -145,7 +145,7 @@ "codecov": "^3.7.1", "core-js": "^3.7.0", "cross-env": "^6.0.3", - "cypress": "^9.2.1", + "cypress": "^10.0.2", "cypress-file-upload": "^5.0.8", "cypress-multi-reporters": "^1.5.0", "cypress-timings": "^1.0.0", @@ -271,10 +271,10 @@ "cy:run:merge": "npx marge mochawesome.json", "cy:run:dashboard": "cypress run --record", "cy:open": "cypress open", - "cy:run:refactored:locally": "cypress run --env tags=refactored --spec 'cypress/integration/navigation.js','cypress/integration/products/createProduct.js', 'cypress/integration/products/productsVariants.js', --reporter cypress-mochawesome-reporter --reporter-options reportDir='cypress/reports',overwrite=true,charts=true", - "cy:run:critical": "cypress run --record --env tags=critical --spec 'cypress/integration/navigation.js','cypress/integration/products/createProduct.js', 'cypress/integration/products/productsVariants.js' --tag Critical, PR Deploy", + "cy:run:refactored:locally": "cypress run --env tags=refactored --spec cypress/e2e/navigation.js,cypress/e2e/products/createProduct.js,cypress/e2e/products/productsVariants.js --reporter cypress-mochawesome-reporter --reporter-options reportDir='cypress/reports',overwrite=true,charts=true", + "cy:run:critical": "cypress run --record --env tags=critical --spec cypress/e2e/navigation.js,cypress/e2e/products/createProduct.js,cypress/e2e/products/productsVariants.js --tag Critical, PR Deploy", "cy:run:allEnv": "cypress run --record --env tags=all", - "cy:run:critical:parallel": "cypress run --record --env tags=critical --spec 'cypress/integration/navigation.js','cypress/integration/products/createProduct.js', 'cypress/integration/products/productsVariants.js' --parallel --tag Critical", + "cy:run:critical:parallel": "cypress run --record --env tags=critical --spec cypress/e2e/navigation.js,cypress/e2e/products/createProduct.js,cypress/e2e/products/productsVariants.js --parallel --tag Critical", "cy:run:allEnv:parallel": "cypress run --record --env tags=all --parallel", "test:e2e:run": "start-server-and-test start http://localhost:9000 cy:run", "test:e2e:run:record": "start-server-and-test start http://localhost:9000 cy:run:record",