From 8ecb3f9f6be4a399e57028c8925e313e3e41e4ed Mon Sep 17 00:00:00 2001 From: Claudiu Iacob Date: Mon, 15 Jan 2024 17:29:55 +0200 Subject: [PATCH] Verify if 4 products are under Hot sellers category -test created --- tests/gearSection/hot_sellers_products_count.spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/gearSection/hot_sellers_products_count.spec.js diff --git a/tests/gearSection/hot_sellers_products_count.spec.js b/tests/gearSection/hot_sellers_products_count.spec.js new file mode 100644 index 0000000..555a8d6 --- /dev/null +++ b/tests/gearSection/hot_sellers_products_count.spec.js @@ -0,0 +1,9 @@ +import { test, expect } from "@playwright/test"; + +test("Verify if 4 products are under Hot sellers category", async ({ + page, +}) => { + await page.goto("https://magento.softwaretestingboard.com/gear.html"); + const products = await page.locator(".product-image-photo").count(); + await expect(products).toBe(4); +});