File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 22
33import com .epam .jdi .light .angular .asserts .ChipGroupAssert ;
44import com .epam .jdi .light .angular .elements .common .Chip ;
5- import com .epam .jdi .light .angular .elements .interfaces .HasErrorState ;
5+ import com .epam .jdi .light .angular .elements .interfaces .FormField ;
66import com .epam .jdi .light .angular .elements .interfaces .HasOrientation ;
77import com .epam .jdi .light .angular .elements .interfaces .IsGroupElement ;
88import com .epam .jdi .light .common .JDIAction ;
1212import java .util .List ;
1313import java .util .stream .Collectors ;
1414
15- public class ChipGroup extends UIBaseElement <ChipGroupAssert > implements IsGroupElement <Chip >, HasOrientation , HasErrorState {
15+ public class ChipGroup extends UIBaseElement <ChipGroupAssert > implements IsGroupElement <Chip >, HasOrientation , FormField {
1616
1717 public static final String CHIP_LOCATOR = ".mat-mdc-chip" ;
1818
Original file line number Diff line number Diff line change 1+ package com .epam .jdi .light .angular .elements .interfaces ;
2+
3+ import com .epam .jdi .light .common .JDIAction ;
4+ import com .epam .jdi .light .elements .interfaces .base .ICoreElement ;
5+
6+ public interface FormField extends ICoreElement {
7+
8+ /**
9+ * Checks if element has Error State or not.
10+ *
11+ * @return {@code true} if element has Error State, otherwise {@code false}
12+ */
13+ @ JDIAction ("Get if '{name}' is vertical" )
14+ default boolean errorState () {
15+ return core ().hasClass ("mat-form-field-invalid" );
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments