Search in sources :

Example 1 with LoginPage

use of sample.pages.LoginPage 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();
}
Also used : HomePage(sample.pages.HomePage) LoginPage(sample.pages.LoginPage) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 2 with LoginPage

use of sample.pages.LoginPage in project spring-session by spring-projects.

the class FindByUsernameTests method home.

@Test
public void home() {
    LoginPage login = HomePage.go(this.driver);
    login.assertAt();
}
Also used : LoginPage(sample.pages.LoginPage) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 3 with LoginPage

use of sample.pages.LoginPage in project spring-session by spring-projects.

the class HttpRedisJsonTest method goLoginRedirectToLogin.

@Test
public void goLoginRedirectToLogin() {
    LoginPage login = HomePage.go(this.driver, LoginPage.class);
    login.assertAt();
}
Also used : LoginPage(sample.pages.LoginPage) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 4 with LoginPage

use of sample.pages.LoginPage 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");
}
Also used : HomePage(sample.pages.HomePage) LoginPage(sample.pages.LoginPage) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Example 5 with LoginPage

use of sample.pages.LoginPage 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();
}
Also used : HomePage(sample.pages.HomePage) LoginPage(sample.pages.LoginPage) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

Test (org.junit.Test)15 LoginPage (sample.pages.LoginPage)15 HomePage (sample.pages.HomePage)10 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)9 Cookie (org.openqa.selenium.Cookie)1 WebElement (org.openqa.selenium.WebElement)1 Attribute (sample.pages.HomePage.Attribute)1