diff --git a/assets/js/frontend/blocks/checkout/bh-wc-bitcoin-gateway-blocks-checkout.js b/assets/js/frontend/blocks/checkout/bh-wc-bitcoin-gateway-blocks-checkout.js index cf8ce19..0c98ec6 100644 --- a/assets/js/frontend/blocks/checkout/bh-wc-bitcoin-gateway-blocks-checkout.js +++ b/assets/js/frontend/blocks/checkout/bh-wc-bitcoin-gateway-blocks-checkout.js @@ -1,3 +1,6 @@ +/** + * External dependencies + */ import { registerPaymentMethod } from '@woocommerce/blocks-registry'; import { decodeEntities } from '@wordpress/html-entities'; import { getSetting } from '@woocommerce/settings'; diff --git a/tests/e2e/config/jest.config.js b/tests/e2e/config/jest.config.js index 046ecbe..f62454f 100644 --- a/tests/e2e/config/jest.config.js +++ b/tests/e2e/config/jest.config.js @@ -6,5 +6,3 @@ const jestConfig = useE2EJestConfig( { } ); module.exports = jestConfig; - -defaultJson = 'default.json'; diff --git a/tests/e2e/specs/bh-wc-bitcoin-gateway/configure-bitcoin-xpub.before.js b/tests/e2e/specs/bh-wc-bitcoin-gateway/configure-bitcoin-xpub.before.js index 0e764b5..b865682 100644 --- a/tests/e2e/specs/bh-wc-bitcoin-gateway/configure-bitcoin-xpub.before.js +++ b/tests/e2e/specs/bh-wc-bitcoin-gateway/configure-bitcoin-xpub.before.js @@ -4,7 +4,7 @@ const { clearAndFillInput, } = require( '@woocommerce/e2e-utils' ); -const configureBitcoinXpub = async ( dispatch ) => { +const configureBitcoinXpub = async () => { await merchant.openSettings( 'checkout', 'bitcoin_gateway' ); // TODO: read from env.secret. diff --git a/tests/e2e/specs/bh-wc-bitcoin-gateway/place-bitcoin-order.before.js b/tests/e2e/specs/bh-wc-bitcoin-gateway/place-bitcoin-order.before.js index adc4675..85931f0 100644 --- a/tests/e2e/specs/bh-wc-bitcoin-gateway/place-bitcoin-order.before.js +++ b/tests/e2e/specs/bh-wc-bitcoin-gateway/place-bitcoin-order.before.js @@ -3,7 +3,7 @@ const { shopper, uiUnblocked } = require( '@woocommerce/e2e-utils' ); const config = require( 'config' ); const simpleProductName = config.get( 'products.simple.name' ); -const placeBitcoinOrderBefore = async ( dispatch ) => { +const placeBitcoinOrderBefore = async () => { await shopper.goToShop(); await shopper.addToCartFromShopPage( simpleProductName ); diff --git a/tests/e2e/specs/bh-wc-bitcoin-gateway/place-order-block-checkout.test.js b/tests/e2e/specs/bh-wc-bitcoin-gateway/place-order-block-checkout.test.js index 2a63ba1..5cd30af 100644 --- a/tests/e2e/specs/bh-wc-bitcoin-gateway/place-order-block-checkout.test.js +++ b/tests/e2e/specs/bh-wc-bitcoin-gateway/place-order-block-checkout.test.js @@ -1,3 +1,6 @@ +/** + * External dependencies + */ import { expect } from '@jest/globals'; const { diff --git a/tests/e2e/specs/bh-wc-bitcoin-gateway/refresh-details.test.js b/tests/e2e/specs/bh-wc-bitcoin-gateway/refresh-details.test.js index 30af1e0..ae47443 100644 --- a/tests/e2e/specs/bh-wc-bitcoin-gateway/refresh-details.test.js +++ b/tests/e2e/specs/bh-wc-bitcoin-gateway/refresh-details.test.js @@ -1,3 +1,8 @@ +/** + * External dependencies + */ +import { expect } from '@jest/globals'; + // Fix bugs when refreshing the payment details box (i.e. looking for new transactions). // 1. Place an order, arrive on the Thank You page, press refresh. @@ -6,8 +11,6 @@ // 2. Place an order, arrive on the Thank You page, press refresh twice. // First refresh is overwriting data needed for subsequent requests. -import { expect } from '@jest/globals'; - const { uiUnblocked, merchant,