mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
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:
parent
2fe513410a
commit
77ab9c7387
@ -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'})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user