-
Notifications
You must be signed in to change notification settings - Fork 600
v1: Controls integration tests - part I #5546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Introduces a new workflow to run integration tests on macOS 14 using CocoaPods, uv, and Flutter. The workflow installs dependencies, runs Python integration tests, and uploads failure screenshots as artifacts.
Replaces manual Flutter installation with subosito/flutter-action, sets FLUTTER_VERSION to 3.32.8, and simplifies the workflow. This improves maintainability and ensures consistent Flutter setup in CI.
Implemented the ability to take full-page screenshots in the Flutter page control and exposed it via the Python BasePage API. Updated the dropdown integration test to use the new screenshot feature and replaced golden images accordingly. Also clarified the integration test README for golden image generation.
…et-dev/flet into v1-controls-integration-tests
Also fixed content type
Introduces integration tests for canvas drawing features including color fill, points (as points, lines, polygon), and shadow rendering. Adds corresponding golden images for macOS to validate visual output.
…et-dev/flet into v1-controls-integration-tests
Temporarily disables the test_draw_shadow test in test_canvas.py using pytest.mark.skip, likely due to instability or pending fixes.
…et-dev/flet into v1-controls-integration-tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've reviewed this pull request using the Sourcery rules engine
| [ | ||
| fc.Shadow( | ||
| path=[ | ||
| fc.Path.SubPath( | ||
| x=0, | ||
| y=0, | ||
| elements=[ | ||
| fc.Path.MoveTo(x=10, y=10), | ||
| fc.Path.LineTo(x=40, y=10), | ||
| fc.Path.LineTo(x=40, y=40), | ||
| fc.Path.LineTo(x=10, y=40), | ||
| fc.Path.LineTo(x=10, y=10), | ||
| ], | ||
| ), | ||
| ], | ||
| color=ft.Colors.PINK, | ||
| elevation=1, | ||
| ) | ||
| ], | ||
| width=50, | ||
| height=50, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
following our discussion on "nesting hell", i will suggest we move width and height to the top. same for similar tests in this file.
Introduces a longPress method to the Tester interface and its implementations in Dart and Python, enabling long press interactions in automated tests. Updates the service layer to handle the new 'long_press' command.
…et-dev/flet into v1-controls-integration-tests
not done, menu doesn't open
Summary by Sourcery
Enable screenshot capturing in the Page control across Dart and Python SDKs and introduce a comprehensive suite of screenshot-based integration tests for various controls, while updating CI configurations to run macOS integration tests via GitHub Actions.
New Features:
Enhancements:
CI:
Documentation:
Tests: