MCPcopy Index your code
hub / github.com/NativeScript/nativescript-angular / isAbove

Function isAbove

e2e/renderer/e2e/helpers/location.ts:4–10  ·  view source on GitHub ↗
(first: UIElement, second: UIElement)

Source from the content-addressed store, hash-verified

2import { UIElement } from "nativescript-dev-appium";
3
4export 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
12export const isOnTheLeft = async (first: UIElement, second: UIElement) => {
13

Callers 9

checkAppendedCorrectlyFunction · 0.90
checkCorrectOrderAllFunction · 0.90
elementIsAboveFunction · 0.90
ngfor.e2e-spec.tsFile · 0.90
checkAppendedCorrectlyFunction · 0.90
checkCorrectOrderAllFunction · 0.90
ngif.e2e-spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected