Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions src/org/labkey/test/components/domain/DomainFieldRow.java
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ public DomainFieldRow clickRemoveOntologyConcept()

public void setAllowMultipleSelections(Boolean allowMultipleSelections)
{
WebDriverWrapper.waitFor(() -> elementCache().allowMultipleSelectionsCheckbox.isDisplayed(),
"Allow Multiple Selections checkbox did not become visible", 2000);
elementCache().allowMultipleSelectionsCheckbox.set(allowMultipleSelections);
}

Expand Down
7 changes: 3 additions & 4 deletions src/org/labkey/test/util/data/TestDataUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -581,14 +581,13 @@ public static List<List<String>> readRowsFromFile(File file, CSVFormat format) t
public static List<String> parseMultiValueText(String multiValueString) throws IOException
{
CSVFormat format = CSVFormat.RFC4180.builder()
.setIgnoreSurroundingSpaces(true).get();
.setIgnoreSurroundingSpaces(true).setTrim(true).get();
try (CSVParser parser = format.parse(new StringReader(multiValueString)))
{
List<CSVRecord> records = parser.getRecords();
List<List<String>> list = records.stream().map(CSVRecord::toList).toList();
if (list.size() != 1)
if (records.size() != 1)
throw new IllegalArgumentException("Invalid multi-value text string: " + multiValueString);
return list.getFirst();
return records.getFirst().toList();
}
}

Expand Down