Skip to content

Commit

Permalink
Fixed potential issue with screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Jan 10, 2024
1 parent 98cccfd commit 9a5646e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1066,8 +1066,10 @@ private void takeEndOfStepScreenshotForRecording(final TestResult result, List<S
}

private void takeEndOfStepScreenshotForPlayback(final TestResult result, List<ScreenshotAndHtmlSource> screenshots) {
if ((screenshots != null && screenshots.size() > 0) && shouldTakeEndOfStepScreenshotFor(result)) {
if ((screenshots != null && !screenshots.isEmpty())) {
allScreenshots.addAll(screenshots);
}
if ((screenshots != null && !screenshots.isEmpty()) && shouldTakeEndOfStepScreenshotFor(result)) {
takePlayback(MANDATORY_SCREENSHOT, result, screenshots);
usedScreenshots.addAll(screenshots);
}
Expand Down

0 comments on commit 9a5646e

Please sign in to comment.