mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix paypal login in playwright
#email can be the field on the page before the login form
This commit is contained in:
parent
d99c59ef75
commit
b388d2320c
1 changed files with 3 additions and 3 deletions
|
@ -41,14 +41,14 @@ test('PayPal button place order from Product page', async ({page}) => {
|
|||
page.frameLocator('.component-frame').locator('[data-funding-source="paypal"]').click(),
|
||||
]);
|
||||
await popup.waitForLoadState();
|
||||
|
||||
await popup.click("text=Log in");
|
||||
await popup.fill('#email', CUSTOMER_EMAIL);
|
||||
await popup.fill('[name="login_email"]', CUSTOMER_EMAIL);
|
||||
await popup.locator('#btnNext').click();
|
||||
await popup.fill('#password', CUSTOMER_PASSWORD);
|
||||
await popup.fill('[name="login_password"]', CUSTOMER_PASSWORD);
|
||||
await popup.locator('#btnLogin').click();
|
||||
|
||||
await popup.locator('#payment-submit-btn').click();
|
||||
|
||||
await fillCheckoutForm(page);
|
||||
|
||||
await Promise.all([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue