Skip to content

Commit cc143ac

Browse files
committed
test: change the way of detecting tooltip due to changes in 24.2.0
(cherry picked from commit fcafb21)
1 parent f8319ad commit cc143ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/org/vaadin/addons/taefi/component/ToggleButtonGroupIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,13 @@ private Optional<TestBenchElement> getTooltipFor(WebElement element) {
281281
if (tooltipId == null) {
282282
return Optional.empty();
283283
}
284-
List<TestBenchElement> tooltips = $("vaadin-tooltip-overlay").all();
284+
List<TestBenchElement> tooltips = $("vaadin-tooltip").all();
285285
if (tooltips.isEmpty()) {
286286
return Optional.empty();
287287
}
288288
return tooltips.stream()
289-
.filter(testBenchElement -> testBenchElement.getAttribute("id").equals(tooltipId))
289+
.map(tooltip -> tooltip.findElement(By.tagName("div")))
290+
.filter(div -> div.getAttribute("id").equals(tooltipId))
290291
.findFirst();
291292
}
292293

0 commit comments

Comments
 (0)