Skip to content

Commit

Permalink
Fix test failures due to admin console link changes (#2302)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam authored Feb 27, 2025
1 parent 664b44f commit 2fb90bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/org/labkey/test/pages/core/admin/ShowAdminPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void clickAnalyticsSettings()
clickAndWait(elementCache().analyticsSettingsLink);
}

public void clickExternalRedirectHosts()
public void clickAllowedExternalRedirectHosts()
{
goToSettingsSection();
clickAndWait(elementCache().externalRedirectHostLink);
Expand Down Expand Up @@ -273,7 +273,7 @@ protected class ElementCache extends LabKeyPage.ElementCache
protected WebElement sectionActiveUsers = Locator.linkWithText("Active Users").findWhenNeeded(this);

protected WebElement analyticsSettingsLink = Locator.linkWithText("analytics settings").findWhenNeeded(this);
protected WebElement externalRedirectHostLink = Locator.linkWithText("external redirect hosts").findElement(this);
protected WebElement externalRedirectHostLink = Locator.linkWithText("allowed external redirect hosts").findElement(this);
protected WebElement auditLogLink = Locator.linkWithText("audit log").findWhenNeeded(this);
protected WebElement auditLogMaintenanceLink = Locator.linkWithText("Audit Log Maintenance").findWhenNeeded(this);
protected WebElement authenticationLink = Locator.linkWithText("authentication").findWhenNeeded(this);
Expand Down
2 changes: 1 addition & 1 deletion src/org/labkey/test/tests/AdminConsoleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public void testAppAdminRole()
public void testConfigureReturnURL()
{
String host = "google.com";
goToAdminConsole().clickExternalRedirectHosts();
goToAdminConsole().clickAllowedExternalRedirectHosts();

log("Verifying host cannot be blank ");
clickButton("Save");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected void verifySitePermissionSetting(boolean canSave)
isElementPresent(Locator.tagWithText("span","Save")));

log("Verify permissions for External Redirect Hosts");
goToAdminConsole().goToSettingsSection().clickExternalRedirectHosts();
goToAdminConsole().goToSettingsSection().clickAllowedExternalRedirectHosts();
checker().verifyEquals("Incorrect access for External Redirect Hosts", canSave,
isElementPresent(Locator.tagWithText("span","Save")));

Expand Down

0 comments on commit 2fb90bf

Please sign in to comment.