Is there a easy way in Geb/Spock to ensure a login happens before all functional tests?
For instance my login test looks like
def "login"() {
when:
to Login
and:
login(username,password)
then:
at Dashboard
where:
username | password
"X" | "X"
}
This is quite alot of code to put into each other test.