Search in sources :

Example 1 with IdentitySearchPage

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

the class ListTablesIT method testIdentitySearchToolSetup.

@Test
public void testIdentitySearchToolSetup() throws Exception {
    // Goal: ensure all expected columns are present and no extra
    login();
    IdentitySearchPage page = IdentitySearchPage.get(getDriver(), getBaseUrl());
    DataTable table = page.getSamplesTable();
    List<String> headings = table.getColumnHeadings();
    assertEquals("number of columns", samplesColumns.size(), headings.size());
    for (String col : samplesColumns) {
        assertTrue("Check for column: '" + col + "'", headings.contains(col));
    }
}
Also used : DataTable(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.element.DataTable) IdentitySearchPage(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.IdentitySearchPage) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 IdentitySearchPage (uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.IdentitySearchPage)1 DataTable (uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.element.DataTable)1