diff options
author | Henri Sara <hesara@vaadin.com> | 2016-01-08 14:03:37 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-01-08 13:26:25 +0000 |
commit | cf50732c3c8d94bb6ec542c43b1225fbb46f741e (patch) | |
tree | b6fd377a95422e0cdff32ea05daa28807ea74c47 /uitest/src/com/vaadin | |
parent | 4f8504dda08d74d21945117110664821cbca76ee (diff) | |
download | vaadin-framework-cf50732c3c8d94bb6ec542c43b1225fbb46f741e.tar.gz vaadin-framework-cf50732c3c8d94bb6ec542c43b1225fbb46f741e.zip |
Convert ComboBoxItemIcon test to TB4
Change-Id: I939fe7e5c5b57c007a543f5f7c491c8c9f11e773
Diffstat (limited to 'uitest/src/com/vaadin')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/combobox/ComboBoxItemIconTest.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/combobox/ComboBoxItemIconTest.java b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxItemIconTest.java new file mode 100644 index 0000000000..15c87b65f0 --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/combobox/ComboBoxItemIconTest.java @@ -0,0 +1,32 @@ +package com.vaadin.tests.components.combobox; + +import org.junit.Test; + +import com.vaadin.tests.tb3.MultiBrowserTest; +import com.vaadin.tests.tb3.newelements.ComboBoxElement; + +public class ComboBoxItemIconTest extends MultiBrowserTest { + @Test + public void testIconsInComboBox() throws Exception { + openTestURL(); + + ComboBoxElement firstCombo = $(ComboBoxElement.class).first(); + + firstCombo.openPopup(); + compareScreen("first-combobox-open"); + + // null item not on the list, so use index 1 + firstCombo.selectByText(firstCombo.getPopupSuggestions().get(1)); + + compareScreen("fi-hu-selected"); + + ComboBoxElement secondCombo = $(ComboBoxElement.class).get(1); + + secondCombo.openPopup(); + compareScreen("second-combobox-open"); + + secondCombo.selectByText(secondCombo.getPopupSuggestions().get(2)); + compareScreen("fi-au-selected"); + } + +}
\ No newline at end of file |