Skip to content

Commit e224ea8

Browse files
authored
Debug SequenceTest failure (#144)
* Fix SequenceTest failure
1 parent 3b88e25 commit e224ea8

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

SequenceAnalysis/test/src/org/labkey/test/tests/external/labModules/SequenceTest.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -953,16 +953,18 @@ private void readsetPanelTest() throws IOException
953953
_ext4Helper.queryOne("window textfield", Ext4FieldRef.class).setValue(groupName);
954954
waitAndClick(Ext4Helper.Locators.ext4ButtonEnabled("OK"));
955955
sleep(200);
956+
956957
Assert.assertEquals("incorrect group count", 4L, readDataGrid.getEval("store.getGroups().length"));
957958
Assert.assertEquals("incorrect readsetname", "dualBarcodes_SIV", readsetGrid.getFieldValue(1, "fileGroupId"));
958-
readDataGrid.setGridCell(2, "fileGroupId", groupName);
959+
readDataGrid.setGridCell(4, "fileGroupId", groupName);
959960
sleep(200);
961+
960962
Assert.assertEquals("incorrect group count", 3L, readDataGrid.getEval("store.getGroups().length"));
961963
Assert.assertEquals("incorrect readsetname", groupName, readsetGrid.getFieldValue(1, "fileGroupId"));
962964

963-
readDataGrid.setGridCell(1, "fileGroupId", groupName);
965+
readDataGrid.setGridCell(2, "fileGroupId", groupName);
964966
Assert.assertEquals("incorrect readsetname", "sample454_SIV", readsetGrid.getFieldValue(3, "fileGroupId"));
965-
readDataGrid.setGridCell(5, "fileGroupId", "sample454_SIVb");
967+
readDataGrid.setGridCell(1, "fileGroupId", "sample454_SIVb");
966968
Assert.assertEquals("incorrect readsetname", "sample454_SIVb", readsetGrid.getFieldValue(3, "fileGroupId"));
967969

968970
//now we check readset info
@@ -1058,19 +1060,19 @@ private void readsetPanelTest() throws IOException
10581060
assertEquals("Unexpected value for param", "delete", fieldsJson.get("inputFileTreatment"));
10591061
assertEquals("Unexpected value for param", true, fieldsJson.get("deleteIntermediateFiles"));
10601062

1061-
Map<String, Object> fileGroup0 = (Map) fieldsJson.get("fileGroup_1");
1063+
Map<String, Object> fileGroup0 = (Map) fieldsJson.get("fileGroup_3");
10621064
Assert.assertEquals("Unexpected value for param", groupName, fileGroup0.get("name"));
10631065
List<Map> arr0 = (List)fileGroup0.get("files");
1064-
Assert.assertEquals(2, arr0.size());
1066+
Assert.assertEquals(3, arr0.size());
10651067
Assert.assertEquals(groupName, arr0.get(0).get("fileGroupId"));
10661068
Assert.assertEquals("s_G1_L001", arr0.get(0).get("platformUnit"));
10671069

10681070
Assert.assertEquals(groupName, arr0.get(1).get("fileGroupId"));
10691071
Assert.assertEquals("", arr0.get(1).get("platformUnit"));
10701072

1071-
Map<String, Object> fileGroup1 = (Map) fieldsJson.get("fileGroup_2");
1072-
Assert.assertEquals(2, ((List)fileGroup1.get("files")).size());
1073-
Map<String, Object> fileGroup2 = (Map) fieldsJson.get("fileGroup_3");
1073+
Map<String, Object> fileGroup1 = (Map) fieldsJson.get("fileGroup_1");
1074+
Assert.assertEquals(1, ((List)fileGroup1.get("files")).size());
1075+
Map<String, Object> fileGroup2 = (Map) fieldsJson.get("fileGroup_2");
10741076
Assert.assertEquals(1, ((List)fileGroup2.get("files")).size());
10751077

10761078
Map<String, Object> sample0 = (Map) fieldsJson.get("readset_0");

0 commit comments

Comments
 (0)