mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Add final review for blocks
This commit is contained in:
parent
b444c1ef55
commit
211c57b938
4 changed files with 35 additions and 29 deletions
|
@ -68,6 +68,18 @@ async function expectOrderReceivedPage(page) {
|
|||
await expect(title).toHaveText('Order received');
|
||||
}
|
||||
|
||||
async function completeBlockContinuation(page) {
|
||||
await expect(page.locator('#radio-control-wc-payment-method-options-ppcp-gateway')).toBeChecked();
|
||||
|
||||
await expect(page.locator('.component-frame')).toHaveCount(0);
|
||||
|
||||
await page.locator('.wc-block-components-checkout-place-order-button').click();
|
||||
|
||||
await page.waitForNavigation();
|
||||
|
||||
await expectOrderReceivedPage(page);
|
||||
}
|
||||
|
||||
test('PayPal button place order from Product page', async ({page}) => {
|
||||
|
||||
await page.goto(PRODUCT_URL);
|
||||
|
@ -127,8 +139,5 @@ test('PayPal express block', async ({page}) => {
|
|||
|
||||
await popup.locator('#payment-submit-btn').click();
|
||||
|
||||
await page.waitForNavigation();
|
||||
|
||||
const title = await page.locator('.entry-title');
|
||||
await expect(title).toHaveText('Order received');
|
||||
await completeBlockContinuation(page);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue