Package org.xwiki.test.ui.po

Examples of org.xwiki.test.ui.po.LoginPage.loginAs()


    @IgnoreBrowser(value = "internet.*", version = "9\\.*", reason="See http://jira.xwiki.org/browse/XE-1177")
    })
    public void testLoginWithInvalidCredentials()
    {
        LoginPage loginPage = this.vp.login();
        loginPage.loginAs("Admin", "wrong password");
        Assert.assertTrue(loginPage.hasInvalidCredentialsErrorMessage());
    }

    @Test
    @IgnoreBrowsers({
View Full Code Here


    @IgnoreBrowser(value = "internet.*", version = "9\\.*", reason="See http://jira.xwiki.org/browse/XE-1177")
    })
    public void testLoginWithInvalidUsername()
    {
        LoginPage loginPage = this.vp.login();
        loginPage.loginAs("non existent user", "admin");
        Assert.assertTrue(loginPage.hasInvalidCredentialsErrorMessage());
    }

    /**
     * Verify that the initial URL is not lost after logging in when the session has expired.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.