summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@gmail.com>2017-03-23 13:13:33 +0200
committerGitHub <noreply@github.com>2017-03-23 13:13:33 +0200
commit17b3f23b0e526250dc134df1f7d2e6cd7f149ba5 (patch)
treec7f6a6d30982db0f33a0fe5feaa284ce4dd5f40e /uitest
parent18d10bfd5bad516248fa46c725877ac7b72bbcfd (diff)
downloadvaadin-framework-17b3f23b0e526250dc134df1f7d2e6cd7f149ba5.tar.gz
vaadin-framework-17b3f23b0e526250dc134df1f7d2e6cd7f149ba5.zip
Fix FlashExpansionTest (#8919)
Diffstat (limited to 'uitest')
-rwxr-xr-xuitest/src/test/java/com/vaadin/tests/components/flash/FlashExpansionTest.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/flash/FlashExpansionTest.java b/uitest/src/test/java/com/vaadin/tests/components/flash/FlashExpansionTest.java
index 923ad2b779..c21992941c 100755
--- a/uitest/src/test/java/com/vaadin/tests/components/flash/FlashExpansionTest.java
+++ b/uitest/src/test/java/com/vaadin/tests/components/flash/FlashExpansionTest.java
@@ -29,17 +29,16 @@ public class FlashExpansionTest extends MultiBrowserTest {
waitForElementPresent(locator);
WebElement embed = $(FlashElement.class).first().findElement(locator);
String width = embed.getAttribute("width");
- Assert.assertTrue("Width is not 400.0px initially",
- "400.0px".equals(width));
+ Assert.assertEquals("Width is not 400.0px initially", "400", width);
$(ButtonElement.class).first().click();
+ embed = $(FlashElement.class).first().findElement(locator);
String widthAfterExpansion = embed.getAttribute("width");
- Assert.assertFalse("Width is still 400.0px after expansion",
- "400.0px".equals(widthAfterExpansion));
+ Assert.assertNotEquals("Width is still 400.0px after expansion", "400",
+ widthAfterExpansion);
}
private List<DesiredCapabilities> getBrowsersSupportingFlash() {
// No Flash support in Chrome, FF, PhantomJS
- return getBrowserCapabilities(Browser.IE8, Browser.IE9, Browser.IE10,
- Browser.IE11);
+ return getBrowserCapabilities(Browser.IE11);
}
}