Is there a shortcut for selecting elements with the data-testid
attribute in playwright-typescript?
await page.locator("[data-testid='YourTestId']").click()
I attempted to use
await page.locator("[data-testid='YourData-testid']").click()
I expected the element with the data-testid
attribute to be clicked, but it could not be located for the click action.