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 dee9f7d
Showing 1 changed file with 8 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

0 comments on commit dee9f7d

Please sign in to comment.