(locator, key)
| 3586 | } |
| 3587 | |
| 3588 | function toLocatorConfig(locator, key) { |
| 3589 | const matchedLocator = new Locator(locator, key) |
| 3590 | if (matchedLocator.locator) return matchedLocator.locator |
| 3591 | return { [key]: matchedLocator.value } |
| 3592 | } |
| 3593 | |
| 3594 | function buildRoleSelector(resolved) { |
| 3595 | return `::-p-aria([role="${resolved.role}"])` |