Skip to content

Commit fcafb21

Browse files
committed
test: change the way of detecting tooltip due to changes in 24.2.0
1 parent bc24075 commit fcafb21

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

+3-2
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)