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
angular.scenario.dsl('selectBox', function() { | |
var chain = {}; | |
chain.option = function(value) { | |
return this.addFutureAction("select '" + this.name + "' option '" + value + "'", function($window, $document, done) { | |
var select = $document.elements('select[name="$1"]', this.name); | |
var option = select.find('option[value="' + value + '"]'); | |
if (option.length) { | |
select.val(value); | |
} else { |
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
def "The 'recommended' way"() { | |
when: | |
enabled = true | |
firstName = "Luke" | |
lastName = "Daley" | |
createButton.click() | |
then: | |
at ShowPage | |
} |
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
grails.project.class.dir = "target/classes" | |
grails.project.test.class.dir = "target/test-classes" | |
grails.project.test.reports.dir = "target/test-reports" | |
grails.project.dependency.resolution = { | |
inherits("global") { | |
} | |
log "warn" |
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
includeTargets << grailsScript("_GrailsInit") | |
display = ':65' | |
resolution = '-screen 1024x768' | |
target('default': "Run tests with xephyr") { | |
List parsedArgs = args.split() as List | |
exec (executable: 'Xephyr', spawn: true) { |
NewerOlder