Skip to content

Commit

Permalink
simplify onlyServerCanSetFieldToValid test
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Aug 11, 2022
1 parent 4951525 commit ff60c52
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ public void onlyServerCanSetFieldToValid() {
executeScript("arguments[0].validate()", field);
assertClientValid(false);

TestBenchElement input = field.$("input").first();
input.setProperty("value", "10:00");
input.dispatchEvent("input");
field.sendKeys("10:00");
executeScript("arguments[0].validate()", field);
assertClientValid(false);

input.dispatchEvent("change");
field.sendKeys(Keys.ENTER);
assertServerValid(true);
assertClientValid(true);
}
Expand Down

0 comments on commit ff60c52

Please sign in to comment.