mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
Updated integration test
This commit is contained in:
parent
8a836e0536
commit
c8f07593b1
1 changed files with 0 additions and 10 deletions
|
@ -37,14 +37,4 @@ public class MainPageIT {
|
||||||
System.err.println("Text extracted: " + welcomeText);
|
System.err.println("Text extracted: " + welcomeText);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void petclinicTitleChromeIT() {
|
|
||||||
WebDriver driver = config.getChromeDriver();
|
|
||||||
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);
|
|
||||||
System.err.println("Text extracted: " + welcomeText);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue