Search in sources :

Example 1 with ListPoolsPage

use of uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.ListPoolsPage in project miso-lims by miso-lims.

the class BulkPoolIT method testSelectForMerge.

@Test
public void testSelectForMerge() {
    ListPoolsPage listPools = ListPoolsPage.getListPage(getDriver(), getBaseUrl());
    DataTable pools = listPools.getTable();
    // should get IPO200001 and IPO200002
    pools.searchFor("IPO20000*");
    pools.checkBoxForRow(0);
    pools.checkBoxForRow(1);
    Map<String, Integer> proportions = new HashMap<>();
    proportions.put("IPO200001", 1);
    proportions.put("IPO200002", 3);
    BulkPoolPage newPage = listPools.mergeSelected(proportions);
    assertNotNull(newPage);
}
Also used : DataTable(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.element.DataTable) HashMap(java.util.HashMap) BulkPoolPage(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.BulkPoolPage) ListPoolsPage(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.ListPoolsPage) Test(org.junit.Test)

Aggregations

HashMap (java.util.HashMap)1 Test (org.junit.Test)1 BulkPoolPage (uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.BulkPoolPage)1 ListPoolsPage (uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.ListPoolsPage)1 DataTable (uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.element.DataTable)1