diff options
Diffstat (limited to 'testbench-api')
-rw-r--r-- | testbench-api/src/main/java/com/vaadin/testbench/elements/ColorPickerPreviewElement.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/testbench-api/src/main/java/com/vaadin/testbench/elements/ColorPickerPreviewElement.java b/testbench-api/src/main/java/com/vaadin/testbench/elements/ColorPickerPreviewElement.java index 42f162fe11..71de712624 100644 --- a/testbench-api/src/main/java/com/vaadin/testbench/elements/ColorPickerPreviewElement.java +++ b/testbench-api/src/main/java/com/vaadin/testbench/elements/ColorPickerPreviewElement.java @@ -36,9 +36,8 @@ public class ColorPickerPreviewElement extends CssLayoutElement { public boolean getColorFieldContainsErrors() { List<WebElement> caption = findElements( By.className("v-caption-v-colorpicker-preview-textfield")); - return !caption.isEmpty() && - !caption.get(0).findElements(By.className("v-errorindicator")) - .isEmpty(); + return !caption.isEmpty() && !caption.get(0) + .findElements(By.className("v-errorindicator")).isEmpty(); } /** |