import path from "path";
/**
 * Resolve the user-supplied `playwrightSaveStoragePath` against `outputDir`:
 *   - A bare filename (no separators, not absolute) is joined with `outputDir`.
 *   - Anything else (absolute path, or a relative path containing separators)
 *     is returned unchanged.
 */
export function resolveSaveStoragePath(input, outputDir) {
    if (!outputDir) {
        return input;
    }
    if (!path.isAbsolute(input) && !input.includes(path.sep)) {
        return path.join(outputDir, input);
    }
    return input;
}
