Search in sources :

Example 1 with HomePage

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();
}
Also used : AdminListClasPage(io.pivotal.cla.webdriver.pages.admin.AdminListClasPage) HomePage(io.pivotal.cla.webdriver.pages.HomePage) AdminEditClaPage(io.pivotal.cla.webdriver.pages.admin.AdminEditClaPage) Test(org.junit.Test)

Example 2 with HomePage

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();
}
Also used : AdminListClasPage(io.pivotal.cla.webdriver.pages.admin.AdminListClasPage) HomePage(io.pivotal.cla.webdriver.pages.HomePage) AdminCreateClaPage(io.pivotal.cla.webdriver.pages.admin.AdminCreateClaPage) Test(org.junit.Test)

Example 3 with HomePage

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());
}
Also used : HomePage(io.pivotal.cla.webdriver.pages.HomePage) AdminLinkClaPage(io.pivotal.cla.webdriver.pages.admin.AdminLinkClaPage) Test(org.junit.Test)

Aggregations

HomePage (io.pivotal.cla.webdriver.pages.HomePage)3 Test (org.junit.Test)3 AdminListClasPage (io.pivotal.cla.webdriver.pages.admin.AdminListClasPage)2 AdminCreateClaPage (io.pivotal.cla.webdriver.pages.admin.AdminCreateClaPage)1 AdminEditClaPage (io.pivotal.cla.webdriver.pages.admin.AdminEditClaPage)1 AdminLinkClaPage (io.pivotal.cla.webdriver.pages.admin.AdminLinkClaPage)1