mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25: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));
|
waitFor(new FixedPeriod(1000));
|
||||||
waitForPageToLoad();
|
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();
|
setTestFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,8 @@ public class AddVisitIT extends SeleniumBaseIT {
|
||||||
driver.get(BASE_URL+"/owners/find");
|
driver.get(BASE_URL+"/owners/find");
|
||||||
|
|
||||||
driver.findElement(By.name("lastName")).submit();
|
driver.findElement(By.name("lastName")).submit();
|
||||||
|
waitFor(new FixedPeriod(1000));
|
||||||
|
waitForPageToLoad();
|
||||||
|
|
||||||
//Go to first owner
|
//Go to first owner
|
||||||
WebElement table = driver.findElement(By.tagName("table"));
|
WebElement table = driver.findElement(By.tagName("table"));
|
||||||
|
|
Loading…
Reference in a new issue