Skip to content

Commit

Permalink
E2E: apply fix formerchant-orders-status-change in trunk (#8343)
Browse files Browse the repository at this point in the history
Co-authored-by: deepakpathania <[email protected]>
  • Loading branch information
mgascam and deepakpathania authored Mar 7, 2024
1 parent a4f9b28 commit 3d6939d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { merchant, shopper, uiUnblocked } = require( '@woocommerce/e2e-utils' );

const orderIdSelector = '.woocommerce-order-overview__order.order > strong';
const orderStatusDropdownSelector = 'select[name="order_status"]';
const cancelModalSelector = 'div.cancel-confirmation-modal';
const cancelModalSelector = 'div.wcpay-confirmation-modal';
const refundModalSelector = 'div.refund-confirmation-modal';
const refundCancelSelector =
'.refund-confirmation-modal .wcpay-confirmation-modal__footer .is-secondary';
Expand Down Expand Up @@ -99,6 +99,8 @@ describe( 'Order > Status Change', () => {
// Click on Cancel order.
await expect( page ).toClick( 'button', { text: 'Cancel order' } );

await page.waitForNavigation( { waitUntil: 'networkidle0' } );

// Verify the order status is set to cancel.
const selectedOrderStatus = await page.$(
selectedOrderStatusSelector
Expand Down

0 comments on commit 3d6939d

Please sign in to comment.