Fix test_download_file to browse to correct HTML page

- Change from browsing root directory to specific download_test.html page
- Ensures test assertion matches actual browser behavior
This commit is contained in:
openhands 2025-10-30 08:12:45 +00:00
parent 2fe513410a
commit 77ab9c7387

View File

@ -1171,7 +1171,7 @@ def test_download_file(temp_dir, runtime_cls, run_as_openhands, dynamic_port):
logger.info(obs, extra={'msg_type': 'OBSERVATION'})
# Browse to the HTML page
action_browse = BrowseURLAction(url=f'http://localhost:{dynamic_port}/')
action_browse = BrowseURLAction(url=f'http://localhost:{dynamic_port}/download_test.html')
logger.info(action_browse, extra={'msg_type': 'ACTION'})
obs = runtime.run_action(action_browse)
logger.info(obs, extra={'msg_type': 'OBSERVATION'})