diff --git a/src/test/pages/AccountRegister.ts b/src/test/pages/AccountRegister.ts index 71f298a..073fcde 100644 --- a/src/test/pages/AccountRegister.ts +++ b/src/test/pages/AccountRegister.ts @@ -30,7 +30,6 @@ export class AccountRegister { public async visitWebPage ():Promise { await pageFixture.page.goto('https://magento.softwaretestingboard.com/'); - pageFixture.logger.info('Navigated to the webpage - SELF WRITTEN.') }; public async assertAccPage ():Promise { diff --git a/src/test/pages/UserShopping.ts b/src/test/pages/UserShopping.ts index 339f7bc..1853760 100644 --- a/src/test/pages/UserShopping.ts +++ b/src/test/pages/UserShopping.ts @@ -8,19 +8,19 @@ import { Page, expect } from "@playwright/test"; } export class CategoryAndProductSelectionFacade{ - private menSection: UserShopping; + private userShopping: UserShopping; constructor(menSection: UserShopping){ - this.menSection = menSection; + this.userShopping = menSection; }; public async productSelection(section: string, attire: string){ - await this.menSection.goSectionAndAttire(section, attire); + await this.userShopping.goSectionAndAttire(section, attire); }; public async selectRandomItem(){ - await this.menSection.showItems(); - await this.menSection.selectRandomProduct(); + await this.userShopping.showItems(); + await this.userShopping.selectRandomProduct(); }; }; diff --git a/src/test/resources/userShoppingPage.json b/src/test/resources/userShoppingPage.json index 315c278..6ff473c 100644 --- a/src/test/resources/userShoppingPage.json +++ b/src/test/resources/userShoppingPage.json @@ -16,7 +16,7 @@ }, { "elementName": "itemsShown", - "selectorValue": "//li[contains(@class,'item product product-item')][FLAG]//div[contains(@class,'product details product-item-details')]//strong" + "selectorValue": "//li[contains(@class,'item product product-item')][FLAG]//div[contains(@class,'product details product-item-details')]//strong//a" }, { "elementName": "productsShown",