Skip to content

Commit

Permalink
Functional Tests : Enable test after #33962
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Sep 27, 2023
1 parent ca7d06d commit e5e179a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/UI/campaigns/productV2/functional/12_packTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,15 @@ describe('BO - Catalog - Products : Pack Tab', async () => {
const productInformation = await foProductPage.getProductInformation(page);
expect(productRetailPrice).to.eq(productInformation.price);

// @todo : https://github.com/PrestaShop/PrestaShop/issues/33962
/*
const productsPrice = await foProductPage.getPackProductsPrice(page);
const calculatedPrice = (Products.demo_1.finalPrice * productQuantity + Products.demo_9.finalPrice).toFixed(2);
expect(calculatedPrice).to.eq(productsPrice);
*/
const calculatedPrice = (
((
(Products.demo_1.price - (Products.demo_1.price * (Products.demo_1.specificPrice.discount / 100)))
* (1 + (Products.demo_1.tax / 100))
) * productQuantity)
+ Products.demo_9.finalPrice
).toFixed(2);
expect(calculatedPrice).to.eq(productsPrice.toString());

const product1 = await foProductPage.getProductInPackList(page, 1);
await Promise.all([
Expand Down
1 change: 1 addition & 0 deletions tests/UI/data/demo/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default {
+ 'origamis. To wear with a chino or jeans. The sublimation textile printing process provides an exceptional '
+ 'color rendering and a color, guaranteed overtime.',
retailPrice: 28.68,
tax: 20,
price: 23.90,
finalPrice: 22.94,
specificPrice: {
Expand Down

0 comments on commit e5e179a

Please sign in to comment.