Description
Code
test("Filter price from low to high", async ({ page, loginPage }) => {
const filter = new FilterPrice(page);
filter.selectLowToHigh();
await expect(page.locator(".product_sort_container")).toHaveValue("lohi");
const prices = await filter.getPrices();
const sorted = [...prices].sort((a, b) => a - b);
expect(prices).toEqual(sorted);
});