diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/AutoCompleteAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/AutoCompleteAssert.java index e6b1c2fe06..d56411a0c4 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/AutoCompleteAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/AutoCompleteAssert.java @@ -16,13 +16,13 @@ public class AutoCompleteAssert extends UIAssert> expectedGro @JDIAction("Assert that '{name}' has the {0} option being highlighted") public AutoCompleteAssert optionHighlighted(String option) { - jdiAssert(element().isOptionHighlighted(option), Matchers.is(true)); + jdiAssert(element().isOptionHighlighted(option), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has the {0} option being not highlighted") public AutoCompleteAssert optionNotHighlighted(String option) { - jdiAssert(element().isOptionHighlighted(option), Matchers.is(false)); + jdiAssert(element().isOptionHighlighted(option), Matchers.is(false), "ERROR MESSAGE IS REQUIRED"); return this; } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/BottomSheetAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/BottomSheetAssert.java index 9be5df6348..18e4493ada 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/BottomSheetAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/BottomSheetAssert.java @@ -29,12 +29,12 @@ public BottomSheetAssert values(final List values) { } public BottomSheetAssert opened() { - jdiAssert(element().isOpened(), Matchers.is(true)); + jdiAssert(element().isOpened(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } public BottomSheetAssert closed() { - jdiAssert(element().isClosed(), Matchers.is(true)); + jdiAssert(element().isClosed(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/CardAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/CardAssert.java index 260f40f33d..c66043c599 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/CardAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/CardAssert.java @@ -10,25 +10,25 @@ public class CardAssert extends UIAssert { @JDIAction("Assert that '{name}' has text '{0}'") public CardAssert assertCardText(String value) { - jdiAssert(element().getCardText().equals(value), Matchers.is(true)); + jdiAssert(element().getCardText().equals(value), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' alt image attribute has text '{0}'") public CardAssert assertAltImageAttribute(String value) { - jdiAssert(element().getImage().getAttribute("alt").contains(value), Matchers.is(true)); + jdiAssert(element().getImage().getAttribute("alt").contains(value), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' src image attribute has text '{0}'") public CardAssert assertSrcImageAttribute(String value) { - jdiAssert(element().getImage().getAttribute("src").contains(value), Matchers.is(true)); + jdiAssert(element().getImage().getAttribute("src").contains(value), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has '{0}' buttons") public CardAssert assertNumberOfButtonsOnCard(int number) { - jdiAssert(element().getButtons().size() == number, Matchers.is(true)); + jdiAssert(element().getButtons().size() == number, Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/ChipsAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/ChipsAssert.java index d52e787895..2162558ebb 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/ChipsAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/ChipsAssert.java @@ -14,7 +14,7 @@ public class ChipsAssert extends UIAssert { @JDIAction("Assert that '{name}' enabled") public ChipsAssert assertChipsIsEnabled() { - jdiAssert(element().enabled(), Matchers.is(true)); + jdiAssert(element().enabled(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/DatepickerAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/DatepickerAssert.java index 57c88ab6f0..ee4be11513 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/DatepickerAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/DatepickerAssert.java @@ -18,109 +18,109 @@ public class DatepickerAssert extends UIAssert implements ITextAssert { @JDIAction("Assert that '{name}' expanded") public DatepickerAssert expanded() { - jdiAssert(element().isExpanded(), Matchers.is(true)); + jdiAssert(element().isExpanded(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' collapsed") public DatepickerAssert collapsed() { - jdiAssert(element().isCollapsed(), Matchers.is(true)); + jdiAssert(element().isCollapsed(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' focused") public DatepickerAssert focused() { - jdiAssert(element().isFocused(), Matchers.is(true)); + jdiAssert(element().isFocused(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has locale '{0}'") public DatepickerAssert locale(final Locale locale) { - jdiAssert(element().isSelectedLocale(locale), Matchers.is(true)); + jdiAssert(element().isSelectedLocale(locale), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has first input & change events '{0}'") public DatepickerAssert firstInputChangeEvents(final List firstInputChangeEvents) { - jdiAssert(element().isFirstInputChangeEvents(firstInputChangeEvents), Matchers.is(true)); + jdiAssert(element().isFirstInputChangeEvents(firstInputChangeEvents), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has last input & change events '{0}'") public DatepickerAssert lastInputChangeEvents(final List lastInputChangeEvents) { - jdiAssert(element().isLastInputChangeEvents(lastInputChangeEvents), Matchers.is(true)); + jdiAssert(element().isLastInputChangeEvents(lastInputChangeEvents), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has last change event '{0}'") public DatepickerAssert lastChangeEvent(final String lastChangeEvent) { - jdiAssert(element().isLastChangeEvent(lastChangeEvent), Matchers.is(true)); + jdiAssert(element().isLastChangeEvent(lastChangeEvent), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has last input event '{0}'") public DatepickerAssert lastInputEvent(final String lastInputEvent) { - jdiAssert(element().isLastInputEvent(lastInputEvent), Matchers.is(true)); + jdiAssert(element().isLastInputEvent(lastInputEvent), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has valid value") public DatepickerAssert valid() { - jdiAssert(element().isValid(), Matchers.is(true)); + jdiAssert(element().isValid(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has invalid value") public DatepickerAssert invalid() { - jdiAssert(element().isInvalid(), Matchers.is(true)); + jdiAssert(element().isInvalid(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' enabled") public DatepickerAssert enabled() { - jdiAssert(element().isEnabled(), Matchers.is(true)); + jdiAssert(element().isEnabled(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' disabled") public DatepickerAssert disabled() { - jdiAssert(element().isDisabled(), Matchers.is(true)); + jdiAssert(element().isDisabled(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has enabled toggle") public DatepickerAssert enabledToggle() { - jdiAssert(element().isToggleEnabled(), Matchers.is(true)); + jdiAssert(element().isToggleEnabled(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has disabled toggle") public DatepickerAssert disabledToggle() { - jdiAssert(element().isToggleDisabled(), Matchers.is(true)); + jdiAssert(element().isToggleDisabled(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has enabled input") public DatepickerAssert enabledInput() { - jdiAssert(element().isInputEnabled(), Matchers.is(true)); + jdiAssert(element().isInputEnabled(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has disabled input") public DatepickerAssert disabledInput() { - jdiAssert(element().isInputDisabled(), Matchers.is(true)); + jdiAssert(element().isInputDisabled(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has enabled values '{0}'") public DatepickerAssert enabledNavigation(final String... navigationElements) { - jdiAssert(element().isEnabledNavigationElements(navigationElements), Matchers.is(true)); + jdiAssert(element().isEnabledNavigationElements(navigationElements), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has disabled values '{0}'") public DatepickerAssert disabledNavigation(final String... navigationElements) { - jdiAssert(element().isDisabledNavigationElements(navigationElements), Matchers.is(true)); + jdiAssert(element().isDisabledNavigationElements(navigationElements), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/DialogAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/DialogAssert.java index 82f24dc5b8..40f3f35200 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/DialogAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/DialogAssert.java @@ -8,22 +8,22 @@ public class DialogAssert extends UIAssert { public DialogAssert opened() { - jdiAssert(element().isOpened(), Matchers.is(true)); + jdiAssert(element().isOpened(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } public DialogAssert closed() { - jdiAssert(element().isClosed(), Matchers.is(true)); + jdiAssert(element().isClosed(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } public DialogAssert nameText(String name) { - jdiAssert(element().nameText(name), Matchers.is(true)); + jdiAssert(element().nameText(name), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } public DialogAssert answerText(String answer) { - jdiAssert(element().answerText(answer), Matchers.is(true)); + jdiAssert(element().answerText(answer), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/ExpansionPanelAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/ExpansionPanelAssert.java index 27c0628dde..281b564ecb 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/ExpansionPanelAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/ExpansionPanelAssert.java @@ -11,13 +11,13 @@ public class ExpansionPanelAssert extends UIAssert { @JDIAction("Assert that '{name}' expanded") public ExpansionPanelAssert expanded(final int indexNumber) { - jdiAssert(element().isExpanded(indexNumber), Matchers.is(true)); + jdiAssert(element().isExpanded(indexNumber), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' collapsed") public ExpansionPanelAssert collapsed(final int indexNumber) { - jdiAssert(element().isCollapsed(indexNumber), Matchers.is(true)); + jdiAssert(element().isCollapsed(indexNumber), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/InputAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/InputAssert.java index ad674fbbb4..4b1452b434 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/InputAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/InputAssert.java @@ -18,13 +18,13 @@ public InputAssert value(String text) { @JDIAction("Assert that '{name}' is readonly") public InputAssert readonly() { - jdiAssert(element().isReadonly(), Matchers.is(true)); + jdiAssert(element().isReadonly(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' is not readonly") public InputAssert notReadonly() { - jdiAssert(element().isReadonly(), Matchers.is(false)); + jdiAssert(element().isReadonly(), Matchers.is(false), "ERROR MESSAGE IS REQUIRED"); return this; } @@ -48,7 +48,7 @@ public InputAssert focused() { @JDIAction("Assert that '{name}' is not focused") public InputAssert notFocused() { - jdiAssert(element().isFocused(), Matchers.is(false)); + jdiAssert(element().isFocused(), Matchers.is(false), "ERROR MESSAGE IS REQUIRED"); return this; } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/MaterialSelectorAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/MaterialSelectorAssert.java index 5db77a9494..74934d5e0c 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/MaterialSelectorAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/MaterialSelectorAssert.java @@ -18,13 +18,13 @@ public class MaterialSelectorAssert extends UIAssert { @JDIAction("Assert that '{name}' expanded") public MaterialSelectorAssert expanded() { - jdiAssert(element().isExpanded(), Matchers.is(true)); + jdiAssert(element().isExpanded(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' collapsed") public MaterialSelectorAssert collapsed() { - jdiAssert(element().isCollapsed(), Matchers.is(true)); + jdiAssert(element().isCollapsed(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @@ -122,7 +122,7 @@ public MaterialSelectorAssert listDisabled(final String... values) { @JDIAction("Assert that rgba({0}, {1}, {2}, {3}) is the specified color") public MaterialSelectorAssert color(final int red, final int green, final int blue, final double a) { - jdiAssert(element().color(red, green, blue, a), Matchers.is(true)); + jdiAssert(element().color(red, green, blue, a), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/NestedDropdownMenuAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/NestedDropdownMenuAssert.java index bbafa0eba3..1fcee666a1 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/NestedDropdownMenuAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/NestedDropdownMenuAssert.java @@ -10,31 +10,31 @@ public class NestedDropdownMenuAssert extends UIAssert { @JDIAction("Assert that {name} is expanded") public NestedDropdownMenuAssert isExpanded() { - jdiAssert(element().isExpanded(), Matchers.is(true)); + jdiAssert(element().isExpanded(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that {name} is closed") public NestedDropdownMenuAssert isClosed() { - jdiAssert(element().isClosed(), Matchers.is(true)); + jdiAssert(element().isClosed(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that {name} expected value '{0} and actual value '{1}' are equals") public NestedDropdownMenuAssert checkValue(String expectedValue, String actualValue) { - jdiAssert(element().checkValue(expectedValue, actualValue), Matchers.is(true)); + jdiAssert(element().checkValue(expectedValue, actualValue), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that {name} option '{0}' is disabled") public NestedDropdownMenuAssert isDisabledMenuWithIconsOption(String value) { - jdiAssert(element().isDisabledMenuWithIconsOption(value), Matchers.is(true)); + jdiAssert(element().isDisabledMenuWithIconsOption(value), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that {name} option '{0}' is disabled") public NestedDropdownMenuAssert isDisabledNestedMenuOption(String... values) { - jdiAssert(element().isDisabledNestedMenuOption(values), Matchers.is(true)); + jdiAssert(element().isDisabledNestedMenuOption(values), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/PaginatorAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/PaginatorAssert.java index 0d716c79e6..d5997c86c5 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/PaginatorAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/PaginatorAssert.java @@ -39,21 +39,21 @@ public void range(final int from, final int to, final int total) { @JDIAction("Assert that previous button enabled for '{name}'") public void previousEnabled() { - jdiAssert(element().isPreviousEnabled(), Matchers.is(true)); + jdiAssert(element().isPreviousEnabled(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); } @JDIAction("Assert that previous button disabled for '{name}'") public void previousDisabled() { - jdiAssert(element().isPreviousEnabled(), Matchers.is(false)); + jdiAssert(element().isPreviousEnabled(), Matchers.is(false), "ERROR MESSAGE IS REQUIRED"); } @JDIAction("Assert that next button enabled for '{name}'") public void nextEnabled() { - jdiAssert(element().isNextEnabled(), Matchers.is(true)); + jdiAssert(element().isNextEnabled(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); } @JDIAction("Assert that next button disabled for '{name}'") public void nextDisabled() { - jdiAssert(element().isNextEnabled(), Matchers.is(false)); + jdiAssert(element().isNextEnabled(), Matchers.is(false), "ERROR MESSAGE IS REQUIRED"); } } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/SnackbarAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/SnackbarAssert.java index 7dff75db7d..29031927b2 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/SnackbarAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/SnackbarAssert.java @@ -17,7 +17,7 @@ public SnackbarAssert message(String expected) { @JDIAction("Assert that '{name}' has no action") public SnackbarAssert action() { - jdiAssert(element().isActionDisplayed(), Matchers.is(false)); + jdiAssert(element().isActionDisplayed(), Matchers.is(false), "ERROR MESSAGE IS REQUIRED"); return this; } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/SortingOverviewAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/SortingOverviewAssert.java index e0325fca57..2cf41a9dff 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/SortingOverviewAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/SortingOverviewAssert.java @@ -11,13 +11,13 @@ public class SortingOverviewAssert extends UIAssert condition) { - jdiAssert(element().tabsTitlesContainValues(condition), Matchers.is(true)); + jdiAssert(element().tabsTitlesContainValues(condition), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' is highlighted when '{0}' tab number is provided") public TabGroupAssert assertTabIsHighlighted(int tabNumber) { - jdiAssert(element().tabIsHighlighted(tabNumber), Matchers.is(true)); + jdiAssert(element().tabIsHighlighted(tabNumber), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has '{0}' values") public TabGroupAssert assertTabsLinksTitles(List condition) { - jdiAssert(element().tabsLinksTitlesContainValues(condition), Matchers.is(true)); + jdiAssert(element().tabsLinksTitlesContainValues(condition), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' is highlighted when '{0}' tab number is provided") public TabGroupAssert assertTabWithLinkIsHighlighted(String tabTitle) { - jdiAssert(element().tabWithLinkIsHighlighted(tabTitle), Matchers.is(true)); + jdiAssert(element().tabWithLinkIsHighlighted(tabTitle), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } } diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/TextAreaAssert.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/TextAreaAssert.java index f7d6638a8d..64a024b27c 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/TextAreaAssert.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/TextAreaAssert.java @@ -11,7 +11,7 @@ public class TextAreaAssert extends UIAssert { @JDIAction("Assert that '{name}' has attribute auto-size") public TextAreaAssert autoSize() { - jdiAssert(element().hasAutoSize(), Matchers.is(true)); + jdiAssert(element().hasAutoSize(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @@ -30,31 +30,31 @@ public TextAreaAssert placeholder(String placeholder) { @JDIAction("Assert that '{name}' has height '{0}'") public TextAreaAssert height(int px) { jdiAssert(element().attr("style").contains(String.format("height: %spx", px)), - Matchers.is(true)); + Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has scroll up") public TextAreaAssert scrollUp() { - jdiAssert(element().hasScrollUp(), Matchers.is(true)); + jdiAssert(element().hasScrollUp(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has no scroll up") public TextAreaAssert noScrollUp() { - jdiAssert(element().hasScrollUp(), Matchers.is(false)); + jdiAssert(element().hasScrollUp(), Matchers.is(false), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has scroll down") public TextAreaAssert scrollDown() { - jdiAssert(element().hasScrollDown(), Matchers.is(true)); + jdiAssert(element().hasScrollDown(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED"); return this; } @JDIAction("Assert that '{name}' has no scroll down") public TextAreaAssert noScrollDown() { - jdiAssert(element().hasScrollDown(), Matchers.is(false)); + jdiAssert(element().hasScrollDown(), Matchers.is(false), "ERROR MESSAGE IS REQUIRED"); return this; } }