Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jul 22, 2024
1 parent 8625325 commit 98b4cb5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]);
});
Expand Down Expand Up @@ -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),
]);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]);

Expand All @@ -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),
]);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]);
});
Expand Down
4 changes: 2 additions & 2 deletions tests/UI/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98b4cb5

Please sign in to comment.