From b46190aeff1dff3e228782905b6dfbb5ae92da2d Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Tue, 14 Jul 2026 14:38:59 +0200 Subject: [PATCH] test: mark test_infinite_scroll_on_dynamic_page as flaky on Windows --- tests/unit/crawlers/_playwright/test_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit/crawlers/_playwright/test_utils.py b/tests/unit/crawlers/_playwright/test_utils.py index 1b81108e9e..ea59f610db 100644 --- a/tests/unit/crawlers/_playwright/test_utils.py +++ b/tests/unit/crawlers/_playwright/test_utils.py @@ -1,9 +1,14 @@ +import pytest from playwright.async_api import async_playwright from yarl import URL from crawlee.crawlers._playwright._utils import block_requests, infinite_scroll +@pytest.mark.flaky( + reruns=3, + reason='Test is flaky on Windows when Playwright hits net::ERR_NO_BUFFER_SPACE under xdist load.', +) async def test_infinite_scroll_on_dynamic_page(server_url: URL) -> None: """Checks that infinite_scroll loads all items on a page with infinite scrolling.""" async with async_playwright() as p: