Updated test

This commit is contained in:
Andrew Pitt 2020-01-06 15:00:34 -05:00
parent a53a503ceb
commit 3d6c9040b2

View file

@ -6,6 +6,7 @@ import java.net.MalformedURLException;
import org.junit.After; import org.junit.After;
import org.junit.Test; import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriver;
public class MainPageIT { public class MainPageIT {
@ -31,9 +32,9 @@ public class MainPageIT {
WebDriver driver = config.getDriver(); WebDriver driver = config.getDriver();
driver.get(url); driver.get(url);
assertEquals("Title not as expected: ", "PetClinic :: a Spring Framework demonstration", getTitle()); assertEquals("Title not as expected: ", "PetClinic :: a Spring Framework demonstration", getTitle());
// String welcomeText = driver.findElement(By.id("welcome")).getText(); String welcomeText = driver.findElement(By.id("welcome")).getText();
// assertEquals("Wrong welcome text.", "Welcome to the Pet Clinic!", welcomeText); assertEquals("Wrong welcome text.", "Welcome to the Red Hat Pet Clinic!", welcomeText);
// System.out.println("Text extracted: " + welcomeText); System.err.println("Text extracted: " + welcomeText);
} }
} }