aboutsummaryrefslogtreecommitdiffstats
path: root/testbench-api/src/main/java
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2018-05-02 13:34:10 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-05-02 13:34:10 +0300
commitc4d621c7772347f1b90c94d566c894b7434cb7f1 (patch)
tree896e04c4002ccec28d60995fb9534acbd91d211d /testbench-api/src/main/java
parent494dac9ec2f509777a1a31579c3aaaf84b158709 (diff)
downloadvaadin-framework-c4d621c7772347f1b90c94d566c894b7434cb7f1.tar.gz
vaadin-framework-c4d621c7772347f1b90c94d566c894b7434cb7f1.zip
Enable formatting in testbench-api module (#10852)
Diffstat (limited to 'testbench-api/src/main/java')
-rw-r--r--testbench-api/src/main/java/com/vaadin/testbench/elements/GridElement.java3
1 files changed, 2 insertions, 1 deletions
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 {