Use this skill to determine the correct data-testid selector for Playwright or end-to-end tests.
Determine the correct data-testid for a UI component following a strict priority order.
// Test uses: [data-testid="my-element"] // Component has only data-testid: <Component data-testid="my-element" /> // Test uses: [data-testid="my-element"]
Key Rule: Always use [data-testid="..."] in tests, whether the component has playwrightId or data-testid!
Return a simple string containing the resolved data-testid value.
If no match is found, return: "undefined-testid"