]> source.dussan.org Git - vaadin-framework.git/commitdiff
Tests (wrong screenshots and JRE version, delay) (#11255)
authorsergey-vaadin <sergey@vaadin.com>
Wed, 17 Oct 2018 11:32:29 +0000 (14:32 +0300)
committerOlli Tietäväinen <ollit@vaadin.com>
Wed, 17 Oct 2018 11:32:29 +0000 (14:32 +0300)
* wrong screenshots and JRE version

* delay for submenu

uitest/reference-screenshots/CriticalNotificationsTest-sessionExpired_ANY_Chrome__runo_systemnotification.png
uitest/reference-screenshots/CriticalNotificationsTest-sessionExpired_ANY_Chrome__valo_systemnotification.png
uitest/src/test/java/com/vaadin/tests/VerifyJreVersionTest.java
uitest/src/test/java/com/vaadin/tests/components/menubar/MenuBarIconsTest.java

index 32c80110c892110d2897834f9b22e128e696e020..00b1d3a3f4867921727fc0faf87e14728fb3ec4c 100755 (executable)
Binary files a/uitest/reference-screenshots/CriticalNotificationsTest-sessionExpired_ANY_Chrome__runo_systemnotification.png and b/uitest/reference-screenshots/CriticalNotificationsTest-sessionExpired_ANY_Chrome__runo_systemnotification.png differ
index e77057e37f4cf0ce893a5f1a532a0059c6c56933..2cc19836710c940dc4329850755310a6c1422857 100644 (file)
Binary files a/uitest/reference-screenshots/CriticalNotificationsTest-sessionExpired_ANY_Chrome__valo_systemnotification.png and b/uitest/reference-screenshots/CriticalNotificationsTest-sessionExpired_ANY_Chrome__valo_systemnotification.png differ
index 15e2367c93a2e27942a92d5deb630242e2cf9648..0355d0821922d146abe7b6f7363a010a8f44b2cb 100644 (file)
@@ -17,7 +17,7 @@ public class VerifyJreVersionTest extends SingleBrowserTest {
         WebElement jreVersionLabel = vaadinElementById("jreVersionLabel");
 
         assertThat(jreVersionLabel.getText(),
-                is("Using Java 1.6.0_45 by Sun Microsystems Inc."));
+                is("Using Java 1.8.0_181 by Oracle Corporation"));
     }
 
 }
index 7213d2d466119de04912c6eefb4239fd4defa633..8ea71c385587af7ea1e5420c03d13741645c83e6 100644 (file)
@@ -41,7 +41,7 @@ public class MenuBarIconsTest extends SingleBrowserTest {
     }
 
     @Test
-    public void imageIconsRendered() {
+    public void imageIconsRendered() throws Exception {
         openTestURL();
         MenuBarElement menu = $(MenuBarElement.class).id("image");
         WebElement moreItem = menu
@@ -58,7 +58,8 @@ public class MenuBarIconsTest extends SingleBrowserTest {
         assertImage(image, hasSubElement.findElement(By.vaadin("#Sub item")));
         // Close sub menu
         hasSubElement.click();
-
+        
+        sleep(500);
         assertImage(image, moreItem);
 
         moreItem.click();