Skip to content

Commit

Permalink
Add rule to use Matcher.is(true|false) with error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap committed Dec 23, 2023
1 parent 32467b6 commit 944b23b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public InputAssert placeholder(String placeholder) {

@JDIAction("Assert that '{name}' is focused")
public InputAssert focused() {
jdiAssert(element().isFocused(), Matchers.is(true));
jdiAssert(element().isFocused(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED");
return this;
}

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

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

0 comments on commit 944b23b

Please sign in to comment.