// Element is strictly to the left of reference (no overlap, no tolerance) awaitexpect(sidebar).toBeLeftOf(content);
Example
// Element can overlap reference by up to 10px awaitexpect(icon).toBeLeftOf(text, { tolerance:10, toleranceUnit:ToleranceUnit.Pixels });
Example
// Element can overlap reference by up to 5% of reference width awaitexpect(label).toBeLeftOf(input, { tolerance:5, toleranceUnit:ToleranceUnit.Percent });
Asserts that an element is positioned to the left of another element.
The element passes if its right edge is at or to the left of the left edge of the reference, within the specified tolerance.