Fix locator

"Continue" can be "Continue as guest"
This commit is contained in:
Alex P 2023-05-29 17:03:28 +03:00
parent d12eea6a6e
commit 2fabf125c1
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -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);