Skip to content

end2end tests: attach browser diagnostics to failure reports - #538

Merged
karlicoss merged 2 commits into
masterfrom
fix/browser-failure-diagnostics
Oct 30, 2026
Merged

karlicoss merged 2 commits into
masterfrom
fix/browser-failure-diagnostics

Conversation

@karlicoss

Copy link
Copy Markdown
Owner

Add a pytest_runtest_makereport hook that records the current URL, title, and a body-text excerpt when a browser test fails.

Preserve partial diagnostics and report collection errors alongside the original failure when the browser is unavailable.

Add a `pytest_runtest_makereport` hook that records the current URL, title, and a body-text excerpt when a browser test fails.

Preserve partial diagnostics and report collection errors alongside the original failure when the browser is unavailable.
… needed

Import `selenium` after checking for a `driver` fixture in `pytest_runtest_makereport`, so loading `tests/conftest.py` does not require browser dependencies in the normal test environments.
@karlicoss
karlicoss merged commit ae109de into master Oct 30, 2026
27 checks passed
@karlicoss
karlicoss deleted the fix/browser-failure-diagnostics branch October 30, 2026 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant