Skip to content

Commit

Permalink
Functional Tests : Migration (Part 8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Feb 4, 2025
1 parent ddfd468 commit 5305969
Showing 1 changed file with 54 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -732,14 +732,16 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(pageTitle).to.contains(boCarriersCreatePage.pageTitleEdit);
});

it('should update the carrier tax', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should update the carrier tax', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'updateCarrierTax', baseContext);

const textResult = await boCarriersCreatePage.createEditCarrier(page, carrierDataTax);
expect(textResult).to.contains(boCarriersPage.successfulUpdateMessage);
});

it('should return to carriers page', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should return to carriers page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'returnToCarriersAfterUpdateCarrierTax', baseContext);

await boDashboardPage.goToSubMenu(
Expand All @@ -757,7 +759,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
idCarrier = parseInt(await boCarriersPage.getTextColumn(page, 1, 'id_carrier'), 10);
});

it('should check the carriers', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should check the carriers', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'checkCarriersTax', baseContext);

page = await boCarriersPage.changePage(browserContext, 1);
Expand All @@ -780,7 +783,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
]);
});

it('should go to \'Catalog > Products\' page', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should go to \'Catalog > Products\' page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext);

page = await boCarriersPage.changePage(browserContext, 0);
Expand All @@ -795,7 +799,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(pageTitle).to.contains(boProductsPage.pageTitle);
});

it(`should filter a product named "${dataProducts.demo_11.name}"`, async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip(`should filter a product named "${dataProducts.demo_11.name}"`, async function () {
await testContext.addContextItem(this, 'testIdentifier', 'filterProduct', baseContext);

await boProductsPage.resetFilter(page);
Expand All @@ -808,7 +813,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(textColumn).to.equal(dataProducts.demo_11.name);
});

it('should edit the product', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should edit the product', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'goToEditPage', baseContext);

await boProductsPage.goToProductPage(page, 1);
Expand All @@ -817,7 +823,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(pageTitle).to.contains(boProductsCreatePage.pageTitle);
});

it('should go to shipping tab and edit package dimension', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should go to shipping tab and edit package dimension', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'editPackageDimension', baseContext);

await boProductsCreateTabShippingPage.setPackageDimension(page, editProductData);
Expand All @@ -826,7 +833,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(message).to.eq(boProductsCreatePage.successfulUpdateMessage);
});

it('should check the carriers', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should check the carriers', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'checkCarriersProductWeight', baseContext);

page = await boProductsCreatePage.changePage(browserContext, 1);
Expand All @@ -849,7 +857,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
]);
});

it('should go to \'Shipping > Carriers\' page', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should go to \'Shipping > Carriers\' page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'returnToCarriersPage', baseContext);

page = await foClassicCheckoutPage.changePage(browserContext, 0);
Expand All @@ -863,7 +872,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(pageTitle).to.contains(boCarriersPage.pageTitle);
});

it('should filter list by name', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should filter list by name', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'filterForUpdateAfterProduct', baseContext);

await boCarriersPage.resetFilter(page);
Expand All @@ -880,7 +890,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
idCarrier = parseInt(await boCarriersPage.getTextColumn(page, 1, 'id_carrier'), 10);
});

it('should go to edit carrier page', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should go to edit carrier page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'goToEditCarrierRanges', baseContext);

await boCarriersPage.goToEditCarrierPage(page, 1);
Expand All @@ -889,14 +900,16 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(pageTitle).to.contains(boCarriersCreatePage.pageTitleEdit);
});

it('should update the carrier ranges', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should update the carrier ranges', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'updateCarrierRanges', baseContext);

const textResult = await boCarriersCreatePage.createEditCarrier(page, carrierDataRanges);
expect(textResult).to.contains(boCarriersPage.successfulUpdateMessage);
});

it('should return to carriers page', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should return to carriers page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'returnToCarriersAfterUpdateCarrierRanges', baseContext);

await boDashboardPage.goToSubMenu(
Expand All @@ -914,7 +927,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
idCarrier = parseInt(await boCarriersPage.getTextColumn(page, 1, 'id_carrier'), 10);
});

