Open
Conversation
17ce358 to
e00e12b
Compare
Add integration tests for Gradio UI interactions. * **Integration Tests**: - Add `test_gradio_ui_interactions`, `test_streaming_response_from_llm`, and `test_synchronous_response_from_llm` in `tests/gui_agent_loop_core/backend/test_server_impl_gradio.py`. - Simulate user interactions and assert responses for both streaming and synchronous responses from LLM. * **Sandbox Server**: - Modify `sandbox_server` in `gui_agent_loop_core/backend/sandbox/sandbox_server_impl_gradio.py` to accept a `test_mode` parameter. - Conditionally launch the app based on `test_mode`. * **New Integration Test File**: - Add `tests/gui_agent_loop_core/backend/test_gradio_integration.py` to test Gradio UI using `selenium`. - Include setup and teardown methods for initializing and closing the browser. - Add tests for UI interactions, streaming responses, and synchronous responses. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/nobu007/GuiAgentLoopCore?shareId=XXXX-XXXX-XXXX-XXXX).
e00e12b to
8577829
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add integration tests for Gradio UI interactions.
Integration Tests:
test_gradio_ui_interactions,test_streaming_response_from_llm, andtest_synchronous_response_from_llmintests/gui_agent_loop_core/backend/test_server_impl_gradio.py.Sandbox Server:
sandbox_serveringui_agent_loop_core/backend/sandbox/sandbox_server_impl_gradio.pyto accept atest_modeparameter.test_mode.New Integration Test File:
tests/gui_agent_loop_core/backend/test_gradio_integration.pyto test Gradio UI usingselenium.For more details, open the Copilot Workspace session.