Skip to content

Commit

Permalink
followed reviewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
florine2623 committed Dec 12, 2024
1 parent 2ff0962 commit da956ea
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions tests/UI/campaigns/audit/BO/09_shipping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('BO - Shipping', async () => {
expect(jsErrors.length).to.equals(0);
});

it('should go to add new carrier page', async function () {
it('should go to \'Shipping > Carriers > New Carrier\' page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'goToAddCarrierPage', baseContext);

await boCarriersPage.goToAddNewCarrierPage(page);
Expand All @@ -71,21 +71,10 @@ describe('BO - Shipping', async () => {
expect(jsErrors.length).to.equals(0);
});

it('should return to \'Shipping > Carriers\' page', async function () {
it('should go to \'Shipping > Carriers > Edit Carrier\' page', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'goBackToShippingCarriersPage', baseContext);

await boCarriersCreatePage.goToPreviousPage(page);

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

const jsErrors = utilsPlaywright.getJsErrors();
expect(jsErrors.length).to.equals(0);
});

it('should edit first line', async function () {
await testContext.addContextItem(this, 'testIdentifier', 'goToEditCarrierFreeShipping', baseContext);

await boCarriersPage.goToEditCarrierPage(page, 1);

const pageTitle = await boCarriersCreatePage.getPageTitle(page);
Expand Down

0 comments on commit da956ea

Please sign in to comment.