-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Labels
Description
Describe your motivation
Create TooltipElement for helping testing tooltips with TestBench
Describe the solution you'd like
Currently you need to use Selenium API's, something like
@Test
public void tooltipWorks() {
Actions action = new Actions(getDriver());
action.moveToElement(colorPicker).perform();
waitForElementPresent(By.tagName("vaadin-tooltip-overlay"));
TestBenchElement tooltip = $("vaadin-tooltip-overlay").first();
assertEquals("Correct tooltip was not found",
"This is color picker", tooltip.getText());
}
Probably it would be nicer and more intuitive if you could do something like this:
@Test
public void tooltipWorks() {
colorPicker.hover();
var tooltip = $(TooltipOverlayElement.class).waitForFirst();
assertEquals("Correct tooltip was not found",
"This is color picker", tooltip.getText());
}
Describe alternatives you've considered
No response
Additional context
No response