use of sample.pages.HomePage in project spring-session by spring-projects.
the class FindByUsernameTests method login.
@Test
public void login() {
LoginPage login = HomePage.go(this.driver);
HomePage home = login.form().login(HomePage.class);
home.assertAt();
home.containCookie("SESSION");
home.doesNotContainCookie("JSESSIONID");
home.terminateButtonDisabled();
}
use of sample.pages.HomePage in project spring-session by spring-projects.
the class AttributeTests method noAttributes.
@Test
public void noAttributes() {
HomePage home = HomePage.go(this.driver, HomePage.class);
assertThat(home.attributes()).isEmpty();
}
use of sample.pages.HomePage in project spring-session by spring-projects.
the class HttpRedisJsonTest method login.
@Test
public void login() {
LoginPage login = HomePage.go(this.driver, LoginPage.class);
HomePage home = login.form().login(HomePage.class);
home.containCookie("SESSION");
home.doesNotContainCookie("JSESSIONID");
}
use of sample.pages.HomePage in project spring-session by spring-projects.
the class BootTests method logout.
@Test
public void logout() {
LoginPage login = HomePage.go(this.driver);
HomePage home = login.form().login(HomePage.class);
home.logout();
login.assertAt();
}
use of sample.pages.HomePage in project spring-session by spring-projects.
the class SecurityTests method unauthenticatedUserSentToLogInPage.
@Test
public void unauthenticatedUserSentToLogInPage() {
HomePage homePage = HomePage.go(this.driver);
LoginPage loginPage = homePage.unauthenticated();
loginPage.assertAt();
}
Aggregations