From 64cadfdd16dcd14ee21392ac600982b8894b0527 Mon Sep 17 00:00:00 2001 From: Misha Utkin Date: Fri, 15 Nov 2024 16:58:01 +0100 Subject: [PATCH] Updates for `surcharge` tests - Fixed `surcharge` test title - Removed `surcharge` project from `playwright.config.ts` (Surcharge tests need to be divided by type to be executed in parallel) --- tests/qa/playwright.config.ts | 7 ------- .../tests/03-plugin-settings/surcharge/surcharge.spec.ts | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/qa/playwright.config.ts b/tests/qa/playwright.config.ts index 88fdd78b..3124a835 100644 --- a/tests/qa/playwright.config.ts +++ b/tests/qa/playwright.config.ts @@ -99,7 +99,6 @@ export default defineConfig( { dependencies: [ 'setup-woocommerce' ], fullyParallel: false, testIgnore: [ - 'surcharge.spec.ts', 'eur-checkout-classic.spec.ts', 'eur-checkout.spec.ts', 'eur-pay-for-order.spec.ts', @@ -115,12 +114,6 @@ export default defineConfig( { ], fullyParallel: false, }, - { - name: 'surcharge', - dependencies: [ 'setup-mollie', 'setup-pages-classic' ], - testMatch: [ 'surcharge.spec.ts' ], - fullyParallel: true, - }, { name: 'transaction-eur-classic', dependencies: [ 'setup-mollie', 'setup-pages-classic' ], diff --git a/tests/qa/tests/03-plugin-settings/surcharge/surcharge.spec.ts b/tests/qa/tests/03-plugin-settings/surcharge/surcharge.spec.ts index 62db6836..750766d0 100644 --- a/tests/qa/tests/03-plugin-settings/surcharge/surcharge.spec.ts +++ b/tests/qa/tests/03-plugin-settings/surcharge/surcharge.spec.ts @@ -44,7 +44,7 @@ for ( const surcharge of allTests ) { const gateway = gateways[ tested.gateway ]; const country = gateway.country; - test( `${ tested.testId } | ${ surcharge.title } "${ gateway.name } "`, async ( { + test( `${ tested.testId } | ${ surcharge.title } "${ gateway.name }"`, async ( { mollieApi, utils, classicCheckout,