Updated code logic for adjust_for_cypress_version