From 9a42f1cbbce9ae43fcdeaf50691ab056941e9c27 Mon Sep 17 00:00:00 2001 From: sergey-vaadin Date: Wed, 17 Oct 2018 14:32:29 +0300 Subject: Tests (wrong screenshots and JRE version, delay) (#11255) * wrong screenshots and JRE version * delay for submenu --- ...ionExpired_ANY_Chrome__runo_systemnotification.png | Bin 6444 -> 6397 bytes ...ionExpired_ANY_Chrome__valo_systemnotification.png | Bin 9159 -> 9116 bytes .../java/com/vaadin/tests/VerifyJreVersionTest.java | 2 +- .../tests/components/menubar/MenuBarIconsTest.java | 5 +++-- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/uitest/reference-screenshots/CriticalNotificationsTest-sessionExpired_ANY_Chrome__runo_systemnotification.png b/uitest/reference-screenshots/CriticalNotificationsTest-sessionExpired_ANY_Chrome__runo_systemnotification.png index 32c80110c8..00b1d3a3f4 100755 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 diff --git a/uitest/reference-screenshots/CriticalNotificationsTest-sessionExpired_ANY_Chrome__valo_systemnotification.png b/uitest/reference-screenshots/CriticalNotificationsTest-sessionExpired_ANY_Chrome__valo_systemnotification.png index e77057e37f..2cc1983671 100644 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 diff --git a/uitest/src/test/java/com/vaadin/tests/VerifyJreVersionTest.java b/uitest/src/test/java/com/vaadin/tests/VerifyJreVersionTest.java index 15e2367c93..0355d08219 100644 --- a/uitest/src/test/java/com/vaadin/tests/VerifyJreVersionTest.java +++ b/uitest/src/test/java/com/vaadin/tests/VerifyJreVersionTest.java @@ -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")); } } diff --git a/uitest/src/test/java/com/vaadin/tests/components/menubar/MenuBarIconsTest.java b/uitest/src/test/java/com/vaadin/tests/components/menubar/MenuBarIconsTest.java index 7213d2d466..8ea71c3855 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/menubar/MenuBarIconsTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/menubar/MenuBarIconsTest.java @@ -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(); -- cgit v1.2.3