Skip to content

Commit

Permalink
Update SampleCrudViewIT.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ZheSun88 authored Jan 14, 2025
1 parent 1b7727b commit df7cf26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/org/vaadin/example/crud/SampleCrudViewIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void userSelectsProduct_cannotEditProductInformation() {
@Test
public void adminSelectsProduct_canUpdateProductInformation() {

waitUntil(driver->$(LoginFormElement.class).exists());
// given authenticated as an admin
$(LoginFormElement.class).first().login("admin", "admin");

Expand All @@ -61,6 +62,7 @@ public void adminSelectsProduct_canUpdateProductInformation() {

@Test
public void adminCreatesNewProduct_productIsAvailableInGird() {
waitUntil(driver->$(LoginFormElement.class).exists());
// given authenticated as an admin
$(LoginFormElement.class).first().login("admin", "admin");

Expand Down

0 comments on commit df7cf26

Please sign in to comment.