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
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,17 @@ public void testExportExcelDownload() throws IOException
LearnGrid learnGrid = new LearnGrid(LearnTab.ANTIGENS, this);
learnGrid.setSearch("HIV-1 D");
assertEquals("Incorrect number of rows after antigen filter", 1, learnGrid.getRowCount());
File filteredData = clickExportExcel(LearnTab.ANTIGENS, null);
click(Locator.tagWithId("span", "learn-grid-export-button-id-btnIconEl"));
File filteredData = clickAndWaitForDownload(Locator.linkWithText("Excel (*.XLS)"));
assertEquals("Antigen : Incorrect number of rows imported", 1, getRowCount(filteredData));
assertEquals("Incorrect Antigen imported after filter", "HIV-1 D.99986.B12 [gx120.D7.avi]", getRowFromExcel(filteredData, 1).get(2)); //getting short name column data

log("Verifying only filtered rows are downloaded\n");
learnGrid = cds.viewLearnAboutPage(LearnTab.STUDIES);
learnGrid.setSearch("RED 1");
assertEquals("Incorrect number of rows after study filter", 1, learnGrid.getRowCount());
filteredData = clickExportExcel(LearnTab.STUDIES, null);
click(Locator.tagWithId("span", "learn-grid-export-button-id-btnIconEl"));
filteredData = clickAndWaitForDownload(Locator.linkWithText("Excel (*.XLS)"));
assertEquals("Incorrect number of rows imported", 1, getRowCount(filteredData));
assertEquals("Incorrect study name", "RED 1", getRowFromExcel(filteredData, 1).get(2));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ public void verifyBinnedPlot()
waitForText("Heatmap on");

log("Validate that there are bin squares in the plot.");
int squareCount = getElementCount(Locator.css("svg g.layer a.vis-bin-square"));
int squareCount = Locator.tagWithClass("a","vis-bin vis-bin-square").findElements(getDriver()).size();
assertTrue("Expected over 2000 bin squares found: " + squareCount, squareCount > 2000);

cds.ensureNoFilter();
Expand Down