Update scenario shopper can pay his order
This commit is contained in:
parent
98823ba8d0
commit
50d601355c
|
@ -37,8 +37,10 @@ const runMyAccountPayOrderTest = () => {
|
|||
it('allows customer to pay for his order in my account', async () => {
|
||||
await shopper.login();
|
||||
await shopper.goToOrders();
|
||||
await expect(page.url()).toMatch('my-account/orders');
|
||||
await expect(page).toMatchElement('h1', {text: 'Orders'});
|
||||
await expect(page).toClick('.wc_payment_method woocommerce-button button pay', {text: 'Pay'});
|
||||
await expect(page).toMatchElement('.entry-title', {text: 'Pay for order'});
|
||||
await shopper.placeOrder();
|
||||
await expect(page).toMatch('Order received');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue