diff --git a/src/test/java/nl/utwente/bpsd/selenium/AddOwnerIT.java b/src/test/java/nl/utwente/bpsd/selenium/AddOwnerIT.java index 1bcaf0099..91158ea62 100644 --- a/src/test/java/nl/utwente/bpsd/selenium/AddOwnerIT.java +++ b/src/test/java/nl/utwente/bpsd/selenium/AddOwnerIT.java @@ -31,7 +31,7 @@ public class AddOwnerIT extends SeleniumBaseIT { fillTextField(By.name("telephone"), "0534890000"); driver.findElement(By.name("telephone")).submit(); waitForPageToLoad(); - Assert.assertTrue(pageContainsText("Sophie Lathouwers")); + Assert.assertTrue("Could not locate \"Sophie Lathouwers\" on the page. This is the html of the current page: "+getHTML(), pageContainsText("Sophie Lathouwers")); //Add a pet waitFor(ExpectedConditions.presenceOfAllElementsLocatedBy(By.linkText("Add New Pet")));