summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-09-10 11:01:28 +0300
committerVaadin Code Review <review@vaadin.com>2015-09-10 11:11:22 +0000
commit154396df74ba16dd8f50ba479a3e9819da54c072 (patch)
treeddb2c24fa62da0b874704dfeda9b5c9e34c19361 /uitest
parentae20007e0793825dcf793ee7e7212d6bcfbf25b8 (diff)
downloadvaadin-framework-154396df74ba16dd8f50ba479a3e9819da54c072.tar.gz
vaadin-framework-154396df74ba16dd8f50ba479a3e9819da54c072.zip
Add body style name when reconnecting (#18838)
Change-Id: I7ff28587780fbd1c68b065b3edc670a879e8551e
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/application/ReconnectDialogUITest.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/application/ReconnectDialogUITest.java b/uitest/src/com/vaadin/tests/application/ReconnectDialogUITest.java
index 19d88350b7..b07124c216 100644
--- a/uitest/src/com/vaadin/tests/application/ReconnectDialogUITest.java
+++ b/uitest/src/com/vaadin/tests/application/ReconnectDialogUITest.java
@@ -31,6 +31,23 @@ import com.vaadin.tests.tb3.MultiBrowserTestWithProxy;
public class ReconnectDialogUITest extends MultiBrowserTestWithProxy {
@Test
+ public void reconnectTogglesBodyStyle() throws JSchException {
+ openTestURL();
+ getButton().click();
+ disconnectProxy();
+ getButton().click();
+ waitForReconnectDialogPresent();
+ WebElement body = findElement(By.xpath("//body"));
+ Assert.assertTrue("Body should have a style name when reconnecting",
+ hasCssClass(body, "v-reconnecting"));
+ connectProxy();
+ waitForReconnectDialogToDisappear();
+ Assert.assertFalse(
+ "Body should no longer have a style name when reconnected",
+ hasCssClass(body, "v-reconnecting"));
+ }
+
+ @Test
public void reconnectDialogShownAndDisappears() throws JSchException {
openTestURL();
getButton().click();