Skip to content

Commit

Permalink
Add more details about JS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Jan 27, 2025
1 parent fe115bd commit ec1b648
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/UI/campaigns/audit/BO/02_orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('BO - Orders', async () => {
expect(pageTitle).to.contains(boDashboardPage.pageTitle);

const jsErrors = utilsPlaywright.getJsErrors();
expect(jsErrors.length).to.equals(0);
expect(jsErrors.length).to.equals(0, jsErrors.map((error) => error.error).join(', '));
});

it('should go to \'Orders > Orders\' page', async function () {
Expand All @@ -59,7 +59,7 @@ describe('BO - Orders', async () => {
expect(pageTitle).to.contains(boOrdersPage.pageTitle);

const jsErrors = utilsPlaywright.getJsErrors();
expect(jsErrors.length).to.equals(0);
expect(jsErrors.length).to.equals(0, jsErrors.map((error) => error.error).join(', '));
});

it('should go to \'Orders > Orders > New Order\' page', async function () {
Expand All @@ -71,7 +71,7 @@ describe('BO - Orders', async () => {
expect(pageTitle).to.contains(boOrdersCreatePage.pageTitle);

const jsErrors = utilsPlaywright.getJsErrors();
expect(jsErrors.length).to.equals(0);
expect(jsErrors.length).to.equals(0, jsErrors.map((error) => error.error).join(', '));
});

it('should go to \'Orders > Invoices\' page', async function () {
Expand All @@ -88,7 +88,7 @@ describe('BO - Orders', async () => {
expect(pageTitle).to.contains(boInvoicesPage.pageTitle);

const jsErrors = utilsPlaywright.getJsErrors();
expect(jsErrors.length).to.equals(0);
expect(jsErrors.length).to.equals(0, jsErrors.map((error) => error.error).join(', '));
});

it('should go to \'Orders > Credit slips\' page', async function () {
Expand All @@ -105,7 +105,7 @@ describe('BO - Orders', async () => {
expect(pageTitle).to.contains(boCreditSlipsPage.pageTitle);

const jsErrors = utilsPlaywright.getJsErrors();
expect(jsErrors.length).to.equals(0);
expect(jsErrors.length).to.equals(0, jsErrors.map((error) => error.error).join(', '));
});

it('should go to \'Orders > Delivery slips\' page', async function () {
Expand All @@ -122,7 +122,7 @@ describe('BO - Orders', async () => {
expect(pageTitle).to.contains(boDeliverySlipsPage.pageTitle);

const jsErrors = utilsPlaywright.getJsErrors();
expect(jsErrors.length).to.equals(0);
expect(jsErrors.length).to.equals(0, jsErrors.map((error) => error.error).join(', '));
});

it('should go to \'Orders > Shopping carts\' page', async function () {
Expand All @@ -138,6 +138,6 @@ describe('BO - Orders', async () => {
expect(pageTitle).to.contains(boShoppingCartsPage.pageTitle);

const jsErrors = utilsPlaywright.getJsErrors();
expect(jsErrors.length).to.equals(0);
expect(jsErrors.length).to.equals(0, jsErrors.map((error) => error.error).join(', '));
});
});

0 comments on commit ec1b648

Please sign in to comment.