Search in sources :

Example 1 with Row

use of io.pivotal.cla.webdriver.pages.admin.AdminListClasPage.Row in project pivotal-cla by pivotalsoftware.

the class AdminListClaTests method listClasDelete.

@Test
public void listClasDelete() {
    when(mockClaRepository.findAll()).thenReturn(Arrays.asList(cla));
    AdminListClasPage listPage = AdminListClasPage.go(driver);
    listPage.assertAt();
    Row row = listPage.row(0);
    AdminListClasPage deletePage = row.delete();
    deletePage.assertAt();
    verify(mockClaRepository).delete(cla.getId());
}
Also used : AdminListClasPage(io.pivotal.cla.webdriver.pages.admin.AdminListClasPage) Row(io.pivotal.cla.webdriver.pages.admin.AdminListClasPage.Row) Test(org.junit.Test)

Example 2 with Row

use of io.pivotal.cla.webdriver.pages.admin.AdminListClasPage.Row in project pivotal-cla by pivotalsoftware.

the class AdminListClaTests method listClas.

@Test
public void listClas() {
    cla.setDescription("this here");
    when(mockClaRepository.findAll()).thenReturn(Arrays.asList(cla));
    AdminListClasPage listPage = AdminListClasPage.go(driver);
    listPage.assertAt();
    Row row = listPage.row(0);
    assertThat(row.getName()).isEqualTo(cla.getName());
    assertThat(row.getDescription()).isEqualTo(cla.getDescription());
}
Also used : AdminListClasPage(io.pivotal.cla.webdriver.pages.admin.AdminListClasPage) Row(io.pivotal.cla.webdriver.pages.admin.AdminListClasPage.Row) Test(org.junit.Test)

Aggregations

AdminListClasPage (io.pivotal.cla.webdriver.pages.admin.AdminListClasPage)2 Row (io.pivotal.cla.webdriver.pages.admin.AdminListClasPage.Row)2 Test (org.junit.Test)2