Improve test coverage with comprehensive E2E and unit tests #196
+478
−176
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.
This PR significantly improves the test coverage of the repository by adding comprehensive End-to-End (E2E) tests for the advanced user workflow and unit tests for critical backend modules (
export.pyandpipelines.py). It also addresses flaky existing E2E tests by improving element selection and handling asynchronous UI updates more robustly.Key Changes:
tests/e2e/test_workflow_completeness.pycovers the full user journey from extraction to export, verifying advanced settings and system diagnostics.tests/test_core_export_extended.py: Testscore/export.pylogic including cropping, dry runs, and filtering.tests/test_pipelines_extended.py: Testscore/pipelines.pyfor edge cases like empty inputs, cancellation, and model initialization failures.tests/e2e/conftest.pyandtests/e2e/test_export_flow.pyto use correct labels (e.g., "Use a Preset" instead of "Filter Presets") and robust wait conditions for Gradio's dynamic UI.AGENTS.mdandtests/TESTING.mdto reflect the new tests and provide guidance on running them.title="Frame Extractor & Analyzer"togr.Blocksinui/app_ui.pyto ensure the page title is correct for tests.PR created automatically by Jules for task 6026134942664270822 started by @tazztone