Skip to content

Commit 449d280

Browse files
committed
Update CASServerTest to verify renew=true
1 parent bae8e5e commit 449d280

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

src/org/labkey/test/LabKeySiteWrapper.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,7 @@ public void simpleSignIn()
156156
}
157157
else
158158
{
159-
log("Signing in as " + PasswordUtil.getUsername());
160-
assertElementPresent(Locator.tagWithName("form", "login"));
161-
setFormElement(Locator.name("email"), PasswordUtil.getUsername());
162-
setFormElement(Locator.name("password"), PasswordUtil.getPassword());
163-
acceptTermsOfUse(null, false);
164-
clickButton("Sign In", 0);
159+
fillSignInFormAndSubmit();
165160

166161
// verify we're signed in now
167162
if (!waitFor(() ->
@@ -202,6 +197,16 @@ else if (errors.contains("log in and approve the terms of use."))
202197
WebTestHelper.saveSession(PasswordUtil.getUsername(), getDriver());
203198
}
204199

200+
public void fillSignInFormAndSubmit()
201+
{
202+
log("Signing in as " + PasswordUtil.getUsername());
203+
assertElementPresent(Locator.tagWithName("form", "login"));
204+
setFormElement(Locator.name("email"), PasswordUtil.getUsername());
205+
setFormElement(Locator.name("password"), PasswordUtil.getPassword());
206+
acceptTermsOfUse(null, false);
207+
clickButton("Sign In", 0);
208+
}
209+
205210
/**
206211
* Call the LogoutApi to sign out
207212
*/

src/org/labkey/test/WebDriverWrapper.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,12 @@ public Connection createDefaultConnection(boolean reuseSession)
11691169
return createDefaultConnection();
11701170
}
11711171

1172+
// Exempt the provided URL from controller-first URL warnings and exceptions
1173+
public void allowControllerFirstUrl(String url)
1174+
{
1175+
_controllerFirstUrls.add(url);
1176+
}
1177+
11721178
public long beginAt(String url)
11731179
{
11741180
return beginAt(url, defaultWaitForPage);

0 commit comments

Comments
 (0)