"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "flow-tests/test-root-context/src/test/java/com/vaadin/flow/VerifyBrowserVersionIT.java" between
vaadin-flow-4.0.6.tar.gz and vaadin-flow-4.0.7.tar.gz

About: Vaadin flow is a Java framework binding Vaadin web components to Java.

VerifyBrowserVersionIT.java  (vaadin-flow-4.0.6):VerifyBrowserVersionIT.java  (vaadin-flow-4.0.7)
skipping to change at line 28 skipping to change at line 28
DesiredCapabilities desiredCapabilities = getDesiredCapabilities(); DesiredCapabilities desiredCapabilities = getDesiredCapabilities();
String userAgent = findElement(By.id("userAgent")).getText(); String userAgent = findElement(By.id("userAgent")).getText();
String browserIdentifier; String browserIdentifier;
if (BrowserUtil.isChrome(getDesiredCapabilities())) { if (BrowserUtil.isChrome(getDesiredCapabilities())) {
// Chrome version does not necessarily match the desired version // Chrome version does not necessarily match the desired version
// because of auto updates... // because of auto updates...
browserIdentifier = getExpectedUserAgentString( browserIdentifier = getExpectedUserAgentString(
getDesiredCapabilities()) + "86"; getDesiredCapabilities()) + "87";
} else if (BrowserUtil.isFirefox(getDesiredCapabilities())) { } else if (BrowserUtil.isFirefox(getDesiredCapabilities())) {
browserIdentifier = getExpectedUserAgentString( browserIdentifier = getExpectedUserAgentString(
getDesiredCapabilities()) + "58"; getDesiredCapabilities()) + "58";
} else { } else {
browserIdentifier = getExpectedUserAgentString(desiredCapabilities) browserIdentifier = getExpectedUserAgentString(desiredCapabilities)
+ desiredCapabilities.getVersion(); + desiredCapabilities.getVersion();
} }
assertThat(userAgent, containsString(browserIdentifier)); assertThat(userAgent, containsString(browserIdentifier));
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)