(action: SessionAction)
| 88 | } |
| 89 | |
| 90 | function readSelectorChainExpression(action: SessionAction): string | undefined { |
| 91 | const selectorChain = |
| 92 | Array.isArray(action.result?.selectorChain) && |
| 93 | action.result.selectorChain.every((entry) => typeof entry === 'string') |
| 94 | ? (action.result.selectorChain as string[]) |
| 95 | : []; |
| 96 | return selectorChain.length > 0 ? selectorChain.join(' || ') : undefined; |
| 97 | } |
| 98 | |
| 99 | function isSelectorTargetingCommand(command: string): boolean { |
| 100 | return isTouchTargetCommand(command) || command === 'fill' || command === 'get'; |
no outgoing calls
no test coverage detected