Skip to content

Commit

Permalink
Implement VersionVerificationSpec
Browse files Browse the repository at this point in the history
See: #1202
  • Loading branch information
sdelamo committed Apr 20, 2018
1 parent 516b514 commit ac25830
Showing 1 changed file with 41 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
package org.modelcatalogue.core.version

import geb.spock.GebSpec
import org.modelcatalogue.core.geb.CodeVersionPage
import org.modelcatalogue.core.geb.DashboardPage
import org.modelcatalogue.core.geb.LoginPage
import spock.lang.Issue
import spock.lang.Narrative
import spock.lang.Specification
import spock.lang.Stepwise
import spock.lang.Title

@Issue('https://metadata.atlassian.net/browse/MET-1925')
Expand All @@ -13,5 +17,40 @@ import spock.lang.Title
- Scroll down and select the Code Version option | you are redirected to a new page/window with the version number
- Check that the model catalogue carries the correct version
''')
class VersionVerificationSpec extends Specification {
@Stepwise
class VersionVerificationSpec extends GebSpec {

def "Login as user"() {
when:
LoginPage loginPage = to LoginPage
loginPage.login('user', 'user')

then:
at DashboardPage
}

def "select settings"() {
when:
DashboardPage dashboardPage = browser.page DashboardPage
dashboardPage.nav.cogMenu()
then:
at DashboardPage
}

def "select code version"() {
when:
DashboardPage dashboardPage = browser.page DashboardPage
dashboardPage.nav.codeversion()
then:
at CodeVersionPage
}

def "check version"() {
when:
CodeVersionPage codeVersionPage = browser.page CodeVersionPage

then:
codeVersionPage.isGithubLinkDisplayed()
}

}

0 comments on commit ac25830

Please sign in to comment.