Skip to content

Commit 76a81e5

Browse files
Fix 0.85.0 integration tests (#6396)
* Simplify macOS integration test job Remove the matrix-based suite runs and consolidate the macOS integration job into a single run. Update job name to a static "Integration Tests", run a specific pytest target (examples/material/test_text_button.py::test_handling_clicks) instead of per-suite directories, remove the failure screenshot prep step, and use a static artifact name/path for uploading failure images. This simplifies the workflow and reduces matrix complexity for debugging and faster CI iteration. * Run full test file in macOS integration workflow Remove the explicit test function filter from the pytest invocation in .github/workflows/macos-integration-tests.yml so the entire packages/flet/integration_tests/examples/material/test_text_button.py file is executed instead of only the test_handling_clicks function. Ensures all tests in the file are run during macOS integration runs. * Use test_button.py in macOS integration workflow Update .github/workflows/macos-integration-tests.yml to run packages/flet/integration_tests/examples/material/test_button.py instead of test_text_button.py so the intended button integration tests are executed during the macOS CI job. * Add matrix jobs for macOS integration tests Introduce a job matrix for macOS integration tests (fail-fast disabled) so suites can be run per-matrix entry. Update the test step to use matrix.suite path, add a failure-prep step to create a SAFE_SUITE env var (slashes -> hyphens), and include SAFE_SUITE in the uploaded artifact name and path so artifacts are scoped per suite. * ci: run test_alert_dialog + test_button to check contamination Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * ci: bisect which alert_dialog test contaminates test_button Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: reset components_mode in test fixture teardown test_use_dialog_dismiss_fires_after_animation calls page.render() which permanently enables components_mode on the global context singleton, disabling auto_update for all subsequent tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e0f42cd commit 76a81e5

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

sdk/python/packages/flet/integration_tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ async def flet_app_function(request):
4646
yield flet_app
4747
finally:
4848
_context_page.reset(token) # restore previous context to avoid leakage
49+
context.disable_components_mode()
4950
await flet_app.teardown()

sdk/python/packages/flet/src/flet/controls/context.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ def enable_components_mode(self):
101101
"""
102102
self.__components_mode = True
103103

104+
def disable_components_mode(self):
105+
"""
106+
Disables components mode in the current context.
107+
"""
108+
self.__components_mode = False
109+
104110
def is_components_mode(self) -> bool:
105111
"""
106112
Returns whether the current context is in components mode.

0 commit comments

Comments
 (0)