(first: UIElement, second: UIElement)
| 2 | import { UIElement } from "nativescript-dev-appium"; |
| 3 | |
| 4 | export const isAbove = async (first: UIElement, second: UIElement) => { |
| 5 | |
| 6 | const { y: firstY } = await first.location(); |
| 7 | const { y: secondY } = await second.location(); |
| 8 | |
| 9 | assert.isTrue(firstY < secondY); |
| 10 | } |
| 11 | |
| 12 | export const isOnTheLeft = async (first: UIElement, second: UIElement) => { |
| 13 |
no outgoing calls
no test coverage detected