Skip to content

Commit 672c500

Browse files
Make UserTest.testCustomFieldLogin Re-runable (#2444)
1 parent 161d45d commit 672c500

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/org/labkey/test/tests/UserTest.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,14 @@ public void testCustomFieldLogin()
274274
log("Adding the custom field to core.Users");
275275
DomainDesignerPage domainDesignerPage = new DomainDesignerPage(getDriver());
276276
DomainFormPanel domainFormPanel = domainDesignerPage.fieldsPanel();
277-
domainFormPanel.addField("UID")
278-
.setType(FieldDefinition.ColumnType.String);
279-
domainDesignerPage.clickSave();
277+
if (!domainFormPanel.fieldNames().contains("UID"))
278+
{
279+
domainFormPanel.addField("UID")
280+
.setType(FieldDefinition.ColumnType.String);
281+
domainDesignerPage.clickSave();
282+
}
283+
else
284+
domainDesignerPage.clickCancel();
280285

281286
log("Adding value to the custom field");
282287
navigateToUserDetails(NORMAL_USER);

0 commit comments

Comments
 (0)