-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da889b5
commit 690965e
Showing
7 changed files
with
105 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
47 changes: 47 additions & 0 deletions
47
grails-forge-core/src/main/java/org/grails/forge/feature/test/template/gebConfig.rocker.raw
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@import org.grails.forge.application.Project | ||
|
||
@args ( | ||
Project project | ||
) | ||
|
||
import org.openqa.selenium.chrome.ChromeDriver | ||
import org.openqa.selenium.chrome.ChromeOptions | ||
import org.openqa.selenium.firefox.FirefoxDriver | ||
import org.openqa.selenium.firefox.FirefoxOptions | ||
import org.openqa.selenium.safari.SafariDriver | ||
|
||
environments { | ||
|
||
// You need to configure in Safari -> Develop -> Allowed Remote Automation | ||
safari { | ||
driver = { new SafariDriver() } | ||
} | ||
|
||
// run via “./gradlew -Dgeb.env=chrome iT” | ||
chrome { | ||
driver = { new ChromeDriver() } | ||
} | ||
|
||
// run via “./gradlew -Dgeb.env=chromeHeadless iT” | ||
chromeHeadless { | ||
driver = { | ||
ChromeOptions o = new ChromeOptions() | ||
o.addArguments('headless') | ||
new ChromeDriver(o) | ||
} | ||
} | ||
|
||
// run via “./gradlew -Dgeb.env=firefoxHeadless iT” | ||
firefoxHeadless { | ||
driver = { | ||
FirefoxOptions o = new FirefoxOptions() | ||
o.addArguments('-headless') | ||
new FirefoxDriver(o) | ||
} | ||
} | ||
|
||
// run via “./gradlew -Dgeb.env=firefox iT” | ||
firefox { | ||
driver = { new FirefoxDriver() } | ||
} | ||
} |
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
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
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