8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 688a16d commit 9007363Copy full SHA for 9007363
tests/conftest.py
@@ -1,5 +1,6 @@
1
from __future__ import annotations
2
3
+import asyncio
4
import os
5
6
import pytest
@@ -51,7 +52,7 @@ async def page(browser):
51
52
@pytest.fixture(scope="session")
53
async def browser(pytestconfig: Config):
54
if os.name == "nt": # pragma: no cover
- pytest.skip("Browser tests not supported on Windows")
55
+ asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
56
async with async_playwright() as pw:
57
yield await pw.chromium.launch(headless=not bool(pytestconfig.option.headed))
58
0 commit comments