From dc01a9a4d85f78dba63c310fb9dc478cf1d40f8d Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Thu, 15 Dec 2016 17:32:46 +0200 Subject: Update to TB 5.0.0.alpha2, add to BOM (#8009) --- bom/pom.xml | 7 ++++++- pom.xml | 2 +- .../com/vaadin/testbench/customelements/NativeSelectElement.java | 3 +-- .../java/com/vaadin/testbench/customelements/TableElement.java | 3 +-- uitest/ivy.xml | 2 +- .../tests/components/notification/NotificationsWaiAriaTest.java | 2 +- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/bom/pom.xml b/bom/pom.xml index 35e53ac55d..4788c99576 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -17,6 +17,7 @@ 2.0-SNAPSHOT + 5.0.0.alpha2 @@ -90,7 +91,6 @@ - com.vaadin vaadin-spring-boot-starter @@ -106,6 +106,11 @@ vaadin-spring ${vaadin.spring.version} + + com.vaadin + vaadin-testbench + ${vaadin.testbench.version} + diff --git a/pom.xml b/pom.xml index fbce507012..4f2fde4809 100644 --- a/pom.xml +++ b/pom.xml @@ -227,7 +227,7 @@ com.vaadin vaadin-testbench - 5.0.0.alpha1 + 5.0.0.alpha2 org.eclipse.jetty diff --git a/uitest-common/src/main/java/com/vaadin/testbench/customelements/NativeSelectElement.java b/uitest-common/src/main/java/com/vaadin/testbench/customelements/NativeSelectElement.java index 876f2e7c0b..a183951a29 100644 --- a/uitest-common/src/main/java/com/vaadin/testbench/customelements/NativeSelectElement.java +++ b/uitest-common/src/main/java/com/vaadin/testbench/customelements/NativeSelectElement.java @@ -35,8 +35,7 @@ public class NativeSelectElement extends AbstractSelectElement { } public List getOptions() { - return wrapElements(selectElement.getOptions(), - getTestBenchCommandExecutor()); + return wrapElements(selectElement.getOptions(), getCommandExecutor()); } public void selectByText(String text) throws ReadOnlyException { diff --git a/uitest-common/src/main/java/com/vaadin/testbench/customelements/TableElement.java b/uitest-common/src/main/java/com/vaadin/testbench/customelements/TableElement.java index 733ddb5a8a..28432fade9 100644 --- a/uitest-common/src/main/java/com/vaadin/testbench/customelements/TableElement.java +++ b/uitest-common/src/main/java/com/vaadin/testbench/customelements/TableElement.java @@ -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 { diff --git a/uitest/ivy.xml b/uitest/ivy.xml index 15da194adb..fa0005a552 100644 --- a/uitest/ivy.xml +++ b/uitest/ivy.xml @@ -122,7 +122,7 @@ + rev="5.0.0.alpha2" conf="build-provided -> default" /> diff --git a/uitest/src/test/java/com/vaadin/tests/components/notification/NotificationsWaiAriaTest.java b/uitest/src/test/java/com/vaadin/tests/components/notification/NotificationsWaiAriaTest.java index 7e7a267d63..362dcaffcd 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/notification/NotificationsWaiAriaTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/notification/NotificationsWaiAriaTest.java @@ -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); } } -- cgit v1.2.3