private boolean legacyScreenshotConfiguration(TakeScreenshots takeScreenshots) { if (configuration.onlySaveFailingScreenshots()) { return takeScreenshotLevel(takeScreenshots).isAtLeast(TakeScreenshots.FOR_FAILURES); } if (configuration.takeVerboseScreenshots()) { return takeScreenshotLevel(takeScreenshots).isAtLeast(TakeScreenshots.FOR_EACH_ACTION); } return takeScreenshotLevel(takeScreenshots).isAtLeast(TakeScreenshots.BEFORE_AND_AFTER_EACH_STEP); }
private boolean legacyScreenshotConfiguration(TakeScreenshots takeScreenshots) { if (configuration.onlySaveFailingScreenshots()) { return takeScreenshotLevel(takeScreenshots).isAtLeast(TakeScreenshots.FOR_FAILURES); } if (configuration.takeVerboseScreenshots()) { return takeScreenshotLevel(takeScreenshots).isAtLeast(TakeScreenshots.FOR_EACH_ACTION); } return takeScreenshotLevel(takeScreenshots).isAtLeast(TakeScreenshots.BEFORE_AND_AFTER_EACH_STEP); }
private boolean legacyScreenshotConfiguration(TakeScreenshots takeScreenshots) { if (configuration.onlySaveFailingScreenshots()) { return takeScreenshotLevel(takeScreenshots).isAtLeast(TakeScreenshots.FOR_FAILURES); } if (configuration.takeVerboseScreenshots()) { return takeScreenshotLevel(takeScreenshots).isAtLeast(TakeScreenshots.FOR_EACH_ACTION); } return takeScreenshotLevel(takeScreenshots).isAtLeast(TakeScreenshots.BEFORE_AND_AFTER_EACH_STEP); }