Skip to content

Commit 944b23b

Browse files
committed
Add rule to use Matcher.is(true|false) with error message
1 parent 32467b6 commit 944b23b

File tree

1 file changed

+2
-2
lines changed
  • jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts

1 file changed

+2
-2
lines changed

jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/InputAssert.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public InputAssert placeholder(String placeholder) {
4242

4343
@JDIAction("Assert that '{name}' is focused")
4444
public InputAssert focused() {
45-
jdiAssert(element().isFocused(), Matchers.is(true));
45+
jdiAssert(element().isFocused(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED");
4646
return this;
4747
}
4848

@@ -54,7 +54,7 @@ public InputAssert notFocused() {
5454

5555
@JDIAction("Assert that '{name}' has aria-label '{0}'")
5656
public InputAssert ariaLabel(String ariaLabel) {
57-
jdiAssert(element().hasAriaLabel(ariaLabel), Matchers.is(true));
57+
jdiAssert(element().hasAriaLabel(ariaLabel), Matchers.is(true), "ERROR MESSAGE IS REQUIRED");
5858
return this;
5959
}
6060
}

0 commit comments

Comments
 (0)