Skip to content

Commit

Permalink
add return
Browse files Browse the repository at this point in the history
  • Loading branch information
PollySt committed Jan 19, 2024
1 parent b5e3d61 commit 98bd053
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/tests/add-to-cart.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 98bd053

Please sign in to comment.