diff --git a/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts b/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts index 20a333d13c47e..1a10f643c5870 100644 --- a/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts +++ b/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts @@ -406,7 +406,7 @@ describe('BO - Catalog - Products : CRUD pack of products', async () => { await Promise.all([ expect(result.image).to.contains(test.args.product.coverImage), expect(result.name).to.equal(test.args.product.name), - expect(result.price).to.equal(`€${test.args.product.finalPrice.toFixed(2)}`), + expect(result.price).to.equal(test.args.product.finalPrice), expect(result.quantity).to.equal(test.args.quantity), ]); }); @@ -475,7 +475,7 @@ describe('BO - Catalog - Products : CRUD pack of products', async () => { await Promise.all([ expect(result.image).to.contains(test.args.product.coverImage), expect(result.name).to.equal(test.args.product.name), - expect(result.price).to.equal(`€${test.args.product.finalPrice.toFixed(2)}`), + expect(result.price).to.equal(test.args.product.finalPrice), expect(result.quantity).to.equal(test.args.quantity), ]); }); diff --git a/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts b/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts index 811fbbf685626..de6336867e3e2 100644 --- a/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts +++ b/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts @@ -332,7 +332,7 @@ describe('BO - Catalog - Products : Pack Tab', async () => { + `${utilsCore.capitalize(dataProducts.demo_1.attributes[0].name)}-${dataProducts.demo_1.attributes[0].values[0]} ` + `${utilsCore.capitalize(dataProducts.demo_1.attributes[1].name)}-${dataProducts.demo_1.attributes[1].values[0]}`, ), - expect(product1.price).to.equals(`€${dataProducts.demo_1.finalPrice.toFixed(2)}`), + expect(product1.price).to.equals(dataProducts.demo_1.finalPrice), expect(product1.quantity).to.equals(productQuantity), ]); @@ -342,7 +342,7 @@ describe('BO - Catalog - Products : Pack Tab', async () => { `${dataProducts.demo_9.name} ` + `${utilsCore.capitalize(dataProducts.demo_9.attributes[0].name)}-${dataProducts.demo_9.attributes[0].values[0]}`, ), - expect(product2.price).to.equals(`€${dataProducts.demo_9.finalPrice.toFixed(2)}`), + expect(product2.price).to.equals(dataProducts.demo_9.finalPrice), expect(product2.quantity).to.equals(1), ]); }); diff --git a/tests/UI/campaigns/functional/FO/classic/09_productPage/02_productPage/12_displayTag.ts b/tests/UI/campaigns/functional/FO/classic/09_productPage/02_productPage/12_displayTag.ts index fd17ba8ab6075..757938bc9c1b7 100644 --- a/tests/UI/campaigns/functional/FO/classic/09_productPage/02_productPage/12_displayTag.ts +++ b/tests/UI/campaigns/functional/FO/classic/09_productPage/02_productPage/12_displayTag.ts @@ -22,7 +22,7 @@ import { utilsPlaywright, } from '@prestashop-core/ui-testing'; -const baseContext: string = 'functional_FO_classic_foClassicProductPage._foClassicProductPage._displayTag'; +const baseContext: string = 'functional_FO_classic_productPage_productPage_displayTag'; describe('FO - Product page - Product page : Display tag products', async () => { let browserContext: BrowserContext; diff --git a/tests/UI/campaigns/functional/FO/classic/09_productPage/02_productPage/15_displayPackContentAndLinkProduct.ts b/tests/UI/campaigns/functional/FO/classic/09_productPage/02_productPage/15_displayPackContentAndLinkProduct.ts index b064dfd77b88a..23ce5e1dd53b2 100644 --- a/tests/UI/campaigns/functional/FO/classic/09_productPage/02_productPage/15_displayPackContentAndLinkProduct.ts +++ b/tests/UI/campaigns/functional/FO/classic/09_productPage/02_productPage/15_displayPackContentAndLinkProduct.ts @@ -70,14 +70,14 @@ describe('FO - Product Page : Display pack content and link to product', async ( `${dataProducts.demo_7.name} ` + `${utilsCore.capitalize(dataProducts.demo_7.attributes[0].name)}-${dataProducts.demo_7.attributes[0].values[0]}`, ), - expect(product1.price).to.equals(`€${dataProducts.demo_7.price.toFixed(2)}`), + expect(product1.price.toFixed(2)).to.equals(dataProducts.demo_7.price.toFixed(2)), expect(product1.quantity).to.equals(5), ]); const product2 = await foClassicProductPage.getProductInPackList(page, 2); await Promise.all([ expect(product2.name).to.equals(dataProducts.demo_12.name), - expect(product2.price).to.equals(`€${dataProducts.demo_12.price.toFixed(2)}`), + expect(product2.price.toFixed(2)).to.equals(dataProducts.demo_12.price.toFixed(2)), expect(product2.quantity).to.equals(5), ]); }); diff --git a/tests/UI/campaigns/functional/FO/hummingbird/09_productPage/02_productPage/15_displayPackContentAndLinkProduct.ts b/tests/UI/campaigns/functional/FO/hummingbird/09_productPage/02_productPage/15_displayPackContentAndLinkProduct.ts index ee3b5814f317e..9007d6c9472f4 100644 --- a/tests/UI/campaigns/functional/FO/hummingbird/09_productPage/02_productPage/15_displayPackContentAndLinkProduct.ts +++ b/tests/UI/campaigns/functional/FO/hummingbird/09_productPage/02_productPage/15_displayPackContentAndLinkProduct.ts @@ -77,14 +77,14 @@ describe('FO - Product Page : Display pack content and link to product', async ( `${dataProducts.demo_7.name} ` + `${utilsCore.capitalize(dataProducts.demo_7.attributes[0].name)}-${dataProducts.demo_7.attributes[0].values[0]}`, ), - expect(product1.price).to.equals(`€${dataProducts.demo_7.price.toFixed(2)}`), + expect(product1.price.toFixed(2)).to.equals(dataProducts.demo_7.price.toFixed(2)), expect(product1.quantity).to.equals(5), ]); const product2 = await foHummingbirdProductPage.getProductInPackList(page, 2); await Promise.all([ expect(product2.name).to.equals(dataProducts.demo_12.name), - expect(product2.price).to.equals(`€${dataProducts.demo_12.price.toFixed(2)}`), + expect(product2.price.toFixed(2)).to.equals(dataProducts.demo_12.price.toFixed(2)), expect(product2.quantity).to.equals(5), ]); }); diff --git a/tests/UI/package-lock.json b/tests/UI/package-lock.json index e84f37f7be3e4..24db2e07adb73 100644 --- a/tests/UI/package-lock.json +++ b/tests/UI/package-lock.json @@ -431,7 +431,7 @@ }, "node_modules/@prestashop-core/ui-testing": { "version": "0.0.12", - "resolved": "git+ssh://git@github.com/PrestaShop/ui-testing-library.git#16fc7a24e42bee76c7b8469091e6b6533625d68a", + "resolved": "git+ssh://git@github.com/PrestaShop/ui-testing-library.git#30092bf44cf0bc3b3ad5e8a336dfe04f5d987479", "license": "MIT", "dependencies": { "@faker-js/faker": "^8.3.1", @@ -8434,7 +8434,7 @@ } }, "@prestashop-core/ui-testing": { - "version": "git+ssh://git@github.com/PrestaShop/ui-testing-library.git#16fc7a24e42bee76c7b8469091e6b6533625d68a", + "version": "git+ssh://git@github.com/PrestaShop/ui-testing-library.git#30092bf44cf0bc3b3ad5e8a336dfe04f5d987479", "from": "@prestashop-core/ui-testing@https://github.com/PrestaShop/ui-testing-library#main", "requires": { "@faker-js/faker": "^8.3.1",