mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix locator
"Continue" can be "Continue as guest"
This commit is contained in:
parent
d12eea6a6e
commit
2fabf125c1
1 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ async function purchaseSubscriptionFromCart(page) {
|
|||
const popup = await openPaypalPopup(page);
|
||||
await loginIntoPaypal(popup);
|
||||
|
||||
await popup.locator('text=Continue').click();
|
||||
await popup.getByText('Continue', { exact: true }).click();
|
||||
await popup.locator('#confirmButtonTop').click();
|
||||
|
||||
await fillCheckoutForm(page);
|
||||
|
@ -206,7 +206,7 @@ test.describe('Subscriber purchase a Subscription', () => {
|
|||
const popup = await openPaypalPopup(page);
|
||||
await loginIntoPaypal(popup);
|
||||
|
||||
await popup.locator('text=Continue').click();
|
||||
await popup.getByText('Continue', { exact: true }).click();
|
||||
await popup.locator('text=Agree & Subscribe').click();
|
||||
|
||||
await page.waitForTimeout(10000);
|
||||
|
@ -221,7 +221,7 @@ test.describe('Subscriber purchase a Subscription', () => {
|
|||
const popup = await openPaypalPopup(page);
|
||||
await loginIntoPaypal(popup);
|
||||
|
||||
await popup.locator('text=Continue').click();
|
||||
await popup.getByText('Continue', { exact: true }).click();
|
||||
await popup.locator('#confirmButtonTop').click();
|
||||
|
||||
await fillCheckoutForm(page);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue