Skip to content

Commit

Permalink
Stash in a static
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam committed Nov 8, 2024
1 parent 990b57a commit f3c2d21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/org/labkey/test/tests/UserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public class UserTest extends BaseWebDriverTest

protected final UIUserHelper _userHelper = new UIUserHelper(this);

private static int _normalUserId;

@Nullable
@Override
protected String getProjectName()
Expand All @@ -103,7 +105,7 @@ public static void setupProject()
private void doSetup()
{
_containerHelper.createProject(getProjectName(), null);
createUserWithPermissions(NORMAL_USER, getProjectName(), "Editor");
_normalUserId = createUserWithPermissions(NORMAL_USER, getProjectName(), "Editor").getUserId();
}

@Override
Expand Down Expand Up @@ -263,7 +265,7 @@ public void testSelfServiceEmailSupport()
public void testCustomFieldLogin()
{
String customFieldValue = "loginCredentials";
setInitialPassword(NORMAL_USER);
setInitialPassword(_normalUserId);

goToSiteUsers();
DataRegionTable table = new DataRegionTable("Users", getDriver());
Expand Down

0 comments on commit f3c2d21

Please sign in to comment.