Skip to content

Commit

Permalink
4908 fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kira-vlsv committed Apr 17, 2024
1 parent 64851fb commit 693e54e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ public FormFieldsAssert alwaysFloatLabel() {

@JDIAction(value = "Assert that {name} is required", isAssert = true)
public FormFieldsAssert disabled() {
jdiAssert(element().isDisabled(), Matchers.is(true), "Field is not disabled");
jdiAssert(element().isDisabled(), Matchers.is(false), "Field is not disabled");
return this;
}

@JDIAction(value = "Assert that {name} is not required", isAssert = true)
public FormFieldsAssert notDisabled() {
jdiAssert(element().isDisabled(), Matchers.is(false), "Field is disabled");
jdiAssert(element().isEnabled(), Matchers.is(true), "Field is disabled");
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ public boolean hasAlwaysFloatLabel() {
}

@Override
@JDIAction("Check if '{name}' is disabled")
public boolean isDisabled() {
return core().attr("class").contains("mat-form-field-disabled");
@JDIAction("Check if '{name}' is enabled")
public boolean isEnabled() {
return !core().find(By.cssSelector("[class*='mat-form-field-disabled']")).isExist();
}

@JDIAction("Check if select field '{name}' is empty")
Expand Down

0 comments on commit 693e54e

Please sign in to comment.