From 98bd0532ff67dbc4ba16d6bd1de194ccd1ecf644 Mon Sep 17 00:00:00 2001 From: PollySt Date: Fri, 19 Jan 2024 17:37:06 +0200 Subject: [PATCH] add return --- e2e/tests/add-to-cart.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e2e/tests/add-to-cart.spec.ts b/e2e/tests/add-to-cart.spec.ts index 627dcf24..65e3783b 100644 --- a/e2e/tests/add-to-cart.spec.ts +++ b/e2e/tests/add-to-cart.spec.ts @@ -10,6 +10,7 @@ test.describe('Add to cart', () => { test('User is able to add product to cart', async ({ page, collectionsPage, shoppingCart, productPage }) => { if (!PRODUCT_NAME) { test.skip(!PRODUCT_NAME, 'PLAYWRIGHT_PRODUCT_NAME was not defined'); + return; } await collectionsPage.getProductByName(PRODUCT_NAME).click(); @@ -27,6 +28,7 @@ test.describe('Add to cart', () => { test('Checkout phase', async ({ page, shoppingCart, collectionsPage, productPage }) => { if (!PRODUCT_NAME) { test.skip(!PRODUCT_NAME, 'PLAYWRIGHT_PRODUCT_NAME was not defined'); + return; } await collectionsPage.getProductByName(PRODUCT_NAME).click();