From e0cc89478f3e140e3ed122a4a3300430ffc98783 Mon Sep 17 00:00:00 2001 From: Klaudia Date: Fri, 29 Apr 2022 10:21:53 +0200 Subject: [PATCH] =?UTF-8?q?exluded=20test=20cases=20before=20those=20can?= =?UTF-8?q?=20be=20fixed=20ad=20part=20of=20the=20=20SALEOR-6=E2=80=A6=20(?= =?UTF-8?q?#2025)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * exluded test cases before those can be fixed ad part of the SALEOR-6705 Exclude all failing tests task * exluded npm test -- -u --- cypress/fixtures/permissionsUsers.js | 11 ++-- cypress/integration/catalog/collections.js | 2 +- .../configuration/attributes/filters.js | 2 +- .../integration/configuration/permissions.js | 2 +- .../shippingWeights/weightRecalculate.js | 2 +- .../integration/configuration/siteSettings.js | 2 +- cypress/integration/discounts/sales.js | 4 +- .../integration/discounts/salesForProducts.js | 4 +- .../integration/discounts/salesForVariants.js | 2 +- .../discounts/vouchers/createVouchers.js | 6 +- cypress/integration/orders/draftOrders.js | 2 +- .../orders/manageStockReservation.js | 2 +- cypress/integration/orders/orders.js | 2 +- cypress/integration/pages/pageTypes.js | 2 +- .../createAndEditVariantsInPreorder.js | 2 +- .../preorders/stocksAndThreshold.js | 2 +- cypress/integration/products/images.js | 2 +- .../createProductWithoutSku.js | 2 +- cypress/integration/translations.js | 2 +- .../__snapshots__/Stories.test.ts.snap | 56 +++++++++---------- 20 files changed, 56 insertions(+), 55 deletions(-) diff --git a/cypress/fixtures/permissionsUsers.js b/cypress/fixtures/permissionsUsers.js index bece4f5d1..68cb1b4f8 100644 --- a/cypress/fixtures/permissionsUsers.js +++ b/cypress/fixtures/permissionsUsers.js @@ -75,10 +75,11 @@ export const PERMISSIONS_OPTIONS = { user: ONE_PERMISSION_USERS.staff, permissions: [PERMISSIONS.staff], testCase: "TC: SALEOR_3414" - }, - translations: { - user: ONE_PERMISSION_USERS.translations, - permissions: [PERMISSIONS.translations], - testCase: "TC: SALEOR_3416" } + // }, + // translations: { + // user: ONE_PERMISSION_USERS.translations, + // permissions: [PERMISSIONS.translations], + // testCase: "TC: SALEOR_3416" + // } // commented as part of SALEOR-6705 task. Need to be fixed in future. Klaudia Jaroszewicz }; diff --git a/cypress/integration/catalog/collections.js b/cypress/integration/catalog/collections.js index 9c3f5bc47..aa40996b1 100644 --- a/cypress/integration/catalog/collections.js +++ b/cypress/integration/catalog/collections.js @@ -260,7 +260,7 @@ filterTests({ definedTags: ["all"] }, () => { }); }); - it("assign product to collection. TC: SALEOR_0307", () => { + xit("assign product to collection. TC: SALEOR_0307", () => { const collectionName = `Assign-${startsWith}${faker.datatype.number()}`; const productName = `Product-To-Assign-${startsWith}${faker.datatype.number()}`; diff --git a/cypress/integration/configuration/attributes/filters.js b/cypress/integration/configuration/attributes/filters.js index 11f151c43..17d09eeb3 100644 --- a/cypress/integration/configuration/attributes/filters.js +++ b/cypress/integration/configuration/attributes/filters.js @@ -20,7 +20,7 @@ import { } from "../../../support/pages/catalog/products/productsListPage"; filterTests({ definedTags: ["all"] }, () => { - describe("Tests for using attributes in filters", () => { + xdescribe("Tests for using attributes in filters", () => { const startsWith = "AttrFilter"; let attribute; diff --git a/cypress/integration/configuration/permissions.js b/cypress/integration/configuration/permissions.js index f9a6e197d..56f133413 100644 --- a/cypress/integration/configuration/permissions.js +++ b/cypress/integration/configuration/permissions.js @@ -88,7 +88,7 @@ filterTests({ definedTags: ["all"] }, () => { }); }); - it("should add user to permission group", () => { + xit("should add user to permission group", () => { const permissionName = `${startsWith}${faker.datatype.number()}`; createPermissionGroup({ name: permissionName, diff --git a/cypress/integration/configuration/shippingMethods/shippingWeights/weightRecalculate.js b/cypress/integration/configuration/shippingMethods/shippingWeights/weightRecalculate.js index 86135ec3f..4ce856043 100644 --- a/cypress/integration/configuration/shippingMethods/shippingWeights/weightRecalculate.js +++ b/cypress/integration/configuration/shippingMethods/shippingWeights/weightRecalculate.js @@ -18,7 +18,7 @@ import filterTests from "../../../../support/filterTests"; import { changeWeightUnit } from "../../../../support/pages/shippingMethodPage"; filterTests({ definedTags: ["all"] }, () => { - describe("As a staff user I want to change shop default weight unit", () => { + xdescribe("As a staff user I want to change shop default weight unit", () => { const startsWith = "RecalculateWeight"; const name = `${startsWith}${faker.datatype.number()}`; diff --git a/cypress/integration/configuration/siteSettings.js b/cypress/integration/configuration/siteSettings.js index 51e909edd..b2a10ef32 100644 --- a/cypress/integration/configuration/siteSettings.js +++ b/cypress/integration/configuration/siteSettings.js @@ -13,7 +13,7 @@ import { import filterTests from "../../support/filterTests"; filterTests({ definedTags: ["all"] }, () => { - describe("Tests for site settings", () => { + xdescribe("Tests for site settings", () => { let address; before(() => { diff --git a/cypress/integration/discounts/sales.js b/cypress/integration/discounts/sales.js index 986445e84..144a3fc8c 100644 --- a/cypress/integration/discounts/sales.js +++ b/cypress/integration/discounts/sales.js @@ -1,5 +1,5 @@ /// -/// +/// import faker from "faker"; @@ -177,7 +177,7 @@ filterTests({ definedTags: ["all"] }, () => { }); }); - it("should remove variant from sale", () => { + xit("should remove variant from sale", () => { const name = `${startsWith}${faker.datatype.number()}`; let product; let variants; diff --git a/cypress/integration/discounts/salesForProducts.js b/cypress/integration/discounts/salesForProducts.js index 63182d086..c699e33d7 100644 --- a/cypress/integration/discounts/salesForProducts.js +++ b/cypress/integration/discounts/salesForProducts.js @@ -23,7 +23,7 @@ import { } from "../../support/pages/discounts/salesPage"; filterTests({ definedTags: ["all"] }, () => { - describe("Sales discounts for products", () => { + xdescribe("Sales discounts for products", () => { const startsWith = "CySales-"; let productType; @@ -146,7 +146,7 @@ filterTests({ definedTags: ["all"] }, () => { }); }) .then(() => { - /* Uncomment after fixing SALEOR-3367 bug + /* Uncomment after fixing SALEOR-3367 bug cy.clearSessionData() .loginUserViaRequest("auth", ONE_PERMISSION_USERS.discount) */ diff --git a/cypress/integration/discounts/salesForVariants.js b/cypress/integration/discounts/salesForVariants.js index e7d4d8cab..339532ba6 100644 --- a/cypress/integration/discounts/salesForVariants.js +++ b/cypress/integration/discounts/salesForVariants.js @@ -17,7 +17,7 @@ import { } from "../../support/pages/discounts/salesPage"; filterTests({ definedTags: ["all"] }, () => { - describe("Sales discounts for variant", () => { + xdescribe("Sales discounts for variant", () => { const startsWith = "CySales-"; let productType; diff --git a/cypress/integration/discounts/vouchers/createVouchers.js b/cypress/integration/discounts/vouchers/createVouchers.js index fb30f4d48..dedd734b3 100644 --- a/cypress/integration/discounts/vouchers/createVouchers.js +++ b/cypress/integration/discounts/vouchers/createVouchers.js @@ -254,7 +254,7 @@ filterTests({ definedTags: ["all"] }, () => { }); }); - it("should be able to create voucher with limit to staff only. TC: SALEOR_1909", () => { + xit("should be able to create voucher with limit to staff only. TC: SALEOR_1909", () => { const voucherCode = `${startsWith}${faker.datatype.number()}`; const voucherValue = 50; dataForCheckout.auth = "auth"; @@ -289,7 +289,7 @@ filterTests({ definedTags: ["all"] }, () => { }); }); - it("should be able to create voucher with minimum value of order. TC: SALEOR_1910", () => { + xit("should be able to create voucher with minimum value of order. TC: SALEOR_1910", () => { const voucherCode = `${startsWith}${faker.datatype.number()}`; const voucherValue = 50; const minOrderValue = productPrice * 1.5; @@ -321,7 +321,7 @@ filterTests({ definedTags: ["all"] }, () => { }); }); - it("should create voucher with min product quantity. TC: SALEOR_1911", () => { + xit("should create voucher with min product quantity. TC: SALEOR_1911", () => { const voucherCode = `${startsWith}${faker.datatype.number()}`; const voucherValue = 50; const minAmountOfItems = 2; diff --git a/cypress/integration/orders/draftOrders.js b/cypress/integration/orders/draftOrders.js index 47e0251f7..b076c4173 100644 --- a/cypress/integration/orders/draftOrders.js +++ b/cypress/integration/orders/draftOrders.js @@ -22,7 +22,7 @@ import { selectChannelInPicker } from "../../support/pages/channelsPage"; import { finalizeDraftOrder } from "../../support/pages/draftOrderPage"; filterTests({ definedTags: ["all"] }, () => { - describe("Draft orders", () => { + xdescribe("Draft orders", () => { const startsWith = "CyDraftOrders-"; const randomName = startsWith + faker.datatype.number(); diff --git a/cypress/integration/orders/manageStockReservation.js b/cypress/integration/orders/manageStockReservation.js index 86809884e..082b2e31b 100644 --- a/cypress/integration/orders/manageStockReservation.js +++ b/cypress/integration/orders/manageStockReservation.js @@ -22,7 +22,7 @@ import { } from "../../support/pages/siteSettings"; filterTests({ definedTags: ["all"], version: "3.1.0" }, () => { - describe("As an admin I want to manage stock reservation", () => { + xdescribe("As an admin I want to manage stock reservation", () => { const startsWith = "manageStocks"; const name = `${startsWith}${faker.datatype.number()}`; const productQuantity = 10; diff --git a/cypress/integration/orders/orders.js b/cypress/integration/orders/orders.js index b2cb1e3fd..17bc5c8f7 100644 --- a/cypress/integration/orders/orders.js +++ b/cypress/integration/orders/orders.js @@ -115,7 +115,7 @@ filterTests({ definedTags: ["all"] }, () => { ); }); - it("should create order with selected channel", () => { + xit("should create order with selected channel", () => { cy.visit(urlList.orders) .get(ORDERS_SELECTORS.createOrder) .click(); diff --git a/cypress/integration/pages/pageTypes.js b/cypress/integration/pages/pageTypes.js index e80cf672c..4b6275dc9 100644 --- a/cypress/integration/pages/pageTypes.js +++ b/cypress/integration/pages/pageTypes.js @@ -45,7 +45,7 @@ filterTests({ definedTags: ["all"] }, () => { }); }); - it("should assign attribute", () => { + xit("should assign attribute", () => { const randomName = startsWith + faker.datatype.number(); createAttribute({ name: randomName, type: "PAGE_TYPE" }); diff --git a/cypress/integration/preorders/createAndEditVariantsInPreorder.js b/cypress/integration/preorders/createAndEditVariantsInPreorder.js index 15366e7ba..7381bf8b0 100644 --- a/cypress/integration/preorders/createAndEditVariantsInPreorder.js +++ b/cypress/integration/preorders/createAndEditVariantsInPreorder.js @@ -57,7 +57,7 @@ filterTests({ definedTags: ["all"], version: "3.1.0" }, () => { cy.clearSessionData().loginUserViaRequest(); }); - it("should create variant in preorder", () => { + xit("should create variant in preorder", () => { let variant; cy.visit(productDetailsUrl(product.id)) diff --git a/cypress/integration/preorders/stocksAndThreshold.js b/cypress/integration/preorders/stocksAndThreshold.js index eb5cd0a11..5b715ddbb 100644 --- a/cypress/integration/preorders/stocksAndThreshold.js +++ b/cypress/integration/preorders/stocksAndThreshold.js @@ -57,7 +57,7 @@ filterTests({ definedTags: ["all"], version: "3.1.0" }, () => { cy.clearSessionData().loginUserViaRequest(); }); - it("should not be able to order more products then channel threshold", () => { + xit("should not be able to order more products then channel threshold", () => { cy.visit(variantDetailsUrl(product.id, variantsList[0].id)) .get(VARIANTS_SELECTORS.channelThresholdInput) .type(5) diff --git a/cypress/integration/products/images.js b/cypress/integration/products/images.js index 7f6369f55..e9822eb16 100644 --- a/cypress/integration/products/images.js +++ b/cypress/integration/products/images.js @@ -11,7 +11,7 @@ import { createNewProductWithNewDataAndDefaultChannel } from "../../support/api/ import filterTests from "../../support/filterTests"; filterTests({ definedTags: ["all"] }, () => { - describe("Tests for images", () => { + xdescribe("Tests for images", () => { beforeEach(() => { cy.clearSessionData().loginUserViaRequest(); }); diff --git a/cypress/integration/products/productsWithoutSku/createProductWithoutSku.js b/cypress/integration/products/productsWithoutSku/createProductWithoutSku.js index ed390d823..90a6a6a99 100644 --- a/cypress/integration/products/productsWithoutSku/createProductWithoutSku.js +++ b/cypress/integration/products/productsWithoutSku/createProductWithoutSku.js @@ -103,7 +103,7 @@ filterTests({ definedTags: ["all", "critical"], version: "3.1.0" }, () => { ); }); - it("should create variant without sku by variant creator", () => { + xit("should create variant without sku by variant creator", () => { const name = `${startsWith}${faker.datatype.number()}`; const price = 10; let createdProduct; diff --git a/cypress/integration/translations.js b/cypress/integration/translations.js index 591ed294c..28d78cc2f 100644 --- a/cypress/integration/translations.js +++ b/cypress/integration/translations.js @@ -13,7 +13,7 @@ import filterTests from "../support/filterTests"; import { updateTranslationToCategory } from "../support/pages/translationsPage"; filterTests({ definedTags: ["all"], version: "3.0.0" }, () => { - describe("As an admin I want to manage translations", () => { + xdescribe("As an admin I want to manage translations", () => { const startsWith = "TestTranslations"; const randomNumber = faker.datatype.number(); const name = `${startsWith}${randomNumber}`; diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index c913f5a2f..af97d5d1e 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -43542,7 +43542,7 @@ exports[`Storyshots Views / Categories / Update category no products 1`] = ` >