Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fixed core functionality test

Gregor Žunič830eae1864d4
diff --git a/tests/test_core_functionality.py b/tests/test_core_functionality.py
index 5034ea6ea..b6b1f271a 100644
--- a/tests/test_core_functionality.py
+++ b/tests/test_core_functionality.py
@@ -10,7 +10,7 @@ from browser_use.agent.views import AgentHistoryList
from browser_use.browser.browser import Browser, BrowserConfig
[email protected](scope='session')
[email protected](scope='function')
def event_loop():
"""Create an instance of the default event loop for each test case."""
loop = asyncio.get_event_loop_policy().new_event_loop()
@@ -18,7 +18,7 @@ def event_loop():
loop.close()
[email protected](scope='session')
[email protected](scope='function')
async def browser(event_loop):
browser_instance = Browser(
config=BrowserConfig(