Skip to content

Commit

Permalink
- modified geb config
Browse files Browse the repository at this point in the history
  • Loading branch information
temi committed Nov 22, 2023
1 parent 6215e2a commit 8cc3dbf
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/integration-test/resources/GebConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@ import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.firefox.FirefoxDriver

environments {
if (!System.getProperty("webdriver.chrome.driver")) {
System.setProperty("webdriver.chrome.driver", "node_modules/chromedriver/bin/chromedriver")
}
driver = { new ChromeDriver() }
baseUrl = 'http://devt.ala.org.au:8087/'
atCheckWaiting = true
waiting {
timeout = 20
retryInterval = 0.5
}

// When developing functional tests, it's convenient to not require the app to be launched
// when using test-app. This can be achieved by passing the grails.server.url & grails.server.port
// grails test-app functional: -Dgeb.env=chrome -Dgrails.server.url=localhost -Dgrails.server.port=8080
// The browser can be selected by passing geb.env to the runtime. You need to run npm install before
// the drivers will be available for use by geb.
environments {

//baseUrl = 'http://localhost:8080/'
reportsDir = 'build/reports/geb-reports'

// run as grails -Dgeb.env=chrome test-app
chrome {
if (!System.getProperty("webdriver.chrome.driver")) {
System.setProperty("webdriver.chrome.driver", "node_modules/chromedriver/bin/chromedriver")
}


driver = {
ChromeOptions options = new ChromeOptions()
Expand All @@ -37,7 +39,7 @@ environments {
ChromeOptions o = new ChromeOptions()
o.addArguments('headless')
o.addArguments("window-size=1920,1080")
o.addArguments('disable-dev-shm-usage')
o.addArguments('--disable-dev-shm-usage')
o.addArguments("--remote-allow-origins=*")
new ChromeDriver(o)
}
Expand Down

0 comments on commit 8cc3dbf

Please sign in to comment.