Skip to content

Commit

Permalink
Update to platform V13 beta1 (#731)
Browse files Browse the repository at this point in the history
* Update to platform V13 beta1
  • Loading branch information
alvarezguille authored Feb 11, 2019
1 parent 37ae7b4 commit 8f8c9d7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
14 changes: 1 addition & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<failOnMissingWebXml>false</failOnMissingWebXml>
<!-- Dependencies -->
<vaadin.version>13.0.0.alpha4</vaadin.version>
<vaadin.version>13.0.0.beta1</vaadin.version>

<failOnMissingWebXml>false</failOnMissingWebXml>
<!-- Overrides the old version specified by the Spring Boot parent -->
Expand Down Expand Up @@ -114,18 +114,6 @@
<groupId>com.vaadin</groupId>
<artifactId>vaadin-spring</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-login-flow</artifactId>
<version>1.0.0.alpha2</version>
</dependency>

<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-login-testbench</artifactId>
<version>1.0.0.alpha2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.vaadin.artur</groupId>
<artifactId>spring-data-provider</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.vaadin.flow.component.crud.testbench.CrudElement;
import com.vaadin.flow.component.formlayout.testbench.FormLayoutElement;
import com.vaadin.starter.bakery.testbench.elements.components.SearchBarElement;
import com.vaadin.testbench.TestBenchElement;

public class BakeryCrudViewElement extends CrudElement implements HasApp {

Expand All @@ -22,4 +23,8 @@ public ConfirmDialogElement getDiscardConfirmDialog() {
public ConfirmDialogElement getDeleteConfirmDialog() {
return $(ConfirmDialogElement.class).last();
}

public void openRowForEditing(int row, int editCol) {
getGrid().getCell(row, editCol).$(TestBenchElement.class).first().click();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ public TextFieldElement getPrice() {
return getEditor().$(FormLayoutElement.class).first().$(TextFieldElement.class).all().get(1);
}

@Override
public void openRowForEditing(int row) {
openRowForEditing(row, 2);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ public ComboBoxElement getRole() {
return getForm().$(ComboBoxElement.class).first();
}

@Override
public void openRowForEditing(int row) {
openRowForEditing(row, 3);
}

}

0 comments on commit 8f8c9d7

Please sign in to comment.