Skip to content

Commit 3071524

Browse files
committed
Merge branch 'trunk' of https://github.com/AdamPDotty/selenium into pr/14482
2 parents 9b8df0d + 20c12ad commit 3071524

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

java/test/org/openqa/selenium/support/locators/RelativeLocatorTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ void shouldBeAbleToFindElementsBelowAnother() {
8282
List<WebElement> elements = driver.findElements(with(tagName("p")).below(midpoint));
8383
List<String> ids =
8484
elements.stream().map(e -> e.getAttribute("id")).collect(Collectors.toList());
85-
8685
assertThat(ids).containsExactly("below");
8786
}
8887

@@ -242,6 +241,11 @@ void exerciseNearLocatorWithTagName() {
242241
// 5-8. Diagonally close (pythagoras sorting, with top row first
243242
// because of DOM insertion order)
244243
List<String> ids = seen.stream().map(e -> e.getAttribute("id")).collect(Collectors.toList());
244+
245+
assertThat(ids)
246+
.containsExactly(
247+
"top", "bottom", "left", "right", "topLeft", "topRight", "bottomLeft", "bottomRight");
248+
245249
assertThat(ids)
246250
.containsExactly(
247251
"top", "bottom", "left", "right", "topLeft", "topRight", "bottomLeft", "bottomRight");
@@ -300,6 +304,7 @@ void exerciseNearLocatorWithCssSelector() {
300304
// 5-8. Diagonally close (pythagoras sorting, with top row first
301305
// because of DOM insertion order)
302306
List<String> ids = seen.stream().map(e -> e.getAttribute("id")).collect(Collectors.toList());
307+
303308
assertThat(ids)
304309
.containsExactly(
305310
"top", "bottom", "left", "right", "topLeft", "topRight", "bottomLeft", "bottomRight");

0 commit comments

Comments
 (0)