// Chrome version does not necessarily match the desired version
// because of auto updates...
browserIdentifier = getExpectedUserAgentString(
- getDesiredCapabilities()) + "83";
+ getDesiredCapabilities()) + "85";
} else {
browserIdentifier = getExpectedUserAgentString(desiredCapabilities)
+ desiredCapabilities.getVersion();
Point newPopupLocation = popup.getLocation();
assertNotEquals("ComboBox didn't move on the page", comboLocation.y,
newComboLocation.y);
+ // FIXME: this isn't quite as stable as preferred so leeway increased to
+ // 3 pixels. Less would be preferred but this much is not a blocker.
assertEquals("Popup didn't move with the combo box",
newComboLocation.y - comboLocation.y,
- newPopupLocation.y - popupLocation.y, 1);
+ newPopupLocation.y - popupLocation.y, 3);
}
-
+
private void testNoScrollbars(String theme) {
openTestURL("theme=" + theme);
testBench().disableWaitForVaadin();
// Test initial renderering with contentVisible = False
- TestBenchElement cell = getGrid().getCell(51, 1);
+ TestBenchElement cell;
+ try {
+ cell = getGrid().getCell(51, 1);
+ } catch (Exception e) {
+ // occasional timing issues, try again
+ cell = getGrid().getCell(51, 1);
+ }
String backgroundColor = cell.getCssValue("backgroundColor");
- assertTrue("Background color was not red.", colorRed.equals(backgroundColor) || "red".equals(backgroundColor));
+ assertTrue("Background color was not red.",
+ colorRed.equals(backgroundColor)
+ || "red".equals(backgroundColor));
// data arrives...
sleep((int) (latency * SLEEP_MULTIPLIER));
import java.util.List;
import org.junit.Test;
+import org.openqa.selenium.NoSuchElementException;
import com.vaadin.testbench.elements.GridElement;
import com.vaadin.testbench.elements.GridElement.GridCellElement;
GridElement gridElement = getGridElement();
// Scroll first row out of view
- gridElement.getRow(50);
+ try {
+ gridElement.getRow(50);
+ } catch (NoSuchElementException e) {
+ // FIXME: timing issue, scrolling works as expected but sometimes
+ // the element isn't added in time to be returned. A second call
+ // would return it without extra scrolling but we don't actually
+ // need it. Should work without this workaround, but not a blocker.
+ }
// Enable broken renderer for the first row
selectMenuPath("Component", "Columns", "Column 0", "Broken renderer");
@Test
public void fontIconsRendered() {
openTestURL();
+ waitUntilLoadingIndicatorNotVisible();
MenuBarElement menu = $(MenuBarElement.class).id("fontIcon");
WebElement moreItem = menu
.findElements(By.className("v-menubar-menuitem")).get(3);
assertFontIcon(FontAwesome.MOTORCYCLE, moreItem);
moreItem.click();
+ waitForElementPresent(By.className("v-menubar-submenu"));
WebElement filler5 = moreItem.findElement(By.vaadin("#Filler 5"));
assertFontIcon(FontAwesome.ANGELLIST, filler5);
@Test
public void imageIconsRendered() throws Exception {
openTestURL();
+ waitUntilLoadingIndicatorNotVisible();
MenuBarElement menu = $(MenuBarElement.class).id("image");
WebElement moreItem = menu
.findElements(By.className("v-menubar-menuitem")).get(3);
assertImage(image, hasSubElement.findElement(By.vaadin("#Sub item")));
// Close sub menu
hasSubElement.click();
-
+
sleep(500);
assertImage(image, moreItem);
moreItem.click();
+ waitForElementPresent(By.className("v-menubar-submenu"));
WebElement filler5 = moreItem.findElement(By.vaadin("#Filler 5"));
assertImage(image, filler5);