The product list has three cards. Only one is on sale — it carries a SALE badge. Your job is to find that card and click it.
Playwright’s filter() method lets you narrow a locator result by text. You can select all cards and then filter to the one that contains the SALE text.
page is already available.
Targeting one element among many that share the same class is the most common use of
.filter().