Skip to content

Commit 0a62518

Browse files
committed
Fix more column references
1 parent 47d2b52 commit 0a62518

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ms2/test/src/org/labkey/test/tests/ms2/MS2Test.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,17 +1248,18 @@ private void validateContainerFilter()
12481248
DataRegionTable dataTable = viewQueryData("ms2", "XTandemPeptides");
12491249
dataTable.setContainerFilter(DataRegionTable.ContainerFilterType.CURRENT_AND_SUBFOLDERS);
12501250

1251+
FieldKey runGroupsFk = FieldKey.fromParts("Fraction", "Run", "ExperimentRunLSID", "RunGroups");
12511252
_customizeViewsHelper.openCustomizeViewPanel();
1252-
_customizeViewsHelper.addColumn(FieldKey.fromParts("Fraction", "Run", "ExperimentRunLSID", "RunGroups"));
1253+
_customizeViewsHelper.addColumn(runGroupsFk);
12531254
_customizeViewsHelper.applyCustomView();
12541255
assertNotEquals("All rows should have a value for the run group", 0, dataTable.getDataRowCount());
12551256

12561257
// validate a single run group with the expected label
1257-
Set<String> runGroups = new HashSet<>(dataTable.getColumnDataAsText("RunGroups"));
1258+
Set<String> runGroups = new HashSet<>(dataTable.getColumnDataAsText(runGroupsFk));
12581259
assertEquals("Incorrect number of run groups", 1, runGroups.size());
12591260
assertEquals("Invalid run group label", RUN_GROUP3_NAME, runGroups.iterator().next());
12601261

1261-
dataTable.setFilter("Fraction/Run/ExperimentRunLSID/RunGroups", "Is Blank");
1262+
dataTable.setFilter(runGroupsFk, "Is Blank");
12621263
assertEquals("All rows should have a value for the run group", 0, dataTable.getDataRowCount());
12631264
}
12641265
}

0 commit comments

Comments
 (0)