it('should check the carriers', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should check the carriers', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'checkCarriersRanges', baseContext);

page = await boProductsCreatePage.changePage(browserContext, 1);
Expand All @@ -937,7 +951,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
]);
});

it('should return to cart', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should return to cart', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'returnToCartQty2', baseContext);

await foClassicCheckoutPage.clickOnHeaderLink(page, 'Logo');
Expand All @@ -947,7 +962,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(pageTitle).to.contains(foClassicCartPage.pageTitle);
});

it('should change quantity to 2 and proceed to checkout', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should change quantity to 2 and proceed to checkout', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'changeQuantity2', baseContext);

await foClassicCartPage.editProductQuantity(page, 1, 2);
Expand All @@ -960,7 +976,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(isCheckoutPage).to.eq(true);
});

it('should choose the delivery address', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should choose the delivery address', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'chooseAndConfirmAddressStepQty2', baseContext);

await foClassicCheckoutPage.chooseDeliveryAddress(page, 1);
Expand All @@ -969,14 +986,16 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(isDeliveryStep).to.eq(true);
});

it('should check carriers', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should check carriers', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'checkCarriersWeightExceeded', baseContext);

const carriers = await foClassicCheckoutPage.getAllCarriersNames(page);
expect(carriers).to.deep.equal([dataCarriers.clickAndCollect.name, dataCarriers.myCarrier.name]);
});

it('should return to cart', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should return to cart', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'returnToCartQty1', baseContext);

await foClassicCheckoutPage.clickOnHeaderLink(page, 'Logo');
Expand All @@ -986,7 +1005,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(pageTitle).to.contains(foClassicCartPage.pageTitle);
});

it('should change quantity to 1 and proceed to checkout', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should change quantity to 1 and proceed to checkout', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'changeQuantity1', baseContext);

await foClassicCartPage.editProductQuantity(page, 1, 1);
Expand All @@ -999,7 +1019,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(isCheckoutPage).to.eq(true);
});

it('should choose the delivery address', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should choose the delivery address', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'chooseAndConfirmAddressStepQty1', baseContext);

await foClassicCheckoutPage.chooseDeliveryAddress(page, 1);
Expand All @@ -1008,7 +1029,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(isDeliveryStep).to.eq(true);
});

it('should check the carriers', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should check the carriers', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'checkCarriersWeightQty1', baseContext);

const carriers = await foClassicCheckoutPage.getAllCarriersNames(page);
Expand All @@ -1024,7 +1046,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
]);
});

it('should go to edit carrier page', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should go to edit carrier page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'goToEditCarrierBilling', baseContext);

page = await foClassicCheckoutPage.changePage(browserContext, 0);
Expand All @@ -1034,14 +1057,16 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
expect(pageTitle).to.contains(boCarriersCreatePage.pageTitleEdit);
});

it('should update the carrier billing', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should update the carrier billing', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'updateCarrierBilling', baseContext);

const textResult = await boCarriersCreatePage.createEditCarrier(page, carrierDataBilling);
expect(textResult).to.contains(boCarriersPage.successfulUpdateMessage);
});

it('should return to carriers page', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should return to carriers page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'returnToCarriersAfterUpdateCarrierBilling', baseContext);

await boDashboardPage.goToSubMenu(
Expand All @@ -1059,7 +1084,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
idCarrier = parseInt(await boCarriersPage.getTextColumn(page, 1, 'id_carrier'), 10);
});

it('should check the carriers', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should check the carriers', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'checkCarriersBilling', baseContext);

page = await boCarriersPage.changePage(browserContext, 1);
Expand All @@ -1078,7 +1104,8 @@ describe('BO - Shipping - Carriers : Shipping locations and costs', async () =>
]);
});

it('should go to edit carrier page', async function () {
// @todo : https://github.com/PrestaShop/PrestaShop/issues/37785
it.skip('should go to edit carrier page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'goToEditCarrierRemoveRanges', baseContext);

page = await foClassicCheckoutPage.changePage(browserContext, 0);
Expand Down

0 comments on commit 5305969

Please sign in to comment.