Search in sources :

Example 11 with WithSigningUser

use of io.pivotal.cla.security.WithSigningUser in project pivotal-cla by pivotalsoftware.

the class HomeControllerTests method signIcla.

@Test
@WithSigningUser
public void signIcla() {
    when(mockClaRepository.findByNameAndPrimaryTrue(cla.getName())).thenReturn(cla);
    SignClaPage home = HomePage.go(driver);
    SignIclaPage sign = home.signIcla(SignIclaPage.class);
    sign.assertAt();
}
Also used : SignClaPage(io.pivotal.cla.webdriver.pages.SignClaPage) SignIclaPage(io.pivotal.cla.webdriver.pages.SignIclaPage) WithSigningUser(io.pivotal.cla.security.WithSigningUser) Test(org.junit.Test)

Aggregations

WithSigningUser (io.pivotal.cla.security.WithSigningUser)11 Test (org.junit.Test)11 SignClaPage (io.pivotal.cla.webdriver.pages.SignClaPage)8 User (io.pivotal.cla.data.User)2 CurrentUserRequest (io.pivotal.cla.service.github.CurrentUserRequest)2 AboutPage (io.pivotal.cla.webdriver.pages.AboutPage)2 SignCclaPage (io.pivotal.cla.webdriver.pages.SignCclaPage)2 SignIclaPage (io.pivotal.cla.webdriver.pages.SignIclaPage)2 WebDriver (org.openqa.selenium.WebDriver)1