mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix pw order completion check
This commit is contained in:
parent
2fabf125c1
commit
06e4ce4d45
1 changed files with 12 additions and 4 deletions
|
@ -23,7 +23,10 @@ async function purchaseSubscriptionFromCart(page) {
|
|||
|
||||
await fillCheckoutForm(page);
|
||||
|
||||
await page.locator('text=Sign up now').click();
|
||||
await Promise.all([
|
||||
page.waitForNavigation(),
|
||||
page.locator('text=Sign up now').click(),
|
||||
]);
|
||||
|
||||
await expectOrderReceivedPage(page);
|
||||
}
|
||||
|
@ -207,9 +210,11 @@ test.describe('Subscriber purchase a Subscription', () => {
|
|||
await loginIntoPaypal(popup);
|
||||
|
||||
await popup.getByText('Continue', { exact: true }).click();
|
||||
await popup.locator('text=Agree & Subscribe').click();
|
||||
|
||||
await page.waitForTimeout(10000);
|
||||
await Promise.all([
|
||||
page.waitForNavigation(),
|
||||
await popup.locator('text=Agree & Subscribe').click(),
|
||||
]);
|
||||
|
||||
await expectOrderReceivedPage(page);
|
||||
});
|
||||
|
@ -226,7 +231,10 @@ test.describe('Subscriber purchase a Subscription', () => {
|
|||
|
||||
await fillCheckoutForm(page);
|
||||
|
||||
await page.locator('text=Sign up now').click();
|
||||
await Promise.all([
|
||||
page.waitForNavigation(),
|
||||
page.locator('text=Sign up now').click(),
|
||||
]);
|
||||
|
||||
await expectOrderReceivedPage(page);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue