From 9ff312247734da8d9e3db54d6f267f9ba396ac2a Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Wed, 3 Mar 2021 12:25:24 -0400 Subject: [PATCH] add group api test to run all api tests --- tests/e2e/core-tests/specs/api/grouped-product.test.js | 2 +- tests/e2e/core-tests/specs/index.js | 1 + .../rest-api/{grouped-product.test.js => grouped-product.js} | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename tests/e2e/specs/rest-api/{grouped-product.test.js => grouped-product.js} (100%) diff --git a/tests/e2e/core-tests/specs/api/grouped-product.test.js b/tests/e2e/core-tests/specs/api/grouped-product.test.js index 11dea1ba7a8..369f2d65feb 100644 --- a/tests/e2e/core-tests/specs/api/grouped-product.test.js +++ b/tests/e2e/core-tests/specs/api/grouped-product.test.js @@ -71,7 +71,7 @@ const runGroupedProductAPITest = () => { expect( response.data ).toEqual( expect.objectContaining( rawProperties ) ); }); - it('can retrieve a transformed external product', async () => { + it('can retrieve a transformed grouped product', async () => { // Read product via the repository. const transformed = await repository.read( product.id ); expect( transformed ).toEqual( expect.objectContaining( baseGroupedProduct ) ); diff --git a/tests/e2e/core-tests/specs/index.js b/tests/e2e/core-tests/specs/index.js index c35be68e428..e2ab39da8f5 100644 --- a/tests/e2e/core-tests/specs/index.js +++ b/tests/e2e/core-tests/specs/index.js @@ -74,6 +74,7 @@ const runMerchantTests = () => { const runApiTests = () => { runExternalProductAPITest(); + runGroupedProductAPITest(); runVariableProductAPITest(); runCouponApiTest(); } diff --git a/tests/e2e/specs/rest-api/grouped-product.test.js b/tests/e2e/specs/rest-api/grouped-product.js similarity index 100% rename from tests/e2e/specs/rest-api/grouped-product.test.js rename to tests/e2e/specs/rest-api/grouped-product.js