Skip to content

Commit 5d443bb

Browse files
committed
fix ci
1 parent 113ce67 commit 5d443bb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

test_browser_fastmcp_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ async def test_upload_file(self):
588588
timeout = 10
589589
start = time.time()
590590
while True:
591+
await self.client.call_tool("wait", {"seconds": 1})
592+
await self.client.call_tool("take_screenshot", {"session_id": session_id})
591593
new_state = await self.client.call_tool("get_page_state", {"session_id": session_id})
592594
news_element = next((el for el in new_state.data.elements if "download" in el.text.lower() and el.tag == "a"), None)
593595
if news_element:
@@ -953,7 +955,7 @@ async def test_resource_instance_status(self):
953955

954956
async def test_resource_instance_files_and_file(self):
955957
async with self.client:
956-
session = await self.client.call_tool("create_chrome_instance", {"headless": False})
958+
session = await self.client.call_tool("create_chrome_instance", {"headless": True})
957959
session_id = session.data.session_id
958960
# take screenshot
959961
await self.client.call_tool("navigate_to", {"session_id": session_id, "url": "https://httpbin.org/html"})

test_browser_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async def test_session_isolation(self):
6464
print("✅ Sessions have different temp directories")
6565

6666
# Verify they have different browser sessions
67-
self.assertNotEqual(instance1.browser_session, instance2.browser_session)
67+
self.assertIsNot(instance1.browser_session, instance2.browser_session)
6868
print("✅ Sessions have different browser instances")
6969

7070
# Test session count

test_browser_workflow_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ async def test_session_isolation(self):
487487
assert instance1.temp_dir != instance2.temp_dir, "Sessions should have different temp directories"
488488

489489
# Verify different browser sessions
490-
assert instance1.browser_session != instance2.browser_session, "Sessions should have different browser sessions"
490+
assert instance1.browser_session is not instance2.browser_session, "Sessions should have different browser sessions"
491491

492492
# Test that they can navigate to different pages independently
493493
print(" Navigating session 1 to html page...")

0 commit comments

Comments
 (0)