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());
}
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());
}
Aggregations