Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility testing with Woo 9.3 #250

Merged
merged 3 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/e2e/specs/admin/edit-settings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test.describe( 'Verify payfast setting - @foundational', async () => {

test( 'Checkout Block: Payment method should not available when disabled', async () => {
await addProductToCart( {page: checkoutBlockPage, productUrl: '/product/simple-product/'} );
await checkoutBlockPage.goto( '/checkout/' );
await checkoutBlockPage.goto( '/checkout/' , { waitUntil: 'networkidle' });

const paymentMethodLocator = await checkoutBlockPage.locator( 'label.wc-block-components-radio-control__option', {
has: checkoutBlockPage.locator( 'input[value="payfast"]' )
Expand Down Expand Up @@ -78,7 +78,7 @@ test.describe( 'Verify payfast setting - @foundational', async () => {

test( 'Checkout Block: Verify method title & description', async () => {
await addProductToCart( {page: checkoutBlockPage, productUrl: '/product/simple-product/'} );
await checkoutBlockPage.goto( '/checkout/' );
await checkoutBlockPage.goto( '/checkout/' , { waitUntil: 'networkidle' });

const paymentMethodLocator = await checkoutBlockPage.locator(
'label[for="radio-control-wc-payment-method-options-payfast"]' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test.describe( 'Verify Payfast Cancelled One-Time Payment Process - @foundationa

const page = checkoutBlock;
await addProductToCart( {page, productUrl:'/product/simple-product/'} );
await page.goto('/checkout/');
await page.goto('/checkout/', { waitUntil: 'networkidle' });
await fillBillingDetails(page, customer.billing, true);

// Check if Payfast payment method is visible & place order
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/payment-flow/one-time-payment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test.describe( 'Verify Payfast One-Time Payment Process - @foundational', async
await clearEmailLogs( {page: adminPage} );

await addProductToCart( {page: checkoutBlock, productUrl:'/product/simple-product/'} );
await checkoutBlock.goto('/checkout/');
await checkoutBlock.goto('/checkout/' , { waitUntil: 'networkidle' });
await fillBillingDetails(checkoutBlock, customer.billing, true);

// Check if Payfast payment method is visible & place order
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/payment-flow/subscription-payment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test.describe( 'Verify Payfast Subscription Payment Process - @foundational', as

await checkoutBlock.goto( '/product/simple-subscription-product/' );
await checkoutBlock.click( 'text=Sign up now' );
await checkoutBlock.goto( '/checkout/' );
await checkoutBlock.goto( '/checkout/', { waitUntil: 'networkidle' });
await fillBillingDetails(checkoutBlock, customer.billing, true);

// Check if Payfast payment method is visible & place order
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export async function processOneTimeOrderWithBlockCheckout( {page, productUrl} )
let waitForURL;

await addProductToCart( {page, productUrl} );
await page.goto( '/checkout/' );
await page.goto( '/checkout/' , { waitUntil: 'networkidle' });
await fillBillingDetails(page, customer.billing, true);

// Check if Payfast payment method is visible & place order
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-gateway-payfast.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Version: 1.6.6
* Requires at least: 6.4
* Tested up to: 6.6
* WC requires at least: 9.0
* WC tested up to: 9.2
* WC requires at least: 9.1
* WC tested up to: 9.3
* Requires PHP: 7.4
* PHP tested up to: 8.3
*
Expand Down
Loading