Skip to content

Conversation

@nobu007
Copy link
Owner

@nobu007 nobu007 commented Feb 1, 2025

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.

@nobu007 nobu007 force-pushed the add-gradio-integration-test branch 2 times, most recently from 17ce358 to e00e12b Compare February 1, 2025 07:17
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).
@nobu007 nobu007 force-pushed the add-gradio-integration-test branch from e00e12b to 8577829 Compare February 1, 2025 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant