mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Scroll to paypal frame in playwright
Looks like it may not happen automatically
This commit is contained in:
parent
66d32229b7
commit
715e3d4a92
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ test('PayPal button place order from Product page', async ({page}) => {
|
|||
|
||||
await page.goto(PRODUCT_URL);
|
||||
|
||||
await page.locator('.component-frame').scrollIntoViewIfNeeded();
|
||||
|
||||
const [popup] = await Promise.all([
|
||||
page.waitForEvent('popup'),
|
||||
page.frameLocator('.component-frame').locator('[data-funding-source="paypal"]').click(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue