Skip to content

Commit

Permalink
Skip Starting Recording Container When Recording Mode is Set to SKIP (
Browse files Browse the repository at this point in the history
#118)

* fix: disable recording container

Closes gh-117

* refactor: set recording mode directly on created container
  • Loading branch information
matrei authored Dec 24, 2024
1 parent 5882fd7 commit fa6201f
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,11 @@ class WebDriverContainerHolder {
}

currentConfiguration = specConfiguration
currentContainer = new BrowserWebDriverContainer()
if (grailsGebSettings.recordingEnabled) {
currentContainer = currentContainer.withRecordingMode(
grailsGebSettings.recordingMode,
grailsGebSettings.recordingDirectory,
grailsGebSettings.recordingFormat
)
}
currentContainer = new BrowserWebDriverContainer().withRecordingMode(
grailsGebSettings.recordingMode,
grailsGebSettings.recordingDirectory,
grailsGebSettings.recordingFormat
)
currentContainer.tap {
withAccessToHost(true)
start()
Expand Down

0 comments on commit fa6201f

Please sign in to comment.