Search in sources :

Example 1 with ViewIclaPage

use of io.pivotal.cla.webdriver.pages.ViewIclaPage in project pivotal-cla by pivotalsoftware.

the class IclaControllerTests method view.

@Test
@WithAnonymousUser
public void view() {
    when(mockClaRepository.findByNameAndPrimaryTrue(cla.getName())).thenReturn(cla);
    ViewIclaPage signPage = ViewIclaPage.go(getDriver(), cla.getName());
    assertThat(signPage.getIndividualCla()).isEqualTo(cla.getIndividualContent().getHtml());
}
Also used : ViewIclaPage(io.pivotal.cla.webdriver.pages.ViewIclaPage) WithAnonymousUser(org.springframework.security.test.context.support.WithAnonymousUser) Test(org.junit.Test)

Aggregations

ViewIclaPage (io.pivotal.cla.webdriver.pages.ViewIclaPage)1 Test (org.junit.Test)1 WithAnonymousUser (org.springframework.security.test.context.support.WithAnonymousUser)1