percy/providers/generic_provider.rb in percy-appium-app-0.0.8 vs percy/providers/generic_provider.rb in percy-appium-app-1.0.0
- old
+ new
@@ -42,14 +42,15 @@
custom_locations: kwargs.fetch(:custom_consider_regions, [])
)
}
sync = kwargs.fetch(:sync, nil)
test_case = kwargs.fetch(:test_case, nil)
+ labels = kwargs.fetch(:labels, nil)
th_test_case_execution_id = kwargs.fetch(:th_test_case_execution_id, nil)
_post_screenshots(name, tag, tiles, get_debug_url, ignore_regions, consider_regions,
- sync, test_case, th_test_case_execution_id)
+ sync, test_case, labels, th_test_case_execution_id)
end
def _get_tag(**kwargs)
name = kwargs[:device_name] || metadata.device_name
os_name = metadata.os_name
@@ -105,13 +106,14 @@
debug_url,
ignored_regions,
considered_regions,
sync,
test_case,
+ labels,
th_test_case_execution_id
)
Percy::CLIWrapper.new.post_screenshots(
- name, tag, tiles, debug_url, ignored_regions, considered_regions, sync, test_case, th_test_case_execution_id
+ name, tag, tiles, debug_url, ignored_regions, considered_regions, sync, test_case, labels, th_test_case_execution_id
)
end
def _write_screenshot(png_bytes, directory)
filepath = _get_path(directory)