Last active
April 18, 2018 17:49
-
-
Save ojacques/a8635872b00a635e80047584d2f9eb04 to your computer and use it in GitHub Desktop.
DevOps Dojo Test Case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.zutherb.appstash.shop.ui.page.test | |
import geb.Page | |
import geb.spock.GebReportingSpec | |
import org.openqa.selenium.remote.DesiredCapabilities | |
import org.openqa.selenium.remote.RemoteWebDriver | |
import io.github.zutherb.appstash.common.util.Config | |
class DiscountSpec extends GebReportingSpec { | |
def "Check discount"() { | |
when: | |
to HomePage | |
assert discountHeader.text() == "Save!" | |
assert discountPercent.text() == Config.getProperty("GLOBAL_DISCOUNT") | |
assert discountLabel.text() == "You save" | |
and: | |
homeLink.click() | |
then: | |
at HomePage | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add 25% discount