Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix redirect host test #2307

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/org/labkey/test/tests/AdminConsoleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package org.labkey.test.tests;

import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.labkey.remoteapi.CommandException;
Expand Down Expand Up @@ -257,19 +256,19 @@ public void testConfigureReturnURL()

log("Verifying host cannot be blank ");
clickButton("Save");
assertElementPresent(Locator.css(".labkey-error").withText("External host name must not be blank."));
assertElementPresent(Locator.css(".labkey-error").withText("Redirect host name must not be blank."));

log("Setting the host URL");
setFormElement(Locator.name("newExternalHost"), host);
setFormElement(Locator.name("newValue"), host);
clickButton("Save");

log("Verifying url got added correctly");
assertEquals(host, getFormElement(Locator.name("existingExternalHost1")));
assertEquals(host, getFormElement(Locator.name("existingValue1")));

log("Verifying cannot be duplicate");
setFormElement(Locator.name("newExternalHost"), host);
setFormElement(Locator.name("newValue"), host);
clickButton("Save");
assertElementPresent(Locator.css(".labkey-error").withText("'" + host + "' already exists. Duplicate hosts not allowed."));
assertElementPresent(Locator.css(".labkey-error").withText("'" + host + "' already exists. Duplicate values not allowed."));
}

/*
Expand Down