Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functional Tests : Enable test after #33962 #34076

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 8 additions & 5 deletions tests/UI/campaigns/productV2/functional/12_packTab.ts
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
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