diff options
author | Henri Sara <henri.sara@gmail.com> | 2017-02-14 09:32:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 09:32:54 +0200 |
commit | be8461d94d8bdb635553754d6f2a541678ef4a92 (patch) | |
tree | 82c18ab0d5abcca964077d65b1b0d3f730bf55e6 /uitest | |
parent | 4d24124f6ba71b11659b1e071e899d5741ef152e (diff) | |
download | vaadin-framework-be8461d94d8bdb635553754d6f2a541678ef4a92.tar.gz vaadin-framework-be8461d94d8bdb635553754d6f2a541678ef4a92.zip |
Fix TreeTablePartialUpdatesTest for Chrome 56+ (#8554)
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/components/treetable/TreeTablePartialUpdatesTest.java | 8 |
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( |