diff options
Diffstat (limited to 'uitest/src/com/vaadin')
-rw-r--r-- | uitest/src/com/vaadin/tests/themes/base/DisabledMenuBarItem.java | 2 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/themes/base/DisabledMenuBarItemTest.java | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/themes/base/DisabledMenuBarItem.java b/uitest/src/com/vaadin/tests/themes/base/DisabledMenuBarItem.java index 825f267ad3..16a822789a 100644 --- a/uitest/src/com/vaadin/tests/themes/base/DisabledMenuBarItem.java +++ b/uitest/src/com/vaadin/tests/themes/base/DisabledMenuBarItem.java @@ -12,7 +12,7 @@ public class DisabledMenuBarItem extends AbstractTestUI { MenuBar.MenuItem item = menubar.addItem("Item", null); item.setEnabled(false); - item.setIcon(new ThemeResource("just_a_placeholder.png")); + item.setIcon(new ThemeResource("common/icons/error.png")); addComponent(menubar); } diff --git a/uitest/src/com/vaadin/tests/themes/base/DisabledMenuBarItemTest.java b/uitest/src/com/vaadin/tests/themes/base/DisabledMenuBarItemTest.java index 0a10a7f38b..bec28d7929 100644 --- a/uitest/src/com/vaadin/tests/themes/base/DisabledMenuBarItemTest.java +++ b/uitest/src/com/vaadin/tests/themes/base/DisabledMenuBarItemTest.java @@ -3,6 +3,8 @@ package com.vaadin.tests.themes.base; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; +import java.io.IOException; + import org.junit.Test; import org.openqa.selenium.WebElement; @@ -13,7 +15,7 @@ import com.vaadin.tests.tb3.MultiBrowserTest; public class DisabledMenuBarItemTest extends MultiBrowserTest { @Test - public void disabledMenuItemShouldHaveOpacity() { + public void disabledMenuItemShouldHaveOpacity() throws IOException { openTestURL(); WebElement element = driver.findElement(By @@ -23,8 +25,9 @@ public class DisabledMenuBarItemTest extends MultiBrowserTest { if (browserIsIE8or9()) { assertThat(element.getCssValue("filter"), is("alpha(opacity=50)")); - } + + compareScreen("transparent"); } private boolean browserIsIE8or9() { |