Skip to content

Instantly share code, notes, and snippets.

@wooyoung85
Created April 3, 2018 14:06
Show Gist options
  • Save wooyoung85/0afe9568e62dbb9c3858427f301b1130 to your computer and use it in GitHub Desktop.
Save wooyoung85/0afe9568e62dbb9c3858427f301b1130 to your computer and use it in GitHub Desktop.
import geb.spock.GebSpec
class GebishOrgSpec extends GebSpec {
def "can get to the current Book of Geb"() {
when:
to PcSellHomePage
then:
manualsMenu.jumbo.text().startsWith("임직원")
when:
manualsMenu.menus[1].click()
then:
at PCSellLoginPage
}
def "go login page"() {
when:
to PcSellHomePage
then:
manualsMenu.jumbo.text().startsWith("임직원")
when:
manualsMenu.menus[2].click()
then:
at PCSellLoginPage
}
def "Login Test"() {
when:
to LoginTest
then:
loginBtn.text().startsWith("Login")
when:
loginAsTester()
then:
at PCSellLoginPage
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment