Skip to content

Commit

Permalink
WIP: Bring back the XVFB for manual snippets tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Pounder authored and Adam Pounder committed Oct 31, 2024
1 parent e11826d commit 0b4483a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
- gradle-home-manual-machine
- run:
command: |
Xvfb :99 -screen 1 1280x1024x16 -nolisten tcp > /dev/null 2>&1 &
./gradlew --no-daemon --max-workers 4 --parallel -Pci :doc:manual-snippets:check :doc:manual-snippets:fixtures:check :doc:manual-snippets:real-browser:check :doc:manual:build :doc:asciidoctor-extension:check
- run: &collectTestResults
name: Copy all test results to a directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,6 @@ class DriverConfigSpec extends Specification implements InlineConfigurationLoade
def setupSpec() {
CachingDriverFactory.clearCacheAndQuitDriver()

FirefoxDriver.metaClass.constructor = { ->
new FirefoxDriver(new FirefoxOptions().addArguments("--headless"))
}

Constructor<RemoteWebDriver> ctor = RemoteWebDriver.getConstructor(URL, Capabilities)
RemoteWebDriver.metaClass.constructor = { url, Capabilities options ->
if (options in FirefoxOptions) {
options.addArguments("--headless")
}
ctor.newInstance(url, options)
}
}

def "configuring driver using closure"() {
Expand Down

0 comments on commit 0b4483a

Please sign in to comment.