screenshot_cases
A decorator factory that assigns a list of method names to a function's '_screenshot_cases' attribute and adds a 'screenshot' tag to its tags set.
def screenshot_cases(
method_names: str | list
) - > function
A decorator factory that marks test functions for automated screenshot capture during specific method executions. It attaches a list of target method names to the function and adds a 'screenshot' tag for test filtering.
Parameters
| Name | Type | Description |
|---|---|---|
| method_names | `str | list` |
Returns
| Type | Description |
|---|---|
function | A wrapper function that applies the screenshot metadata and tags to the decorated test case. |