Skip to content

Commit

Permalink
Functional Tests : Migration (Part 7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jan 8, 2025
1 parent 2830e89 commit 5bd73fe
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,22 @@ describe('BO - Shipping - Carriers : General Settings', async () => {

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

Check failure on line 346 in tests/UI/campaigns/functional/BO/09_shipping/01_carriers/06_generalSettings.ts

View workflow job for this annotation

GitHub Actions / ESLint

Trailing spaces not allowed
it('should return to carriers page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'returnToCarriersAfterUpdateCarrierStatus', baseContext);

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

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

const numberCarriersAfterUpdate = await boCarriersPage.getNumberOfElementInGrid(page);
expect(numberCarriersAfterUpdate).to.be.equal(1);

idCarrier = parseInt(await boCarriersPage.getTextColumn(page, 1, 'id_carrier'), 10);
});
Expand Down Expand Up @@ -375,6 +391,22 @@ describe('BO - Shipping - Carriers : General Settings', async () => {

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

Check failure on line 395 in tests/UI/campaigns/functional/BO/09_shipping/01_carriers/06_generalSettings.ts

View workflow job for this annotation

GitHub Actions / ESLint

Trailing spaces not allowed
it('should return to carriers page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'returnToCarriersAfterUpdateCarrierName', baseContext);

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

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

const numberCarriersAfterUpdate = await boCarriersPage.getNumberOfElementInGrid(page);
expect(numberCarriersAfterUpdate).to.be.equal(1);

idCarrier = parseInt(await boCarriersPage.getTextColumn(page, 1, 'id_carrier'), 10);
});
Expand Down Expand Up @@ -414,6 +446,22 @@ describe('BO - Shipping - Carriers : General Settings', async () => {

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

Check failure on line 450 in tests/UI/campaigns/functional/BO/09_shipping/01_carriers/06_generalSettings.ts

View workflow job for this annotation

GitHub Actions / ESLint

Trailing spaces not allowed
it('should return to carriers page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'returnToCarriersAfterUpdateCarrierGroupAccess', baseContext);

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

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

const numberCarriersAfterUpdate = await boCarriersPage.getNumberOfElementInGrid(page);
expect(numberCarriersAfterUpdate).to.be.equal(1);

idCarrier = parseInt(await boCarriersPage.getTextColumn(page, 1, 'id_carrier'), 10);
});
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 5bd73fe

Please sign in to comment.