(type: string)
| 91 | * (e.g. iOS XCUITest) re-read at the element can recover fuller text than the snapshot node. |
| 92 | */ |
| 93 | export function prefersValueForReadableText(type: string): boolean { |
| 94 | const normalized = normalizeType(type); |
| 95 | return ( |
| 96 | normalized.includes('textfield') || |
| 97 | normalized.includes('securetextfield') || |
| 98 | normalized.includes('searchfield') || |
| 99 | normalized.includes('edittext') || |
| 100 | normalized.includes('textview') || |
| 101 | normalized.includes('textarea') |
| 102 | ); |
| 103 | } |
| 104 | |
| 105 | function isMeaningfulReadableIdentifier(value: string): boolean { |
| 106 | if (!value) { |
no test coverage detected