Skip to content

Commit

Permalink
Remove unnecessary console.warn statements added in #9121 (#9242)
Browse files Browse the repository at this point in the history
  • Loading branch information
anu-rock authored Aug 13, 2024
1 parent 4fee695 commit 788d571
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 22 deletions.
4 changes: 4 additions & 0 deletions changelog/fix-remove-console-warns
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Remove unnecessary console.warn statements added in #9121.
4 changes: 1 addition & 3 deletions tests/e2e/config/jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ beforeAll( async () => {
page.on( 'dialog', async function ( dialog ) {
try {
await dialog.accept();
} catch ( err ) {
console.warn( err.message );
}
} catch ( err ) {}
} );
setTestTimeouts();
await setupBrowser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ describeif( RUN_SUBSCRIPTIONS_TESTS )(
page.on( 'dialog', async function ( dialog ) {
try {
await dialog.accept();
} catch ( err ) {
console.warn( err.message );
}
} catch ( err ) {}
} );
await merchant.logout();
} );
Expand All @@ -93,9 +91,7 @@ describeif( RUN_SUBSCRIPTIONS_TESTS )(
page.on( 'dialog', async ( dialog ) => {
try {
await dialog.accept();
} catch ( err ) {
console.warn( err.message );
}
} catch ( err ) {}
} ),
uiUnblocked(),
page.waitForNavigation( { waitUntil: 'networkidle0' } ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ describe( 'Disputes > Submit winning dispute', () => {
page.on( 'dialog', async function ( dialog ) {
try {
await dialog.accept();
} catch ( err ) {
console.warn( err.message );
}
} catch ( err ) {}
} );
await merchant.logout();
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ describe( 'Order > Full refund', () => {
page.on( 'dialog', async function ( dialog ) {
try {
await dialog.accept();
} catch ( err ) {
console.warn( err.message );
}
} catch ( err ) {}
} );
await merchant.logout();
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ describe.each( dataTable )(
page.on( 'dialog', async function ( dialog ) {
try {
await dialog.accept();
} catch ( err ) {
console.warn( err.message );
}
} catch ( err ) {}
} );
} );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ describe( 'Order > Refund Failure', () => {
page.on( 'dialog', async function ( dialog ) {
try {
await dialog.accept();
} catch ( err ) {
console.warn( err.message );
}
} catch ( err ) {}
} );
await merchant.logout();
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ describe( 'Klarna checkout', () => {
} );
readyToBuy = true;
} catch ( err ) {
console.warn( err );
readyToBuy = false;
}

Expand Down

0 comments on commit 788d571

Please sign in to comment.