use of io.pivotal.cla.webdriver.pages.SignClaPage in project pivotal-cla by pivotalsoftware.
the class ClaControllerTests method claPivotalIndividualSigned.
@Test
public void claPivotalIndividualSigned() {
when(mockIndividualSignatureRepository.findSignaturesFor(any(), eq(WithSigningUserFactory.create()), eq(cla.getName()))).thenReturn(Arrays.asList(individualSignature));
SignClaPage home = SignClaPage.go(driver, cla.getName());
home.assertAt();
home.assertSigned();
}
use of io.pivotal.cla.webdriver.pages.SignClaPage in project pivotal-cla by pivotalsoftware.
the class ClaControllerTests method signCcla.
@Test
@WithSigningUser
public void signCcla() {
SignClaPage home = SignClaPage.go(driver, cla.getName());
SignCclaPage sign = home.signCcla(SignCclaPage.class);
sign.assertAt();
}
use of io.pivotal.cla.webdriver.pages.SignClaPage in project pivotal-cla by pivotalsoftware.
the class ClaControllerTests method claPivotalCorporateSigned.
@Test
public void claPivotalCorporateSigned() throws Exception {
List<String> organizations = Arrays.asList(corporateSignature.getGitHubOrganization());
User user = WithSigningUserFactory.create();
when(mockGitHub.getOrganizations(user.getGitHubLogin())).thenReturn(organizations);
when(mockClaRepository.findByNameAndPrimaryTrue(cla.getName())).thenReturn(cla);
when(mockCorporateSignatureRepository.findSignature(cla.getName(), organizations, user.getEmails())).thenReturn(corporateSignature);
SignClaPage claPage = SignClaPage.go(driver, cla.getName());
claPage.assertSigned();
}
use of io.pivotal.cla.webdriver.pages.SignClaPage in project pivotal-cla by pivotalsoftware.
the class ClaControllerTests method signIcla.
@Test
@WithSigningUser
public void signIcla() {
SignClaPage home = SignClaPage.go(driver, cla.getName());
SignIclaPage sign = home.signIcla(SignIclaPage.class);
sign.assertAt();
}
use of io.pivotal.cla.webdriver.pages.SignClaPage in project pivotal-cla by pivotalsoftware.
the class HomeControllerTests method profile.
@Test
@WithSigningUser
public void profile() {
SignClaPage homePage = HomePage.go(driver);
homePage.profile();
}
Aggregations