Skip to content

Commit bea55bc

Browse files
committed
Merge remote-tracking branch 'origin/develop' into fb_moreAccessibility
2 parents 6c0faa3 + cedecd6 commit bea55bc

2 files changed

Lines changed: 17 additions & 15 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 & 9 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);
@@ -3991,15 +3997,6 @@ public boolean isChecked(Locator checkBoxLocator)
39913997
return checkBoxLocator.findElement(getDriver()).isSelected();
39923998
}
39933999

3994-
/**
3995-
* @deprecated Use {@link WebElement#isSelected()}
3996-
*/
3997-
@Deprecated (since = "22.9")
3998-
public boolean isChecked(WebElement checkBox)
3999-
{
4000-
return checkBox.isSelected();
4001-
}
4002-
40034000
/**
40044001
* Try to select option by text or value.
40054002
*/

0 commit comments

Comments
 (0)