From 5128c261401fd3ac5888606409ca6e8e2954c03c Mon Sep 17 00:00:00 2001 From: Jon Lane Date: Mon, 21 Aug 2023 15:04:40 -0700 Subject: [PATCH] Force tests to run serially --- .../tests/taxes/tax-rates-crud.test.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/plugins/woocommerce/tests/api-core-tests/tests/taxes/tax-rates-crud.test.js b/plugins/woocommerce/tests/api-core-tests/tests/taxes/tax-rates-crud.test.js index 55c7753c45a..dbb2e8f04ea 100644 --- a/plugins/woocommerce/tests/api-core-tests/tests/taxes/tax-rates-crud.test.js +++ b/plugins/woocommerce/tests/api-core-tests/tests/taxes/tax-rates-crud.test.js @@ -1,21 +1,5 @@ const { test, expect } = require( '@playwright/test' ); - const { allUSTaxesExample } = require( '../../data' ); -const { API_BASE_URL } = process.env; - -const skipTestIfCI = () => { - const skipMessage = 'Skipping this test because running on CI'; - // !FIXME This test fails on CI because of differences in environment. - test.skip( () => { - const shouldSkip = API_BASE_URL != undefined; - - if ( shouldSkip ) { - console.log( skipMessage ); - } - - return shouldSkip; - }, skipMessage ); -}; /** * Tests for the WooCommerce API. @@ -24,9 +8,8 @@ const skipTestIfCI = () => { * @group taxes * */ -skipTestIfCI(); -test.describe( 'Tax Rates API tests: CRUD', () => { +test.describe.serial( 'Tax Rates API tests: CRUD', () => { let taxRateId; test.describe( 'Create a tax rate', () => {