diff options
author | Artur Signell <artur@vaadin.com> | 2015-09-07 14:24:36 +0300 |
---|---|---|
committer | Mika Murtojarvi <mika@vaadin.com> | 2015-09-11 16:34:50 +0300 |
commit | ed592a47f852634b74a272b7e777379ba13401aa (patch) | |
tree | e20d13262467d5688120a4bb59821d38ccfbf849 /uitest/src/com/vaadin/tests/application | |
parent | 5758c50743924132f6f9b9e22b22c9b102787a42 (diff) | |
download | vaadin-framework-ed592a47f852634b74a272b7e777379ba13401aa.tar.gz vaadin-framework-ed592a47f852634b74a272b7e777379ba13401aa.zip |
Make test work correctly with resynchronize
Change-Id: I4aaf8875cbd69db525c4aaa8ac92a26b3b11b158
Diffstat (limited to 'uitest/src/com/vaadin/tests/application')
-rw-r--r-- | uitest/src/com/vaadin/tests/application/ResynchronizeUITest.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/uitest/src/com/vaadin/tests/application/ResynchronizeUITest.java b/uitest/src/com/vaadin/tests/application/ResynchronizeUITest.java index 4dd8292e23..726616d7b8 100644 --- a/uitest/src/com/vaadin/tests/application/ResynchronizeUITest.java +++ b/uitest/src/com/vaadin/tests/application/ResynchronizeUITest.java @@ -48,13 +48,7 @@ public class ResynchronizeUITest extends SingleBrowserTest { // Click causes repaint, after this the old button element should no // longer be available // Ensure that the theme has changed - waitUntil(new ExpectedCondition<Boolean>() { - @Override - public Boolean apply(WebDriver input) { - WebElement app = input.findElement(By.className("v-app")); - return hasCssClass(app, "runo"); - } - }); + waitForThemeToChange("runo"); try { button.click(); Assert.fail("The old button element should have been removed by the click and replaced by a new one."); |