diff --git a/tests/puppeteer/campaigns/functional/BO/catalog/categories/01_filterAndQuickEditCategories.js b/tests/puppeteer/campaigns/functional/BO/catalog/categories/01_filterAndQuickEditCategories.js index 9af2841332f1c..9e604326ab073 100644 --- a/tests/puppeteer/campaigns/functional/BO/catalog/categories/01_filterAndQuickEditCategories.js +++ b/tests/puppeteer/campaigns/functional/BO/catalog/categories/01_filterAndQuickEditCategories.js @@ -39,7 +39,7 @@ describe('Filter And Quick Edit Categories', async () => { loginCommon.loginBO(); it('should go to "Catalog>Categories" page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.categoriesLink, ); await this.pageObjects.boBasePage.closeSfToolBar(); diff --git a/tests/puppeteer/campaigns/functional/BO/catalog/categories/02_CRUDCategoryInBO.js b/tests/puppeteer/campaigns/functional/BO/catalog/categories/02_CRUDCategoryInBO.js index 320a0f1283696..8e2c04336cf26 100644 --- a/tests/puppeteer/campaigns/functional/BO/catalog/categories/02_CRUDCategoryInBO.js +++ b/tests/puppeteer/campaigns/functional/BO/catalog/categories/02_CRUDCategoryInBO.js @@ -51,7 +51,7 @@ describe('Create, Read, Update and Delete Category', async () => { loginCommon.loginBO(); it('should go to "Catalog>Categories" page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.categoriesLink, ); await this.pageObjects.boBasePage.closeSfToolBar(); @@ -171,7 +171,7 @@ describe('Create, Read, Update and Delete Category', async () => { describe('View Category Created', async () => { it('should go to "Catalog>Categories" page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.categoriesLink, ); const pageTitle = await this.pageObjects.categoriesPage.getPageTitle(); @@ -209,7 +209,7 @@ describe('Create, Read, Update and Delete Category', async () => { describe('Update Category created', async () => { it('should go to "Catalog>Categories" page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.categoriesLink, ); const pageTitle = await this.pageObjects.categoriesPage.getPageTitle(); @@ -274,7 +274,7 @@ describe('Create, Read, Update and Delete Category', async () => { describe('Delete Category', async () => { it('should go to "Catalog>Categories" page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.categoriesLink, ); const pageTitle = await this.pageObjects.categoriesPage.getPageTitle(); diff --git a/tests/puppeteer/campaigns/functional/BO/catalog/categories/03_categoriesBulkAction.js b/tests/puppeteer/campaigns/functional/BO/catalog/categories/03_categoriesBulkAction.js index 433362fef09d4..496d39e4e7285 100644 --- a/tests/puppeteer/campaigns/functional/BO/catalog/categories/03_categoriesBulkAction.js +++ b/tests/puppeteer/campaigns/functional/BO/catalog/categories/03_categoriesBulkAction.js @@ -45,7 +45,7 @@ describe('Create Categories, Then disable / Enable and Delete with Bulk actions' loginCommon.loginBO(); it('should go to "Catalog>Categories" page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.categoriesLink, ); await this.pageObjects.boBasePage.closeSfToolBar(); diff --git a/tests/puppeteer/campaigns/sanity/02_productsBO/01_filterProducts.js b/tests/puppeteer/campaigns/sanity/02_productsBO/01_filterProducts.js index 61d07a9e866ae..86f67b677fa24 100644 --- a/tests/puppeteer/campaigns/sanity/02_productsBO/01_filterProducts.js +++ b/tests/puppeteer/campaigns/sanity/02_productsBO/01_filterProducts.js @@ -41,7 +41,7 @@ describe('Filter in Products Page', async () => { loginCommon.loginBO(); it('should go to Products page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.productsLink, ); const pageTitle = await this.pageObjects.productsPage.getPageTitle(); diff --git a/tests/puppeteer/campaigns/sanity/02_productsBO/02_CRUDStandardProductInBO.js b/tests/puppeteer/campaigns/sanity/02_productsBO/02_CRUDStandardProductInBO.js index 0a1255d4ab884..017b260f40a40 100644 --- a/tests/puppeteer/campaigns/sanity/02_productsBO/02_CRUDStandardProductInBO.js +++ b/tests/puppeteer/campaigns/sanity/02_productsBO/02_CRUDStandardProductInBO.js @@ -50,7 +50,7 @@ describe('Create, read, update and delete Standard product in BO', async () => { loginCommon.loginBO(); it('should go to Products page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.productsLink, ); await this.pageObjects.boBasePage.closeSfToolBar(); diff --git a/tests/puppeteer/campaigns/sanity/02_productsBO/03_CRUDStandardProductWithCombinationsInBO.js b/tests/puppeteer/campaigns/sanity/02_productsBO/03_CRUDStandardProductWithCombinationsInBO.js index 39ca03db6a57a..685dbdba8512e 100644 --- a/tests/puppeteer/campaigns/sanity/02_productsBO/03_CRUDStandardProductWithCombinationsInBO.js +++ b/tests/puppeteer/campaigns/sanity/02_productsBO/03_CRUDStandardProductWithCombinationsInBO.js @@ -50,7 +50,7 @@ describe('Create, read, update and delete Standard product with combinations in loginCommon.loginBO(); it('should go to Products page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.productsLink, ); await this.pageObjects.boBasePage.closeSfToolBar(); diff --git a/tests/puppeteer/campaigns/sanity/02_productsBO/04_deleteProduct.js b/tests/puppeteer/campaigns/sanity/02_productsBO/04_deleteProduct.js index 0f006804074f1..fdd4db482c7f9 100644 --- a/tests/puppeteer/campaigns/sanity/02_productsBO/04_deleteProduct.js +++ b/tests/puppeteer/campaigns/sanity/02_productsBO/04_deleteProduct.js @@ -46,7 +46,7 @@ describe('Create Standard product in BO and Delete it with DropDown Menu', async loginCommon.loginBO(); it('should go to Products page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.productsLink, ); const pageTitle = await this.pageObjects.productsPage.getPageTitle(); @@ -66,7 +66,7 @@ describe('Create Standard product in BO and Delete it with DropDown Menu', async await expect(createProductMessage).to.equal(this.pageObjects.addProductPage.settingUpdatedMessage); }); it('should go to Products page', async function () { - await this.pageObjects.boBasePage.goToSubMenu(this.pageObjects.boBasePage.productsParentLink, + await this.pageObjects.boBasePage.goToSubMenu(this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.productsLink); const pageTitle = await this.pageObjects.productsPage.getPageTitle(); await expect(pageTitle).to.contains(this.pageObjects.productsPage.pageTitle); diff --git a/tests/puppeteer/campaigns/sanity/02_productsBO/05_deleteProductsWithBulkActions.js b/tests/puppeteer/campaigns/sanity/02_productsBO/05_deleteProductsWithBulkActions.js index efe443b89e916..ce1dd0c84e042 100644 --- a/tests/puppeteer/campaigns/sanity/02_productsBO/05_deleteProductsWithBulkActions.js +++ b/tests/puppeteer/campaigns/sanity/02_productsBO/05_deleteProductsWithBulkActions.js @@ -51,7 +51,7 @@ describe('Create Standard product in BO and Delete it with Bulk Actions', async loginCommon.loginBO(); it('should go to Products page', async function () { await this.pageObjects.boBasePage.goToSubMenu( - this.pageObjects.boBasePage.productsParentLink, + this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.productsLink, ); const pageTitle = await this.pageObjects.productsPage.getPageTitle(); @@ -71,7 +71,7 @@ describe('Create Standard product in BO and Delete it with Bulk Actions', async await expect(createProductMessage).to.equal(this.pageObjects.addProductPage.settingUpdatedMessage); }); it('should go to Products page', async function () { - await this.pageObjects.boBasePage.goToSubMenu(this.pageObjects.boBasePage.productsParentLink, + await this.pageObjects.boBasePage.goToSubMenu(this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.productsLink); const pageTitle = await this.pageObjects.productsPage.getPageTitle(); await expect(pageTitle).to.contains(this.pageObjects.productsPage.pageTitle); @@ -82,7 +82,7 @@ describe('Create Standard product in BO and Delete it with Bulk Actions', async await expect(createProductMessage).to.equal(this.pageObjects.addProductPage.settingUpdatedMessage); }); it('should go to Products page', async function () { - await this.pageObjects.boBasePage.goToSubMenu(this.pageObjects.boBasePage.productsParentLink, + await this.pageObjects.boBasePage.goToSubMenu(this.pageObjects.boBasePage.catalogParentLink, this.pageObjects.boBasePage.productsLink); const pageTitle = await this.pageObjects.productsPage.getPageTitle(); await expect(pageTitle).to.contains(this.pageObjects.productsPage.pageTitle); diff --git a/tests/puppeteer/pages/BO/BObasePage.js b/tests/puppeteer/pages/BO/BObasePage.js index f6f5ea11f6729..f0213567e3ad4 100644 --- a/tests/puppeteer/pages/BO/BObasePage.js +++ b/tests/puppeteer/pages/BO/BObasePage.js @@ -25,11 +25,14 @@ module.exports = class BOBasePage extends CommonPage { this.ordersParentLink = 'li#subtab-AdminParentOrders'; this.ordersLink = '#subtab-AdminOrders'; - this.productsParentLink = 'li#subtab-AdminCatalog'; + // Catalog + this.catalogParentLink = 'li#subtab-AdminCatalog'; + // Products this.productsLink = '#subtab-AdminProducts'; - + // Categories this.categoriesLink = '#subtab-AdminCategories'; + // Customers this.customersParentLink = 'li#subtab-AdminParentCustomer'; this.customersLink = '#subtab-AdminCustomers';