Skip to content

Commit

Permalink
chore: revert changes in e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Apr 19, 2023
1 parent deb366a commit b980454
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -82,7 +82,7 @@ test.describe.serial( 'WooCommerce Orders > Refund an order', () => {
// Do the refund
page.on( 'dialog', ( dialog ) => dialog.accept() );
await page.click( '.do-manual-refund', {
waitUntil: 'networkidle',
waitForLoadState: 'networkidle',
} );

// Verify the product line item shows the refunded quantity and amount
Expand Down Expand Up @@ -115,7 +115,7 @@ test.describe.serial( 'WooCommerce Orders > Refund an order', () => {
page.on( 'dialog', ( dialog ) => dialog.accept() );
await page.click( 'a.delete_refund', {
force: true,
waitUntil: 'networkidle',
waitForLoadState: 'networkidle',
} ); // have to force it because not visible

// Verify the refunded row item is no longer showing
Expand Down Expand Up @@ -223,7 +223,7 @@ test.describe( 'WooCommerce Orders > Refund and restock an order item', () => {
await page.fill( '#refund_reason', 'No longer wanted' );
page.on( 'dialog', ( dialog ) => dialog.accept() );
await page.click( '.do-manual-refund', {
waitUntil: 'networkidle',
waitForLoadState: 'networkidle',
} );

// Verify restock system note was added
Expand Down
Expand Up @@ -83,7 +83,7 @@ for ( const currentPage of wcPages ) {

await page.click(
`li.wp-menu-open > ul.wp-submenu > li:has-text("${ currentPage.subpages[ i ].name }")`,
{ waitUntil: 'networkidle' }
{ waitForLoadState: 'networkidle' }
);

await expect(
Expand Down

0 comments on commit b980454

Please sign in to comment.