(instance: TestInstance, name?: TextMatch)
| 37 | }; |
| 38 | |
| 39 | const matchAccessibleNameIfNeeded = (instance: TestInstance, name?: TextMatch) => { |
| 40 | if (name == null) return true; |
| 41 | |
| 42 | const accessibleName = computeAccessibleName(instance); |
| 43 | return matches(name, accessibleName); |
| 44 | }; |
| 45 | |
| 46 | const matchAccessibleStateIfNeeded = (instance: TestInstance, options?: ByRoleOptions) => { |
| 47 | return options != null ? matchAccessibilityState(instance, options) : true; |
no test coverage detected
searching dependent graphs…