public Action[] getActions(Object target, Object sender) {
return new Action[] { new Action("action1"),
new Action("action2"), new Action("action3"),
- new Action("action4") };
+ new Action("action4"), new Action("action5"),
+ new Action("action6"), new Action("action7"),
+ new Action("action8"), new Action("action9"),
+ new Action("action10"), new Action("action11"),
+ new Action("action12"), new Action("action13"),
+ new Action("action14") };
}
});
BeanItemContainer<Bean> container = new BeanItemContainer<>(Bean.class);
// Chrome version does not necessarily match the desired version
// because of auto updates...
browserIdentifier = getExpectedUserAgentString(
- getDesiredCapabilities()) + "68";
+ getDesiredCapabilities()) + "69";
} else if (BrowserUtil.isFirefox(getDesiredCapabilities())) {
browserIdentifier = getExpectedUserAgentString(
getDesiredCapabilities()) + "58";
throws IOException, InterruptedException {
openTestURL();
- // wait until loading indicator becomes invisible
- WebElement loadingIndicator = findElement(
- By.className("v-loading-indicator"));
- Pattern pattern = Pattern.compile("display: *none;");
- waitUntil(driver -> pattern
- .matcher(loadingIndicator.getAttribute("style")).find());
+ waitUntilLoadingIndicatorNotVisible();
compareScreen("dateFieldStates");
}
@Test
public void testFor1pxDifference() throws Exception {
openTestURL();
- sleep(500);
+ waitUntilLoadingIndicatorNotVisible();
compareScreen("onepixdifference");
}
@Test
public void lookAndFeel() throws Exception {
GridCellElement ritaBirthdate = grid.getCell(2, 3);
+ waitUntilLoadingIndicatorNotVisible();
compareScreen("grid");
// Open editor row
new Actions(getDriver()).doubleClick(ritaBirthdate).perform();
+ sleep(200);
compareScreen("editorrow");
}
@Test
public void checkScreenshot_initial() throws IOException {
openTestURL();
+ waitUntilLoadingIndicatorNotVisible();
+
compareScreen("allVaadinIcons");
}
@Test
public void checkScreenshot_changeIcon() throws IOException {
openTestURL();
+ waitUntilLoadingIndicatorNotVisible();
$(ButtonElement.class).first().click();
@Test
public void comboBoxItemIconsOnKeyboardNavigation() throws Exception {
openTestURL();
+ waitUntilLoadingIndicatorNotVisible();
+
ComboBoxElement comboBox = $(ComboBoxElement.class).first();
// No initial value.
@Test
public void disabledGrid() throws IOException {
openTestURL();
+ waitUntilLoadingIndicatorNotVisible();
$(ButtonElement.class).caption("Disable").first().click();
@Test
public void testValoMenuResponsiveParentSize() throws Exception {
openTestURL();
+ waitUntilLoadingIndicatorNotVisible();
List<WebElement> menus = findElements(
com.vaadin.testbench.By.className(MENU_STYLENAME));
WebElement wideMenu = menus.get(WIDE_ELEMENT_INDEX);
int wideWidth = wideMenu.getSize().width;
assertThat(wideWidth, equalTo(WIDE_WIDTH));
+ sleep(200);
compareScreen("defaultMenuWidths");
}
@Test
public void testValoMenuResponsiveHover() throws Exception {
openTestURL(COLLAPSED_MENU_TEST_PARAM);
+ waitUntilLoadingIndicatorNotVisible();
// Make sure mouse is not hovering the menu
new Actions(getDriver()).moveToElement($(LabelElement.class).first())
Actions actions = new Actions(getDriver());
actions.moveToElement(toggle);
actions.perform();
+ sleep(200);
compareScreen("expandedMenu");
}
@Test
public void ascendingIndicatorIsShown() throws IOException {
openTestURL();
+ waitUntilLoadingIndicatorNotVisible();
clickOnCellHeader();
@Test
public void descendingIndicatorIsShown() throws IOException {
openTestURL();
+ waitUntilLoadingIndicatorNotVisible();
clickOnCellHeader();
clickOnSortIndicator();
public void tabs() throws Exception {
openTestURL("test");
open("Tabs <span class=\"valo-menu-badge\">123</span>", "Tabs");
+ sleep(200);
compareScreen("tabs");
}
check("Closable");
check("Disable tabs");
check("Overflow");
+ sleep(200);
compareScreen("tabs-closable-disabled");
}
// Framed option is checked by default so we are actually unchecking
check("Framed");
check("Overflow");
+ sleep(200);
compareScreen("tabs-closable-unframed");
}
openTestURL("test");
open("Tabs <span class=\"valo-menu-badge\">123</span>", "Tabs");
check("Right-aligned tabs");
+ sleep(200);
compareScreen("tabs-align-right");
}
openTestURL("test");
open("Tabs <span class=\"valo-menu-badge\">123</span>", "Tabs");
check("Centered tabs");
+ sleep(200);
compareScreen("tabs-align-center");
}
openTestURL("test");
open("Tabs <span class=\"valo-menu-badge\">123</span>", "Tabs");
check("Icons on top");
+ sleep(200);
compareScreen("tabs-icons-on-top");
}
check("Equal-width tabs");
check("Padded tabbar");
check("Compact");
+
compareScreen("tabs-equal-compact-padded");
}