Skip to content

Commit ec6836e

Browse files
committed
Updating sample tests for new UI layout
1 parent c5727c7 commit ec6836e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/selenified_tests/java/com/coveros/training/selenified/SelenifiedSample.java

+8-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
public class SelenifiedSample extends Selenified {
1616

1717
static final String BASE_URL = "http://localhost:8080/demo/";
18-
static final String LIBRARY_URL = BASE_URL + "library";
18+
static final String LIBRARY_URL = BASE_URL + "library.html";
1919
static final String RESET_DATABASE_URL = BASE_URL + "flyway";
2020

2121
@BeforeClass(alwaysRun = true)
@@ -29,7 +29,7 @@ public void sampleTest() {
2929
// use this object to manipulate the app
3030
App app = this.apps.get();
3131
// verify the correct page title
32-
app.azzert().titleEquals("Web Demo");
32+
app.azzert().titleEquals("Library");
3333
// verify no issues
3434
finish();
3535
}
@@ -72,10 +72,13 @@ public void sampleTest2() {
7272
public void sampleTest3() {
7373
// arrange
7474
App app = this.apps.get();
75+
7576
final WebDriver driver = app.getDriver();
7677
String username = "someuser";
7778
String password = "passworsdosjfasldf";
7879

80+
app.goToURL(LIBRARY_URL);
81+
7982
final WebElement login_username = driver.findElement(By.id("login_username"));
8083
login_username.sendKeys(username);
8184

@@ -103,6 +106,8 @@ public void sampleTest4() {
103106
String username = "someuser";
104107
String password = "passworsdosjfasldf";
105108

109+
app.goToURL(LIBRARY_URL);
110+
106111
final WebElement register_username = driver.findElement(By.id("register_username"));
107112
register_username.sendKeys(username);
108113

@@ -112,7 +117,7 @@ public void sampleTest4() {
112117
final WebElement register_submit = driver.findElement(By.id("register_submit"));
113118
register_submit.click();
114119

115-
driver.get(BASE_URL);
120+
driver.get(LIBRARY_URL);
116121

117122
final WebElement login_username = driver.findElement(By.id("login_username"));
118123
login_username.sendKeys(username);

0 commit comments

Comments
 (0)