diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/VerifyBrowserVersionTest.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/VerifyBrowserVersionTest.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/VerifyBrowserVersionTest.java b/uitest/src/com/vaadin/tests/VerifyBrowserVersionTest.java index 43d6a55a8b..ba2e1f3c73 100644 --- a/uitest/src/com/vaadin/tests/VerifyBrowserVersionTest.java +++ b/uitest/src/com/vaadin/tests/VerifyBrowserVersionTest.java @@ -56,9 +56,12 @@ public class VerifyBrowserVersionTest extends MultiBrowserTest { @Test public void verifyUserAgent() { openTestURL(); - Assert.assertEquals(expectedUserAgent.get(getDesiredCapabilities()), - vaadinElementById("userAgent").getText()); + String expected = expectedUserAgent.get(getDesiredCapabilities()); + String actual = vaadinElementById("userAgent").getText(); + Assert.assertEquals("Remote control " + getRemoteControlName() + + " uses incorrect browser version", expected, actual); Assert.assertEquals("Touch device? No", vaadinElementById("touchDevice").getText()); } + } |