summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@gmail.com>2017-02-14 09:32:54 +0200
committerHenri Sara <henri.sara@gmail.com>2017-02-14 13:45:58 +0200
commit3c02e139905ad423f6cf9398f85f6a05b90ca09b (patch)
treec2bf4caa3735de4acdae8e17ade200fc79e54b68
parent4b0062582fd23dd82c1159ea4a94a91d5be673c8 (diff)
downloadvaadin-framework-3c02e139905ad423f6cf9398f85f6a05b90ca09b.tar.gz
vaadin-framework-3c02e139905ad423f6cf9398f85f6a05b90ca09b.zip
Fix TreeTablePartialUpdatesTest for Chrome 56+ (#8554)
-rw-r--r--uitest/src/test/java/com/vaadin/tests/components/treetable/TreeTablePartialUpdatesTest.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/treetable/TreeTablePartialUpdatesTest.java b/uitest/src/test/java/com/vaadin/tests/components/treetable/TreeTablePartialUpdatesTest.java
index 9620c01395..767e0270cd 100644
--- a/uitest/src/test/java/com/vaadin/tests/components/treetable/TreeTablePartialUpdatesTest.java
+++ b/uitest/src/test/java/com/vaadin/tests/components/treetable/TreeTablePartialUpdatesTest.java
@@ -28,6 +28,7 @@ import org.openqa.selenium.support.ui.ExpectedConditions;
import com.vaadin.testbench.By;
import com.vaadin.testbench.commands.TestBenchElementCommands;
import com.vaadin.testbench.elements.TreeTableElement;
+import com.vaadin.testbench.parallel.BrowserUtil;
import com.vaadin.tests.tb3.MultiBrowserTest;
/**
@@ -67,7 +68,12 @@ public class TreeTablePartialUpdatesTest extends MultiBrowserTest {
// scroll far enough down to drop the first row from the cache
// but not far enough to reach the last row
- scrollable.scroll(1692);
+ if (BrowserUtil.isChrome(getDesiredCapabilities())) {
+ // Chrome 56 requires different scroll position
+ scrollable.scroll(846);
+ } else {
+ scrollable.scroll(1692);
+ }
// wait for the scrollposition element to disappear
waitUntilNot(ExpectedConditions.visibilityOfElementLocated(