diff --git a/cypress/e2e/catalog/categories.js b/cypress/e2e/catalog/categories.js index b35a3ad32..180f2d630 100644 --- a/cypress/e2e/catalog/categories.js +++ b/cypress/e2e/catalog/categories.js @@ -130,7 +130,7 @@ describe("As an admin I want to manage categories", () => { it( "should be able to remove product from category. TC: SALEOR_0204", - { tags: ["@category", "@allEnv"] }, + { tags: ["@category", "@allEnv", "@stable"] }, () => { cy.visit(categoryDetailsUrl(category.id)) .get(CATEGORY_DETAILS.productsTab) @@ -155,7 +155,7 @@ describe("As an admin I want to manage categories", () => { it( "should be able to enter category details page. TC: SALEOR_0205", - { tags: ["@category", "@allEnv"] }, + { tags: ["@category", "@allEnv", "@stable"] }, () => { cy.visit(urlList.categories) .get(SHARED_ELEMENTS.searchInput) @@ -214,7 +214,7 @@ describe("As an admin I want to manage categories", () => { it( "should be able to delete several categories on categories list page. TC: SALEOR_0209", - { tags: ["@category", "@allEnv"] }, + { tags: ["@category", "@allEnv", "@stable"] }, () => { const firstCategoryName = `${startsWith}${faker.datatype.number()}`; const secondCategoryName = `${startsWith}${faker.datatype.number()}`; diff --git a/cypress/e2e/catalog/giftCards/activateGiftCards.js b/cypress/e2e/catalog/giftCards/activateGiftCards.js index 12168d5c7..5d8970c0c 100644 --- a/cypress/e2e/catalog/giftCards/activateGiftCards.js +++ b/cypress/e2e/catalog/giftCards/activateGiftCards.js @@ -190,7 +190,7 @@ describe("As a admin I want to use enabled gift card in checkout", () => { }, ); - xit( + it( "should be able to enable several gift cards on gift card list page and use it in checkout. TC: SALEOR_1012", { tags: ["@giftCard", "@allEnv"] }, () => { diff --git a/cypress/e2e/checkout/purchaseWithProductTypes.js b/cypress/e2e/checkout/purchaseWithProductTypes.js index 170f880ce..de5a9bc9a 100644 --- a/cypress/e2e/checkout/purchaseWithProductTypes.js +++ b/cypress/e2e/checkout/purchaseWithProductTypes.js @@ -96,7 +96,7 @@ describe("As an unlogged customer I want to order physical and digital products" it( "should purchase multiple products with all product types as unlogged customer. TC: SALEOR_0404", - { tags: ["@checkout", "@allEnv"] }, + { tags: ["@checkout", "@allEnv", "@stable"] }, () => { let checkout; diff --git a/cypress/e2e/configuration/attributes/createContentAttribute.js b/cypress/e2e/configuration/attributes/createContentAttribute.js index cbfdbd61d..48aa65abc 100644 --- a/cypress/e2e/configuration/attributes/createContentAttribute.js +++ b/cypress/e2e/configuration/attributes/createContentAttribute.js @@ -84,7 +84,7 @@ describe("As an admin I want to create content attribute", () => { attributeReferenceType.forEach(entityType => { it( `should be able to create reference to ${entityType.type} attribute. TC:${entityType.testCase}`, - { tags: ["@attribute", "@allEnv"] }, + { tags: ["@attribute", "@allEnv", "@stable"] }, () => { const attributeType = "REFERENCE"; const attributeName = `${startsWith}${faker.datatype.number()}`; @@ -110,7 +110,7 @@ describe("As an admin I want to create content attribute", () => { attributeNumericType.forEach(numericSystemType => { it( `should be able to create numeric ${numericSystemType.unitSystem} attribute. TC: ${numericSystemType.testCase}`, - { tags: ["@attribute", "@allEnv"] }, + { tags: ["@attribute", "@allEnv", "@stable"] }, () => { const attributeType = "NUMERIC"; const attributeName = `${startsWith}${faker.datatype.number()}`; @@ -135,7 +135,7 @@ describe("As an admin I want to create content attribute", () => { it( "should be able to create attribute without require value TC:SALEOR_0522", - { tags: ["@attribute", "@allEnv"] }, + { tags: ["@attribute", "@allEnv", "@stable"] }, () => { const attributeType = "BOOLEAN"; const attributeName = `${startsWith}${faker.datatype.number()}`; diff --git a/cypress/e2e/configuration/attributes/filters.js b/cypress/e2e/configuration/attributes/filters.js index d07010e18..4b9a30aee 100644 --- a/cypress/e2e/configuration/attributes/filters.js +++ b/cypress/e2e/configuration/attributes/filters.js @@ -46,7 +46,7 @@ xdescribe("Tests for using attributes in filters", () => { }); it( - "should use attribute as filter", + "should use attribute as filter. TC: SALEOR_0601", { tags: ["@attribute", "@allEnv"] }, () => { updateAttribute({ @@ -63,7 +63,7 @@ xdescribe("Tests for using attributes in filters", () => { ); it( - "should remove attribute from filters", + "should remove attribute from filters. TC: SALEOR_0602", { tags: ["@attribute", "@allEnv"] }, () => { updateAttribute({ diff --git a/cypress/e2e/configuration/channels/channels.js b/cypress/e2e/configuration/channels/channels.js index ca2ac6e93..534dc06ae 100644 --- a/cypress/e2e/configuration/channels/channels.js +++ b/cypress/e2e/configuration/channels/channels.js @@ -92,7 +92,7 @@ describe("Channels", () => { .get(PRODUCTS_LIST.productsNames) .first() .click() - .get(AVAILABLE_CHANNELS_FORM.menageChannelsButton) + .get(AVAILABLE_CHANNELS_FORM.manageChannelsButton) .click() .get(SELECT_CHANNELS_TO_ASSIGN.listOfChannels) .contains(randomChannel); diff --git a/cypress/e2e/configuration/channels/inactiveChannel.js b/cypress/e2e/configuration/channels/inactiveChannel.js index c69697fe2..7ac9e84e8 100644 --- a/cypress/e2e/configuration/channels/inactiveChannel.js +++ b/cypress/e2e/configuration/channels/inactiveChannel.js @@ -57,7 +57,7 @@ describe("Tests on inactive channel", () => { it( "should not be possible to add products to order with inactive channel. TC: SALEOR_0706", - { tags: ["@channel", "@allEnv"] }, + { tags: ["@channel", "@allEnv", "@stable"] }, () => { cy.visit(urlList.orders) .get(ORDERS_SELECTORS.createOrder) diff --git a/cypress/e2e/configuration/customer.js b/cypress/e2e/configuration/customer.js index 9d78a3240..0aeaf2c9b 100644 --- a/cypress/e2e/configuration/customer.js +++ b/cypress/e2e/configuration/customer.js @@ -89,7 +89,7 @@ describe("Tests for customer", () => { createCustomer(email, randomName).then(({ user }) => { cy.visit(customerDetailsUrl(user.id)) - .get(CUSTOMER_DETAILS.menageAddressesButton) + .get(CUSTOMER_DETAILS.manageAddressesButton) .click() .get(CUSTOMER_DETAILS.addAddressButton) .click() @@ -113,7 +113,7 @@ describe("Tests for customer", () => { createCustomer(email, randomName, address).then(({ user }) => { cy.visit(customerDetailsUrl(user.id)) - .get(CUSTOMER_DETAILS.menageAddressesButton) + .get(CUSTOMER_DETAILS.manageAddressesButton) .click() .waitForProgressBarToNotExist() .get(BUTTON_SELECTORS.showMoreButton) @@ -148,7 +148,7 @@ describe("Tests for customer", () => { }) .then(() => { cy.visit(customerDetailsUrl(user.id)) - .get(CUSTOMER_DETAILS.menageAddressesButton) + .get(CUSTOMER_DETAILS.manageAddressesButton) .click() .waitForProgressBarToNotExist() .get(BUTTON_SELECTORS.showMoreButton) @@ -186,7 +186,7 @@ describe("Tests for customer", () => { createCustomer(email, randomName, address).then(({ user }) => { cy.visit(customerDetailsUrl(user.id)) - .get(CUSTOMER_DETAILS.menageAddressesButton) + .get(CUSTOMER_DETAILS.manageAddressesButton) .click() .get(BUTTON_SELECTORS.showMoreButton) .should("be.enabled") diff --git a/cypress/e2e/configuration/productTypes/attributesInProduductTypes.js b/cypress/e2e/configuration/productTypes/attributesInProduductTypes.js index 2b1219640..98a37d7da 100644 --- a/cypress/e2e/configuration/productTypes/attributesInProduductTypes.js +++ b/cypress/e2e/configuration/productTypes/attributesInProduductTypes.js @@ -85,7 +85,7 @@ describe("As an admin I want to manage attributes in product types", () => { it( "should be able to remove variant attribute from product type. TC: SALEOR_1506", - { tags: ["@productType", "@allEnv"] }, + { tags: ["@productType", "@allEnv", "@stable"] }, () => { const name = `${startsWith}${faker.datatype.number()}`; let productType; @@ -118,7 +118,7 @@ describe("As an admin I want to manage attributes in product types", () => { it( "should be able to remove product attribute from product type. TC: SALEOR_1507", - { tags: ["@productType", "@allEnv"] }, + { tags: ["@productType", "@allEnv", "@stable"] }, () => { const name = `${startsWith}${faker.datatype.number()}`; let productType; diff --git a/cypress/e2e/orders/channelsInDraftOrders.js b/cypress/e2e/orders/channelsInDraftOrders.js index 80183d991..73a02c6d0 100644 --- a/cypress/e2e/orders/channelsInDraftOrders.js +++ b/cypress/e2e/orders/channelsInDraftOrders.js @@ -41,7 +41,7 @@ xdescribe("Channels in draft orders", () => { }); it( - "Draft order channel should be taken from global channel picker", + "Draft order channel should be taken from global channel picker. TC: SALEOR_2101", { tags: ["@orders", "@allEnv"] }, () => { let channelName; @@ -69,7 +69,7 @@ xdescribe("Channels in draft orders", () => { ); it( - "Draft order channel should be taken from global channel picker when changed", + "Draft order channel should be taken from global channel picker when changed. TC: SALEOR_2102", { tags: ["@orders", "@allEnv"] }, () => { cy.visit(urlList.homePage); diff --git a/cypress/e2e/orders/draftOrders.js b/cypress/e2e/orders/draftOrders.js index 270eb290b..e3c4722d5 100644 --- a/cypress/e2e/orders/draftOrders.js +++ b/cypress/e2e/orders/draftOrders.js @@ -85,7 +85,7 @@ xdescribe("Draft orders", () => { }); it( - "should move draft order to orders", + "should move draft order to orders. TC: SALEOR_2103", { tags: ["@orders", "@allEnv"] }, () => { cy.visit(urlList.orders); diff --git a/cypress/e2e/pages/pages.js b/cypress/e2e/pages/pages.js index d06b809a0..36b3256d2 100644 --- a/cypress/e2e/pages/pages.js +++ b/cypress/e2e/pages/pages.js @@ -91,7 +91,7 @@ describe("Tests for pages", () => { Object.keys(attributesTypes).forEach(attributeType => { it( `should create page with ${attributeType} attribute`, - { tags: ["@pages", "@allEnv"] }, + { tags: ["@pages", "@allEnv", "@stable"] }, () => { const randomName = `${startsWith}${faker.datatype.number()}`; const attributeValues = [attributeValuesOnPage[attributeType]]; diff --git a/cypress/e2e/products/menageProducts/availableForPurchaseProducts.js b/cypress/e2e/products/manageProducts/availableForPurchaseProducts.js similarity index 96% rename from cypress/e2e/products/menageProducts/availableForPurchaseProducts.js rename to cypress/e2e/products/manageProducts/availableForPurchaseProducts.js index d55f03188..d8042ec1e 100644 --- a/cypress/e2e/products/menageProducts/availableForPurchaseProducts.js +++ b/cypress/e2e/products/manageProducts/availableForPurchaseProducts.js @@ -65,7 +65,7 @@ describe("Products available in listings", () => { }); it( - "should update product to available for purchase", + "should update product to available for purchase. TC: SALEOR_2501", { tags: ["@products", "@allEnv"] }, () => { const productName = `${startsWith}${faker.datatype.number()}`; @@ -96,7 +96,7 @@ describe("Products available in listings", () => { ); it( - "should update product to not available for purchase", + "should update product to not available for purchase. TC: SALEOR_2502", { tags: ["@products", "@allEnv"] }, () => { const productName = `${startsWith}${faker.datatype.number()}`; diff --git a/cypress/e2e/products/menageProducts/publishedProducts.js b/cypress/e2e/products/manageProducts/publishedProducts.js similarity index 100% rename from cypress/e2e/products/menageProducts/publishedProducts.js rename to cypress/e2e/products/manageProducts/publishedProducts.js diff --git a/cypress/e2e/products/menageProducts/visibleInListingsProducts.js b/cypress/e2e/products/manageProducts/visibleInListingsProducts.js similarity index 96% rename from cypress/e2e/products/menageProducts/visibleInListingsProducts.js rename to cypress/e2e/products/manageProducts/visibleInListingsProducts.js index 98cfbb8d7..e4e1c21d9 100644 --- a/cypress/e2e/products/menageProducts/visibleInListingsProducts.js +++ b/cypress/e2e/products/manageProducts/visibleInListingsProducts.js @@ -48,7 +48,7 @@ describe("Products displayed in listings", () => { }); it( - "should update product to visible in listings", + "should update product to be visible in listings. TC: SALEOR_2505", { tags: ["@products", "@allEnv"] }, () => { const productName = `${startsWith}${faker.datatype.number()}`; @@ -80,7 +80,7 @@ describe("Products displayed in listings", () => { ); it( - "should update product to not visible in listings", + "should update product to not be visible in listings. TC: SALEOR_2506", { tags: ["@products", "@allEnv"] }, () => { const productName = `${startsWith}${faker.datatype.number()}`; diff --git a/cypress/e2e/products/productsList/filteringProducts.js b/cypress/e2e/products/productsList/filteringProducts.js index a0eb910e8..876ffb3ed 100644 --- a/cypress/e2e/products/productsList/filteringProducts.js +++ b/cypress/e2e/products/productsList/filteringProducts.js @@ -97,7 +97,7 @@ describe("As an admin I should be able to filter products", () => { filterProductsBy.forEach(filterBy => { it( `should filter products by ${filterBy.type}. TC: ${filterBy.testCase}`, - { tags: ["@productsList", "@allEnv"] }, + { tags: ["@productsList", "@allEnv", "@stable"] }, () => { cy.expectSkeletonIsVisible().waitForProgressBarToNotExist(); selectFilterOption(filterBy.type, name); @@ -110,7 +110,7 @@ describe("As an admin I should be able to filter products", () => { it( "should filter products out of stock. TC: SALEOR_2604", - { tags: ["@productsList", "@allEnv"] }, + { tags: ["@productsList", "@allEnv", "@stable"] }, () => { cy.expectSkeletonIsVisible(); const productOutOfStock = `${startsWith}${faker.datatype.number()}`; diff --git a/cypress/e2e/products/productsList/pagination.js b/cypress/e2e/products/productsList/pagination.js index 4dc48fc2d..445963223 100644 --- a/cypress/e2e/products/productsList/pagination.js +++ b/cypress/e2e/products/productsList/pagination.js @@ -17,7 +17,7 @@ describe("As an admin I should be able to manage products table", () => { it( "should be able go to the next page on product list. TC: SALEOR_2605", - { tags: ["@productsList", "@allEnv"] }, + { tags: ["@productsList", "@allEnv", "@stable"] }, () => { cy.expectSkeletonIsVisible() .get(PRODUCTS_LIST.emptyProductRow) diff --git a/cypress/e2e/products/updatingProducts.js b/cypress/e2e/products/updatingProducts.js index ac924884a..bc1f6918d 100644 --- a/cypress/e2e/products/updatingProducts.js +++ b/cypress/e2e/products/updatingProducts.js @@ -61,76 +61,80 @@ describe("Update products", () => { }); }); - it("Should update product", { tags: ["@products", "@allEnv"] }, () => { - const updatedName = `${startsWith}${faker.random.number()}`; - let updatedCategory; - let updatedCollection; - createCategory({ name: updatedName }) - .then(categoryResp => { - updatedCategory = categoryResp; - createCollection(updatedName); - }) - .then(collectionResp => { - updatedCollection = collectionResp; - const productData = { - generalInfo: { - name: updatedName, - description: faker.lorem.sentence(), - rating: 3, - }, - seo: { - slug: updatedName, - title: "newTitle", - description: "New description.", - }, - metadata: { - private: { - metadataForm: metadataForms.private, - name: "newPrivate", - value: "value1", + it( + "Should update product. TC: SALEOR_2703", + { tags: ["@products", "@allEnv", "@stable"] }, + () => { + const updatedName = `${startsWith}${faker.random.number()}`; + let updatedCategory; + let updatedCollection; + createCategory({ name: updatedName }) + .then(categoryResp => { + updatedCategory = categoryResp; + createCollection(updatedName); + }) + .then(collectionResp => { + updatedCollection = collectionResp; + const productData = { + generalInfo: { + name: updatedName, + description: faker.lorem.sentence(), + rating: 3, }, - public: { - metadataForm: metadataForms.public, - name: "newPublic", - value: "value2", + seo: { + slug: updatedName, + title: "newTitle", + description: "New description.", }, - }, - productOrganization: { - category: updatedCategory.name, - collection: updatedCollection.name, - }, - }; - cy.clearSessionData() - .loginUserViaRequest("auth", ONE_PERMISSION_USERS.product) - .visit(productDetailsUrl(product.id)) - .get(PRODUCT_DETAILS.collectionRemoveButtons) - .click(); - fillUpCommonFieldsForAllProductTypes(productData, false); - cy.addAliasToGraphRequest("UpdatePrivateMetadata") - .addAliasToGraphRequest("UpdateMetadata") - .addAliasToGraphRequest("ProductUpdate") - .get(BUTTON_SELECTORS.confirm) - .click() - .confirmationMessageShouldDisappear() - .waitForRequestAndCheckIfNoErrors("@ProductUpdate") - .waitForRequestAndCheckIfNoErrors("@UpdateMetadata") - .waitForRequestAndCheckIfNoErrors("@UpdatePrivateMetadata"); - productData.productOrganization.productType = name; - productData.attribute = attribute; - cy.loginUserViaRequest("token") - .then(() => { - getProductDetails(product.id, defaultChannel.slug, "auth").its( - "body.data.product", - ); - }) - .then(resp => { - expectCorrectProductInformation(resp, productData); - }); - }); - }); + metadata: { + private: { + metadataForm: metadataForms.private, + name: "newPrivate", + value: "value1", + }, + public: { + metadataForm: metadataForms.public, + name: "newPublic", + value: "value2", + }, + }, + productOrganization: { + category: updatedCategory.name, + collection: updatedCollection.name, + }, + }; + cy.clearSessionData() + .loginUserViaRequest("auth", ONE_PERMISSION_USERS.product) + .visit(productDetailsUrl(product.id)) + .get(PRODUCT_DETAILS.collectionRemoveButtons) + .click(); + fillUpCommonFieldsForAllProductTypes(productData, false); + cy.addAliasToGraphRequest("UpdatePrivateMetadata") + .addAliasToGraphRequest("UpdateMetadata") + .addAliasToGraphRequest("ProductUpdate") + .get(BUTTON_SELECTORS.confirm) + .click() + .confirmationMessageShouldDisappear() + .waitForRequestAndCheckIfNoErrors("@ProductUpdate") + .waitForRequestAndCheckIfNoErrors("@UpdateMetadata") + .waitForRequestAndCheckIfNoErrors("@UpdatePrivateMetadata"); + productData.productOrganization.productType = name; + productData.attribute = attribute; + cy.loginUserViaRequest("token") + .then(() => { + getProductDetails(product.id, defaultChannel.slug, "auth").its( + "body.data.product", + ); + }) + .then(resp => { + expectCorrectProductInformation(resp, productData); + }); + }); + }, + ); it( - "should delete product", + "should delete product. TC: SALEOR_2704", { tags: ["@products", "@allEnv", "@stable"] }, () => { cy.clearSessionData() diff --git a/cypress/elements/channels/available-channels-form.js b/cypress/elements/channels/available-channels-form.js index f6a2798aa..075a086e0 100644 --- a/cypress/elements/channels/available-channels-form.js +++ b/cypress/elements/channels/available-channels-form.js @@ -1,10 +1,10 @@ export const AVAILABLE_CHANNELS_FORM = { - menageChannelsButton: "[data-test-id='channels-availability-manage-button']", + manageChannelsButton: "[data-test-id='channels-availability-manage-button']", assignedChannels: "[data-test-id='expand-icon']", publishedRadioButtons: "[name*='isPublished']", availableForPurchaseRadioButtons: "[name*='isAvailableForPurchase']", radioButtonsValueTrue: "[value='true']", radioButtonsValueFalse: "[value='false']", visibleInListingsButton: "[name*='visibleInListings']", - availableChannel: "[data-test-id*='channel-availability-item']" + availableChannel: "[data-test-id*='channel-availability-item']", }; diff --git a/cypress/elements/customer/customer-details.js b/cypress/elements/customer/customer-details.js index 0c46ef9d9..8c8cc4571 100644 --- a/cypress/elements/customer/customer-details.js +++ b/cypress/elements/customer/customer-details.js @@ -6,10 +6,10 @@ export const CUSTOMER_DETAILS = { emailInput: '[name="email"]', noteInput: '[name="note"]', activeCheckbox: '[name="isActive"]', - menageAddressesButton: '[data-test-id="manage-addresses"]', + manageAddressesButton: '[data-test-id="manage-addresses"]', addAddressButton: '[data-test-id="add-address"]', deleteAddressMenuItem: '[data-test-id="delete-address"]', setAddressAsDefaultShipping: '[data-test-id="set-default-shipping-address"]', setAddressAsDefaultBilling: '[data-test-id="set-default-billing-address"]', - editAddressMenuitem: '[data-test-id="edit-address"]' + editAddressMenuitem: '[data-test-id="edit-address"]', }; diff --git a/cypress/support/pages/catalog/collectionsPage.js b/cypress/support/pages/catalog/collectionsPage.js index 698c08aad..3b7f6150b 100644 --- a/cypress/support/pages/catalog/collectionsPage.js +++ b/cypress/support/pages/catalog/collectionsPage.js @@ -13,7 +13,7 @@ export function createCollection(collectionName, isPublished, channel) { .click() .get(COLLECTION_SELECTORS.nameInput) .type(collectionName) - .get(AVAILABLE_CHANNELS_FORM.menageChannelsButton) + .get(AVAILABLE_CHANNELS_FORM.manageChannelsButton) .click() .get(SELECT_CHANNELS_TO_ASSIGN.allChannelsCheckbox) .click(); diff --git a/cypress/support/pages/catalog/products/VariantsPage.js b/cypress/support/pages/catalog/products/VariantsPage.js index ba801a5fc..f88f9626c 100644 --- a/cypress/support/pages/catalog/products/VariantsPage.js +++ b/cypress/support/pages/catalog/products/VariantsPage.js @@ -135,7 +135,7 @@ export function selectChannelForVariantAndFillUpPrices({ .get(BUTTON_SELECTORS.back) .click() .waitForProgressBarToNotBeVisible() - .get(AVAILABLE_CHANNELS_FORM.menageChannelsButton) + .get(AVAILABLE_CHANNELS_FORM.manageChannelsButton) .should("be.visible"); } diff --git a/cypress/support/pages/catalog/products/productDetailsPage.js b/cypress/support/pages/catalog/products/productDetailsPage.js index ca1cfef4b..e3bcba6b3 100644 --- a/cypress/support/pages/catalog/products/productDetailsPage.js +++ b/cypress/support/pages/catalog/products/productDetailsPage.js @@ -16,27 +16,27 @@ export function updateProductIsAvailableForPurchase( ? valueTrue : valueFalse; const availableForPurchaseSelector = `${AVAILABLE_CHANNELS_FORM.availableForPurchaseRadioButtons}${isAvailableForPurchaseSelector}`; - updateProductMenageInChannel(productUrl, availableForPurchaseSelector); + updateProductManageInChannel(productUrl, availableForPurchaseSelector); } export function updateProductPublish(productUrl, isPublished) { const isPublishedSelector = isPublished ? valueTrue : valueFalse; const publishedSelector = `${AVAILABLE_CHANNELS_FORM.publishedRadioButtons}${isPublishedSelector}`; - updateProductMenageInChannel(productUrl, publishedSelector); + updateProductManageInChannel(productUrl, publishedSelector); } export function updateProductVisibleInListings(productUrl) { - updateProductMenageInChannel( + updateProductManageInChannel( productUrl, AVAILABLE_CHANNELS_FORM.visibleInListingsButton, ); } -function updateProductMenageInChannel(productUrl, menageSelector) { +function updateProductManageInChannel(productUrl, manageSelector) { cy.visit(productUrl) .get(AVAILABLE_CHANNELS_FORM.assignedChannels) .click() - .get(menageSelector) + .get(manageSelector) .click() .waitForProgressBarToNotBeVisible() .addAliasToGraphRequest("ProductChannelListingUpdate") diff --git a/cypress/support/pages/channelsPage.js b/cypress/support/pages/channelsPage.js index 387a0dc79..768cc54c0 100644 --- a/cypress/support/pages/channelsPage.js +++ b/cypress/support/pages/channelsPage.js @@ -87,7 +87,7 @@ export function selectChannelInHeader(channelName) { } export function selectChannelInDetailsPages(channelName) { - cy.get(AVAILABLE_CHANNELS_FORM.menageChannelsButton) + cy.get(AVAILABLE_CHANNELS_FORM.manageChannelsButton) .click() .get(SELECT_CHANNELS_TO_ASSIGN.allChannelsCheckbox) .click(); @@ -107,7 +107,7 @@ export function selectChannelInDetailsPages(channelName) { } export function selectChannelVariantInDetailsPage(channelName, attributeName) { - cy.get(AVAILABLE_CHANNELS_FORM.menageChannelsButton).click(); + cy.get(AVAILABLE_CHANNELS_FORM.manageChannelsButton).click(); const channelsNames = Array.isArray(channelName) ? channelName : [channelName];