Right now we need to repeat lines of code to get to the element with more than one attribute.
We would like to have an implementation that will help us with defining for example elements and then filter them by additional attribute:
[Example of what we want]:

[What we have?]
Right now we need to duplicate part of the standardProducts:
async chooseStandardProduct(dataProductName: string): Promise<void> {
await this.page.locator(`[e2e-target-name="standard"][e2e-target-name="${dataProductName}"`]).click()
}
Thanks to that solution we can decrease code duplication. Similar solution already have testcafe.
Right now we need to repeat lines of code to get to the element with more than one attribute.
We would like to have an implementation that will help us with defining for example elements and then filter them by additional attribute:
[Example of what we want]:
[What we have?]
Right now we need to duplicate part of the standardProducts:
Thanks to that solution we can decrease code duplication. Similar solution already have testcafe.