blob: d6e70c15be831448f1d4d51684b4ec5975aa0c03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package com.vaadin.tests.components.combobox;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.openqa.selenium.By;
import com.vaadin.testbench.elements.ComboBoxElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
/**
* Test to check whether combobox is expanded when icon is clicked.
*
* @author Vaadin Ltd
*/
public class ComboBoxClickIconTest extends MultiBrowserTest {
@Test
public void testClickOnIconInCombobox() {
openTestURL();
$(ComboBoxElement.class).first().openPopup();
clickElement(
getDriver().findElements(By.className("gwt-MenuItem")).get(1));
clickElement(getDriver().findElement(By.className("v-filterselect"))
.findElement(By.className("v-icon")));
assertTrue("Unable to find menu items in combobox popup",
isElementPresent(By.className("gwt-MenuItem")));
}
}
|