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); +});