Skip to content

Commit 439f6aa

Browse files
Using the ListHelper to create the lists adds a bunch of unnecessary UI interaction. The API helper will speed this up a ton.
Co-authored-by: Trey Chadick <[email protected]>
1 parent 2f09a2c commit 439f6aa

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/org/labkey/test/tests/list/ListTest.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,13 @@ public void testAuditDetailRejectsRowIdFromOtherList() throws Exception
882882
final String LIST_Y_ROW_EDITED = "y-modified-secret";
883883

884884
log("Set up two lists in the same container, each with a Name field");
885-
_listHelper.createList(getProjectName(), LIST_X, "Key",
886-
new FieldDefinition(NAME_FIELD, ColumnType.String));
887-
_listHelper.createList(getProjectName(), LIST_Y, "Key",
888-
new FieldDefinition(NAME_FIELD, ColumnType.String));
885+
Connection connection = createDefaultConnection();
886+
new IntListDefinition(LIST_X, "Key")
887+
.addField(new FieldDefinition(NAME_FIELD, ColumnType.String))
888+
.create(connection, getProjectName());
889+
new IntListDefinition(LIST_Y, "Key")
890+
.addField(new FieldDefinition(NAME_FIELD, ColumnType.String))
891+
.create(connection, getProjectName());
889892

890893
log("Insert and then modify a row in List Y so it generates an audit event with old/new record maps");
891894
_listHelper.goToList(LIST_Y);

0 commit comments

Comments
 (0)