]> source.dussan.org Git - vaadin-framework.git/commitdiff
Revert changes to ComboBoxSelectingWithNewItemsAllowedTest
authorAleksi Hietanen <aleksi@vaadin.com>
Thu, 8 Dec 2016 13:45:26 +0000 (15:45 +0200)
committerPekka Hyvönen <pekka@vaadin.com>
Fri, 9 Dec 2016 07:39:00 +0000 (09:39 +0200)
Change-Id: I7fa2b3fd79b8fddbfbd7dcfec6d4263b233789c4

uitest/src/test/java/com/vaadin/tests/components/combobox/ComboBoxSelectingWithNewItemsAllowedTest.java

index c16a80856b9a5b1b5aeda2c9c285a259f74fe887..b568ecf912f358e3c3cef1e5c8c7a9ff720d9ef8 100644 (file)
@@ -64,14 +64,6 @@ public class ComboBoxSelectingWithNewItemsAllowedTest extends MultiBrowserTest {
         assertThatSelectedValueIs("a");
     }
 
-    @Test
-    public void itemIsAddedWhenClickingOutside() {
-        clearInputAndType("foo");
-        findElement(By.tagName("body")).click();
-        assertOneMoreThanInitial();
-        assertThatSelectedValueIs("foo");
-    }
-
     @Test
     public void matchingSuggestionIsSelectedWithEnter() {
         typeInputAndHitEnter("a0");
@@ -130,14 +122,14 @@ public class ComboBoxSelectingWithNewItemsAllowedTest extends MultiBrowserTest {
     }
 
     @Test
-    public void selectionOnMouseOut() {
+    public void noSelectionAfterMouseOut() {
         typeInputAndHitEnter("a20");
         comboBoxElement.sendKeys(Keys.ARROW_DOWN, Keys.ARROW_DOWN);
 
         findElement(By.className("v-app")).click();
 
         assertInitialItemCount();
-        assertThatSelectedValueIs("a21");
+        assertThatSelectedValueIs("a20");
     }
 
     @Test