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/components | |
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/components')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/embedded/EmbeddedThemeResourceTest.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/components/embedded/EmbeddedThemeResourceTest.java b/uitest/src/com/vaadin/tests/components/embedded/EmbeddedThemeResourceTest.java index dc4dd341f4..f892775ea3 100644 --- a/uitest/src/com/vaadin/tests/components/embedded/EmbeddedThemeResourceTest.java +++ b/uitest/src/com/vaadin/tests/components/embedded/EmbeddedThemeResourceTest.java @@ -80,12 +80,16 @@ public class EmbeddedThemeResourceTest extends SingleBrowserTest { @Test public void testUpdatedTheme() { - EmbeddedElement embedded = $(EmbeddedElement.class).first(); - final ImageElement image = $(ImageElement.class).first(); - final String initial = image.getAttribute("src"); + final String initial = $(ImageElement.class).first() + .getAttribute("src"); // update theme $(ButtonElement.class).first().click(); + waitForThemeToChange("reindeer"); + + EmbeddedElement embedded = $(EmbeddedElement.class).first(); + // Re fetch as theme change creates new elements + final ImageElement image = $(ImageElement.class).first(); waitUntil(new ExpectedCondition<Boolean>() { @Override @@ -107,4 +111,5 @@ public class EmbeddedThemeResourceTest extends SingleBrowserTest { embedded.findElement(By.tagName("img")).getAttribute("src"), is(image.getAttribute("src"))); } + } |