use of io.pivotal.cla.webdriver.pages.HomePage in project pivotal-cla by pivotalsoftware.
the class EditAdminClaTests method navigateToEditCla.
@Test
public void navigateToEditCla() {
when(mockClaRepository.findOne(cla.getId())).thenReturn(cla);
when(mockClaRepository.findAll()).thenReturn(Arrays.asList(cla));
HomePage homePage = HomePage.go(driver);
AdminListClasPage manage = homePage.manage();
manage.assertAt();
AdminEditClaPage edit = manage.row(0).edit();
edit.assertAt();
}
use of io.pivotal.cla.webdriver.pages.HomePage in project pivotal-cla by pivotalsoftware.
the class AdminCreateClaTests method navigateToCreateCla.
@Test
public void navigateToCreateCla() {
when(mockClaRepository.findAll()).thenReturn(Arrays.asList(cla));
HomePage homePage = HomePage.go(driver);
AdminListClasPage manage = homePage.manage();
manage.assertAt();
AdminCreateClaPage create = manage.createCla();
create.assertAt();
}
use of io.pivotal.cla.webdriver.pages.HomePage in project pivotal-cla by pivotalsoftware.
the class AdminLinkClaTests method navigateToLinkCla.
@Test
public void navigateToLinkCla() {
HomePage homePage = HomePage.go(driver);
AdminLinkClaPage link = homePage.link();
link.assertAt();
link.assertClaName().hasOptionTexts(cla.getName());
}
Aggregations