Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ async def request_handler(context: AdaptivePlaywrightCrawlingContext) -> None:
assert static_handler_count == 1


@pytest.mark.flaky(
rerun=3,
reason='Test is flaky on Windows when Playwright hits net::ERR_NO_BUFFER_SPACE and retries, '
'causing the pre-nav hook to fire one extra time.',
)
async def test_adaptive_crawling_pre_nav_change_to_context(test_urls: list[str]) -> None:
"""Tests that context can be modified in pre-navigation hooks."""
static_only_predictor_enforce_detection = _SimpleRenderingTypePredictor()
Expand Down
Loading