Created
June 20, 2019 12:14
-
-
Save MykolaGolubyev/3b2aa9faea3d6c832a16615499140ab2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def searchBox = $('#search-box') | |
def numberOfResults = searchBox.count | |
scenario('search by specific query') { | |
submit('search this') | |
numberOfResults.shouldBe > 1 | |
} | |
def submit(query) { | |
browser.open("/search") | |
searchBox.setValue(query) | |
searchBox.sendKeys("\n") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment