Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip Starting Recording Container When Recording Mode is Set to SKIP #118

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

matrei
Copy link
Contributor

@matrei matrei commented Dec 23, 2024

Closes gh-117

@@ -98,14 +98,11 @@ class WebDriverContainerHolder {
}

currentConfiguration = specConfiguration
currentContainer = new BrowserWebDriverContainer()
if (grailsGebSettings.recordingEnabled) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you always start the recording container

Copy link
Contributor Author

@matrei matrei Dec 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sbglasius If grailsGebSettings.recordingMode is set to SKIP, grailsGebSettings.isRecordingEnabled() will return false and the recordingMode on the currentContainer will not be changed. The default BrowserWebDriverContainer.recordingMode is RECORD_FAILING.

With this change, if the grailsGebSettings.recordingMode is SKIP, the BrowserWebDriverContainer.recordingMode will also be SKIP

@matrei matrei merged commit fa6201f into 4.1.x Dec 24, 2024
5 checks passed
@matrei matrei deleted the matrei/fix-skip-recording branch December 24, 2024 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants