]> source.dussan.org Git - vaadin-framework.git/commitdiff
Update to TB 5.0.0.alpha2, add to BOM (#8009)
authorPekka Hyvönen <pekka@vaadin.com>
Thu, 15 Dec 2016 15:32:46 +0000 (17:32 +0200)
committerHenri Sara <henri.sara@gmail.com>
Thu, 15 Dec 2016 15:32:46 +0000 (17:32 +0200)
bom/pom.xml
pom.xml
uitest-common/src/main/java/com/vaadin/testbench/customelements/NativeSelectElement.java
uitest-common/src/main/java/com/vaadin/testbench/customelements/TableElement.java
uitest/ivy.xml
uitest/src/test/java/com/vaadin/tests/components/notification/NotificationsWaiAriaTest.java

index 35e53ac55d6533b0a7dfe34560c186a4fc078b4c..4788c9957699230353afe6babe975493efddf3ac 100644 (file)
@@ -17,6 +17,7 @@
 
     <properties>
         <vaadin.spring.version>2.0-SNAPSHOT</vaadin.spring.version>
+        <vaadin.testbench.version>5.0.0.alpha2</vaadin.testbench.version>
     </properties>
 
     <repositories>
@@ -90,7 +91,6 @@
             </dependency>
 
             <!-- AddOn Dependencies -->
-
             <dependency>
                 <groupId>com.vaadin</groupId>
                 <artifactId>vaadin-spring-boot-starter</artifactId>
                 <artifactId>vaadin-spring</artifactId>
                 <version>${vaadin.spring.version}</version>
             </dependency>
+            <dependency>
+                <groupId>com.vaadin</groupId>
+                <artifactId>vaadin-testbench</artifactId>
+                <version>${vaadin.testbench.version}</version>
+            </dependency>
 
         </dependencies>
     </dependencyManagement>
diff --git a/pom.xml b/pom.xml
index fbce50701257f27ac62e1730dfe1a541487dbb8b..4f2fde4809ce07f83011d7fe89379f1cb4cac944 100644 (file)
--- a/pom.xml
+++ b/pom.xml
             <dependency>
                 <groupId>com.vaadin</groupId>
                 <artifactId>vaadin-testbench</artifactId>
-                <version>5.0.0.alpha1</version>
+                <version>5.0.0.alpha2</version>
             </dependency>
             <dependency>
                 <groupId>org.eclipse.jetty</groupId>
index 876f2e7c0b6bbc1a3a93bf0fa1b87abcfe1a49a3..a183951a291cbf4bef9332e9ae41d480a2178c38 100644 (file)
@@ -35,8 +35,7 @@ public class NativeSelectElement extends AbstractSelectElement {
     }
 
     public List<TestBenchElement> getOptions() {
-        return wrapElements(selectElement.getOptions(),
-                getTestBenchCommandExecutor());
+        return wrapElements(selectElement.getOptions(), getCommandExecutor());
     }
 
     public void selectByText(String text) throws ReadOnlyException {
index 733ddb5a8a904085bbb34c2eea89262197c0d0cd..28432fade97ca368c385d2e15b7a948b93e83ac3 100644 (file)
@@ -11,8 +11,7 @@ public class TableElement extends com.vaadin.testbench.elements.TableElement {
         getCollapseMenuToggle().click();
         WebElement cm = getDriver()
                 .findElement(By.xpath("//*[@id='PID_VAADIN_CM']"));
-        return wrapElement(cm, getTestBenchCommandExecutor())
-                .wrap(CollapseMenu.class);
+        return wrapElement(cm, getCommandExecutor()).wrap(CollapseMenu.class);
     }
 
     public static class CollapseMenu extends ContextMenuElement {
index 15da194adb8cfa06e7d67b6f29ff19f640a5192d..fa0005a5523cab490f7d62cedfdc3ec976fa4fb8 100644 (file)
         <dependency org="org.hsqldb" name="hsqldb" rev="2.2.6"
             conf="build -> default" />
         <dependency org="com.vaadin" name="vaadin-testbench"
-            rev="5.0.0.alpha1" conf="build-provided -> default" />
+            rev="5.0.0.alpha2" conf="build-provided -> default" />
         <!-- This should be removed once tests have been updated to use lang3 -->
         <dependency org="commons-lang" name="commons-lang"
             rev="2.6" conf="build -> default" />
index 7e7a267d637601cffb135dc4f175c67c6d74b704..362dcaffcd85878228fce0d257099a3bd274679f 100644 (file)
@@ -118,7 +118,7 @@ public class NotificationsWaiAriaTest extends MultiBrowserTest {
     }
 
     private String getHiddenText(WebElement element) {
-        return (String) getTestBenchCommandExecutor()
+        return (String) getCommandExecutor()
                 .executeScript("return arguments[0].innerHTML", element);
     }
 }