Skip to content

Commit

Permalink
Functional Tests : Migration (Part 6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jan 8, 2025
1 parent 8506967 commit 2830e89
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,19 @@ describe('BO - Shipping - Preferences : Test handling charges for carriers in FO
const textResult = await boCarriersCreatePage.createEditCarrier(page, createCarrierData);
expect(textResult).to.contains(boCarriersPage.successfulCreationMessage);
});

it('should return to carriers page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'returnToCarriers', baseContext);

await boDashboardPage.goToSubMenu(
page,
boDashboardPage.shippingLink,
boDashboardPage.carriersLink,
);

const pageTitle = await boCarriersPage.getPageTitle(page);
expect(pageTitle).to.contains(boCarriersPage.pageTitle);
});

it('should filter list by name and get the new carrier ID', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'filterToCheckNewCarrier', baseContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe('BO - Shipping - Preferences : Update \'sort carriers by\' and \'Order
const isActionPerformed = await boCarriersPage.setStatus(page, 1, true);

if (isActionPerformed) {
const resultMessage = await boCarriersPage.getAlertSuccessBlockContent(page);
const resultMessage = await boCarriersPage.getAlertSuccessBlockParagraphContent(page);
expect(resultMessage).to.contains(boCarriersPage.successfulUpdateStatusMessage);
}

Expand Down Expand Up @@ -251,7 +251,7 @@ describe('BO - Shipping - Preferences : Update \'sort carriers by\' and \'Order
const isActionPerformed = await boCarriersPage.setStatus(page, 1, false);

if (isActionPerformed) {
const resultMessage = await boCarriersPage.getAlertSuccessBlockContent(page);
const resultMessage = await boCarriersPage.getAlertSuccessBlockParagraphContent(page);
expect(resultMessage).to.contains(boCarriersPage.successfulUpdateStatusMessage);
}

Expand Down

0 comments on commit 2830e89

Please sign in to comment.