diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2013-11-19 15:06:16 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-11-19 13:12:06 +0000 |
commit | 012e649775e7efbcbbdd9d1c3ef4edd9c9acb71a (patch) | |
tree | 0d91346510bf292c45a0df6565066e744ed63d9e | |
parent | dde6a4893dd1c3d1bc040d58db6fd4cec012c74c (diff) | |
download | vaadin-framework-012e649775e7efbcbbdd9d1c3ef4edd9c9acb71a.tar.gz vaadin-framework-012e649775e7efbcbbdd9d1c3ef4edd9c9acb71a.zip |
Fix TB3 local testing and occasionally failing SliderDisableTest.
Change-Id: I58e60e55838c3339c934cf975e5e148c8f09a78b
-rw-r--r-- | uitest/src/com/vaadin/tests/components/slider/SliderDisableTest.java | 1 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java | 17 |
2 files changed, 11 insertions, 7 deletions
diff --git a/uitest/src/com/vaadin/tests/components/slider/SliderDisableTest.java b/uitest/src/com/vaadin/tests/components/slider/SliderDisableTest.java index f6ec3dac3b..53521ee483 100644 --- a/uitest/src/com/vaadin/tests/components/slider/SliderDisableTest.java +++ b/uitest/src/com/vaadin/tests/components/slider/SliderDisableTest.java @@ -29,6 +29,7 @@ public class SliderDisableTest extends MultiBrowserTest { openTestURL(); WebElement element = vaadinElement("/VVerticalLayout[0]/Slot[0]/VSlider[0]/domChild[2]/domChild[0]"); new Actions(driver).dragAndDropBy(element, 112, 0).perform(); + testBench().waitForVaadin(); compareScreen("enabled"); vaadinElementById("disableButton").click(); compareScreen("disabled"); diff --git a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java index f6e58a51b2..d7b7cd050f 100644 --- a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java +++ b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java @@ -107,16 +107,19 @@ public abstract class AbstractTB3Test extends TestBenchTestCase { * If something goes wrong */ protected void setupDriver() throws Exception { + DesiredCapabilities capabilities; + RunLocally runLocally = getClass().getAnnotation(RunLocally.class); if (runLocally != null) { - setupLocalDriver(runLocally.value().getDesiredCapabilities()); - return; - } - DesiredCapabilities capabilities = getDesiredCapabilities(); + capabilities = runLocally.value().getDesiredCapabilities(); + setupLocalDriver(capabilities); + } else { + capabilities = getDesiredCapabilities(); - WebDriver dr = TestBench.createDriver(new RemoteWebDriver(new URL( - getHubURL()), capabilities)); - setDriver(dr); + WebDriver dr = TestBench.createDriver(new RemoteWebDriver(new URL( + getHubURL()), capabilities)); + setDriver(dr); + } int w = SCREENSHOT_WIDTH; int h = SCREENSHOT_HEIGHT; |