Search in sources :

Example 1 with ListLibraryAliquotsPage

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

the class BulkPoolIT method testSelectForPoolSeparately.

@Test
public void testSelectForPoolSeparately() {
    // goal: confirm that using the List Library Aliquots page to select aliquots for pooling separately
    // directs the page to the correct link with the correct aliquots
    ListLibraryAliquotsPage listPage = ListLibraryAliquotsPage.getListPage(getDriver(), getBaseUrl());
    DataTable aliquots = listPage.getTable();
    // should get LDI701 and LDI702
    aliquots.searchFor("LDI70*");
    assertEquals(2, aliquots.countRows());
    aliquots.checkBoxForRow(0);
    aliquots.checkBoxForRow(1);
    BulkPoolPage bulkPoolPage = listPage.poolSelectedSeparately();
    assertNotNull(bulkPoolPage);
}
Also used : DataTable(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.element.DataTable) ListLibraryAliquotsPage(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.ListLibraryAliquotsPage) BulkPoolPage(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.BulkPoolPage) Test(org.junit.Test)

Example 2 with ListLibraryAliquotsPage

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

the class BulkPoolIT method testSelectForPoolTogether.

@Test
public void testSelectForPoolTogether() {
    // goal: confirm that using the List Aliquots page to select aliquots for pooling together
    // directs the page to the correct link with the correct aliquots
    ListLibraryAliquotsPage listPage = ListLibraryAliquotsPage.getListPage(getDriver(), getBaseUrl());
    DataTable aliquots = listPage.getTable();
    // should get LDI701 and LDI702
    aliquots.searchFor("LDI70*");
    assertEquals(2, aliquots.countRows());
    aliquots.checkBoxForRow(0);
    aliquots.checkBoxForRow(1);
    BulkPoolPage bulkPoolPage = listPage.poolSelectedSeparately();
    assertNotNull(bulkPoolPage);
}
Also used : DataTable(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.element.DataTable) ListLibraryAliquotsPage(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.ListLibraryAliquotsPage) BulkPoolPage(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.BulkPoolPage) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 BulkPoolPage (uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.BulkPoolPage)2 ListLibraryAliquotsPage (uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.ListLibraryAliquotsPage)2 DataTable (uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.element.DataTable)2