[grid] Using merged caps to check if video recording was requested [skip ci]
@@ -213,7 +213,7 @@ public boolean test(Capabilities capabilities) {
Capabilities mergedCapabilities = capabilities.merge(sessionRequest.getCapabilities());
Optional<Path> containerAssetsPath = assetsPath.createContainerSessionAssetsPath(id);
containerAssetsPath.ifPresent(path -> saveSessionCapabilities(mergedCapabilities, path));
- if (containerAssetsPath.isPresent() && recordVideoForSession(capabilities)) {
+ if (containerAssetsPath.isPresent() && recordVideoForSession(mergedCapabilities)) {
Map<String, String> envVars = getVideoContainerEnvVars(
mergedCapabilities,
containerInfo.getIp());
