mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix test when popup starts with login
This commit is contained in:
parent
26e0e9b828
commit
e032edcc8c
1 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,11 @@ async function openPaypalPopup(page) {
|
|||
}
|
||||
|
||||
async function loginIntoPaypal(popup) {
|
||||
await popup.click("text=Log in");
|
||||
await Promise.any([
|
||||
popup.locator('[name="login_email"]'),
|
||||
popup.click("text=Log in"),
|
||||
]);
|
||||
|
||||
await popup.fill('[name="login_email"]', CUSTOMER_EMAIL);
|
||||
await popup.locator('#btnNext').click();
|
||||
await popup.fill('[name="login_password"]', CUSTOMER_PASSWORD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue