diff --git a/cypress/e2e/checkout/purchaseWithProductTypes.js b/cypress/e2e/checkout/purchaseWithProductTypes.js index 24c76ba8f..72d7494ba 100644 --- a/cypress/e2e/checkout/purchaseWithProductTypes.js +++ b/cypress/e2e/checkout/purchaseWithProductTypes.js @@ -59,7 +59,7 @@ describe("As an unlogged customer I want to order physical and digital products" it( "should purchase digital product as unlogged customer. TC: SALEOR_0402", - { tags: ["@checkout", "@allEnv", "@stable", "@oldRelease"] }, + { tags: ["@checkout", "@allEnv", "@stable", "@oldRelease", "@critical"] }, () => { createAndCompleteCheckoutWithoutShipping({ channelSlug: defaultChannel.slug, @@ -83,7 +83,7 @@ describe("As an unlogged customer I want to order physical and digital products" it( "should purchase physical product as unlogged customer. TC: SALEOR_0403", - { tags: ["@checkout", "@allEnv", "@stable", "@oldRelease"] }, + { tags: ["@checkout", "@allEnv", "@stable", "@oldRelease", "@critical"] }, () => { createWaitingForCaptureOrder({ channelSlug: defaultChannel.slug, diff --git a/cypress/e2e/configuration/attributes/createProductAttributes.js b/cypress/e2e/configuration/attributes/createProductAttributes.js index 90a670d8e..93ca1e6b3 100644 --- a/cypress/e2e/configuration/attributes/createProductAttributes.js +++ b/cypress/e2e/configuration/attributes/createProductAttributes.js @@ -23,7 +23,6 @@ describe("As an admin I want to create product attribute", () => { const attributesTypes = [ { type: "DROPDOWN", testCase: "SALEOR_0501" }, { type: "MULTISELECT", testCase: "SALEOR_0502" }, - { type: "FILE", testCase: "SALEOR_0503" }, { type: "RICH_TEXT", testCase: "SALEOR_0504" }, { type: "BOOLEAN", testCase: "SALEOR_0505" }, { type: "DATE", testCase: "SALEOR_0523" }, @@ -87,6 +86,28 @@ describe("As an admin I want to create product attribute", () => { ); }); + it( + `should be able to create FILE attribute. TC: SALEOR_0503`, + { tags: ["@attribute", "@allEnv", "@stable", "@oldRelease", "@critical"] }, + () => { + const attributeName = `${startsWith}${faker.datatype.number()}`; + + createAttributeWithInputType({ + name: attributeName, + attributeType: "FILE", + }) + .then(({ attribute }) => { + getAttribute(attribute.id); + }) + .then(attribute => { + expectCorrectDataInAttribute(attribute, { + attributeName, + attributeType: "FILE", + }); + }); + }, + ); + attributeReferenceType.forEach(entityType => { it( `should be able to create ${entityType.type} attribute. TC:${entityType.testCase}`, diff --git a/cypress/e2e/configuration/productTypes/createProductType.js b/cypress/e2e/configuration/productTypes/createProductType.js index ce5ba249d..448123f24 100644 --- a/cypress/e2e/configuration/productTypes/createProductType.js +++ b/cypress/e2e/configuration/productTypes/createProductType.js @@ -25,7 +25,9 @@ describe("As an admin I want to create product types", () => { it( "should be able to create product type without shipping required. TC: SALEOR_1501", - { tags: ["@productType", "@allEnv", "@stable", "@oldRelease"] }, + { + tags: ["@productType", "@allEnv", "@stable", "@oldRelease", "@critical"], + }, () => { const name = `${startsWith}${faker.datatype.number()}`; @@ -43,7 +45,7 @@ describe("As an admin I want to create product types", () => { it( "should be able to create product type with shipping required. TC: SALEOR_1502", - { tags: ["@productType", "@allEnv", "@stable"] }, + { tags: ["@productType", "@allEnv", "@stable", "@critical"] }, () => { const name = `${startsWith}${faker.datatype.number()}`; const shippingWeight = 10; @@ -63,7 +65,7 @@ describe("As an admin I want to create product types", () => { it( "should be able to create product type with gift card kind. TC: SALEOR_1510", - { tags: ["@productType", "@allEnv", "@stable"] }, + { tags: ["@productType", "@allEnv", "@stable", "@critical"] }, () => { const name = `${startsWith}${faker.datatype.number()}`; diff --git a/cypress/e2e/configuration/shippingMethods/createShippingMethod.js b/cypress/e2e/configuration/shippingMethods/createShippingMethod.js index e4121ecdb..06f256e93 100644 --- a/cypress/e2e/configuration/shippingMethods/createShippingMethod.js +++ b/cypress/e2e/configuration/shippingMethods/createShippingMethod.js @@ -112,7 +112,7 @@ describe("As a staff user I want to create shipping zone and rate", () => { it( "should be able to create price based shipping method. TC: SALEOR_0803", - { tags: ["@shipping", "@allEnv", "@stable", "@oldRelease"] }, + { tags: ["@shipping", "@allEnv", "@stable", "@oldRelease", "@critical"] }, () => { const shippingName = `${startsWith}${faker.datatype.number()}`; cy.clearSessionData().loginUserViaRequest( diff --git a/cypress/e2e/configuration/warehouses/warehouse.js b/cypress/e2e/configuration/warehouses/warehouse.js index c0d54443a..95872a472 100644 --- a/cypress/e2e/configuration/warehouses/warehouse.js +++ b/cypress/e2e/configuration/warehouses/warehouse.js @@ -45,7 +45,7 @@ describe("As an admin I want to manage warehouses", () => { it( "should be able to create warehouse. TC: SALEOR_1101", - { tags: ["@warehouse", "@allEnv", "@stable", "@oldRelease"] }, + { tags: ["@warehouse", "@allEnv", "@stable", "@oldRelease", "@critical"] }, () => { const name = `${startsWith}${faker.datatype.number()}`; cy.visit(urlList.warehouses) diff --git a/cypress/e2e/homePage/homePageAnalitics.js b/cypress/e2e/homePage/homePageAnalitics.js index 11066b1f3..d933af2be 100644 --- a/cypress/e2e/homePage/homePageAnalitics.js +++ b/cypress/e2e/homePage/homePageAnalitics.js @@ -151,7 +151,7 @@ describe("As an admin I want to see correct information on dashboard home page", it( "should display correct information on dashboard home page. SALEOR_2004", - { tags: ["@homePage", "@allEnv"] }, + { tags: ["@homePage", "@allEnv", "@critical"] }, () => { cy.visit(urlList.homePage); changeChannel(defaultChannel.name); diff --git a/cypress/e2e/orders/orders.js b/cypress/e2e/orders/orders.js index 997019a5b..5a29b4fca 100644 --- a/cypress/e2e/orders/orders.js +++ b/cypress/e2e/orders/orders.js @@ -48,7 +48,7 @@ import { } from "../../support/pages/"; describe("Orders", () => { - const startsWith = "CyOrders-"; + const startsWith = "Orders-Cy-"; const randomName = startsWith + faker.datatype.number(); let customer; @@ -152,7 +152,7 @@ describe("Orders", () => { it( "should create order with selected channel. TC: SALEOR_2104", - { tags: ["@orders", "@allEnv", "@stable", "@oldRelease"] }, + { tags: ["@orders", "@allEnv", "@stable", "@oldRelease", "@critical"] }, () => { cy.visit(urlList.orders).get(ORDERS_SELECTORS.createOrderButton).click(); selectChannelInPicker(defaultChannel.name);