Update tests

This commit is contained in:
2025-05-16 17:38:21 +02:00
parent 6daceef913
commit fd2922fde8
19 changed files with 1137 additions and 17 deletions

15
tests/conftest.py Normal file
View File

@ -0,0 +1,15 @@
"""Capture screenshots on failure."""
import allure
import base64
from allure_commons.types import AttachmentType
def pytest_selenium_capture_debug(item, report, extra):
for log_type in extra:
if log_type["name"] == "Screenshot":
content = base64.b64decode(log_type["content"].encode("utf-8"))
allure.attach(
content,
name="Screenshot on failure",
attachment_type=AttachmentType.PNG,
)