Fixed test.

This commit is contained in:
Andrew Pitt 2020-01-06 15:09:40 -05:00
parent 3d6c9040b2
commit 0a9e18d25b

View file

@ -33,7 +33,7 @@ public class MainPageIT {
driver.get(url);
assertEquals("Title not as expected: ", "PetClinic :: a Spring Framework demonstration", getTitle());
String welcomeText = driver.findElement(By.id("welcome")).getText();
assertEquals("Wrong welcome text.", "Welcome to the Red Hat Pet Clinic!", welcomeText);
assertEquals("Wrong welcome text.", "Welcome to the Red Hat Pet Clinic", welcomeText);
System.err.println("Text extracted: " + welcomeText);
}