aboutsummaryrefslogtreecommitdiffstats
path: root/testbench-api
diff options
context:
space:
mode:
Diffstat (limited to 'testbench-api')
-rw-r--r--testbench-api/pom.xml4
-rw-r--r--testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java3
2 files changed, 6 insertions, 1 deletions
diff --git a/testbench-api/pom.xml b/testbench-api/pom.xml
index ac0e2e7b02..e07dad1ca7 100644
--- a/testbench-api/pom.xml
+++ b/testbench-api/pom.xml
@@ -36,6 +36,10 @@
<build>
<plugins>
<plugin>
+ <groupId>net.revelc.code.formatter</groupId>
+ <artifactId>formatter-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
diff --git a/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java b/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java
index c9c91a9be6..2f78e01f13 100644
--- a/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java
+++ b/testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java
@@ -462,7 +462,8 @@ public class GridElement extends AbstractComponentElement {
Optional<WebElement> toggleButton = getDriver()
.findElement(By.className("v-grid-sidebar-content"))
.findElements(By.className("column-hiding-toggle")).stream()
- .filter(element -> element.getText().equals(toggleCaption)).findAny();
+ .filter(element -> element.getText().equals(toggleCaption))
+ .findAny();
if (toggleButton.isPresent()) {
toggleButton.ifPresent(element -> element.click());
} else {