mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-09-08 20:51:41 +00:00
SEC-965: Added assert to LoginPage.at
This commit is contained in:
parent
f28a09dfa4
commit
97afb0c9ac
@ -24,7 +24,7 @@ import geb.*
|
|||||||
*/
|
*/
|
||||||
class LoginPage extends Page {
|
class LoginPage extends Page {
|
||||||
static url = loginUrl()
|
static url = loginUrl()
|
||||||
static at = { driver.currentUrl == loginUrl(); true}
|
static at = { assert driver.currentUrl.startsWith(loginUrl()); true}
|
||||||
static content = {
|
static content = {
|
||||||
login(required:false) { user, password=user ->
|
login(required:false) { user, password=user ->
|
||||||
loginForm.username = user
|
loginForm.username = user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user