mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:15:50 +00:00
Add more waits
This commit is contained in:
parent
6a85a1ac63
commit
b544ab80bd
2 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,7 @@ public class AddOwnerIT extends SeleniumBaseIT {
|
|||
|
||||
waitFor(new FixedPeriod(1000));
|
||||
waitForPageToLoad();
|
||||
Assert.assertTrue(pageContainsText("Thumper"));
|
||||
Assert.assertTrue("Could not locate \"Thumper\" on the page. This is the html of the current page: "+getHTML(),pageContainsText("Thumper"));
|
||||
setTestFinished();
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@ public class AddVisitIT extends SeleniumBaseIT {
|
|||
driver.get(BASE_URL+"/owners/find");
|
||||
|
||||
driver.findElement(By.name("lastName")).submit();
|
||||
waitFor(new FixedPeriod(1000));
|
||||
waitForPageToLoad();
|
||||
|
||||
//Go to first owner
|
||||
WebElement table = driver.findElement(By.tagName("table"));
|
||||
|
|
Loading…
Reference in a new issue