Skip to content

Commit f6ceea6

Browse files
authored
Fixed card tests for control images; moved core controls to core folder (#5693)
* Move integration tests from material to core and update image docs Integration test files and golden images for column, grid view, icon, image, and text controls were moved from the 'material' to the 'core' directory. Documentation and example image paths were updated accordingly. The image control example now uses a base64-encoded image instead of a remote URL, and the corresponding test was updated to match. * Add similarity_threshold to screenshot assertions Introduces a similarity_threshold parameter to screenshot assertion methods in tests and FletTestApp, allowing configurable image comparison sensitivity for integration tests.
1 parent 48044f9 commit f6ceea6

File tree

22 files changed

+30
-27
lines changed

22 files changed

+30
-27
lines changed

sdk/python/packages/flet/docs/controls/column.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
class_name: flet.Column
33
examples: ../../examples/controls/column
4-
example_images: ../test-images/examples/material/golden/macos/column
4+
example_images: ../test-images/examples/core/golden/macos/column
55
example_media: ../examples/controls/column/media
66
---
77

sdk/python/packages/flet/docs/controls/gridview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
class_name: flet.GridView
33
examples: ../../examples/controls/grid_view
4-
example_images: ../test-images/examples/material/golden/macos/grid_view
4+
example_images: ../test-images/examples/core/golden/macos/grid_view
55
example_media: ../examples/controls/grid_view/media
66
---
77

sdk/python/packages/flet/docs/controls/icon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
class_name: flet.Icon
33
examples: ../../examples/controls/icon
4-
example_images: ../test-images/examples/material/golden/macos/icon
4+
example_images: ../test-images/examples/core/golden/macos/icon
55
example_media: ../examples/controls/icon/media
66
---
77

sdk/python/packages/flet/docs/controls/image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
class_name: flet.Image
33
examples: ../../examples/controls/image
4-
example_images: ../test-images/examples/material/golden/macos/image
4+
example_images: ../test-images/examples/core/golden/macos/image
55
example_media: ../examples/controls/image/media
66
---
77

sdk/python/packages/flet/docs/controls/text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
class_name: flet.Text
33
examples: ../../examples/controls/text
4-
example_images: ../test-images/examples/material/golden/macos/text
4+
example_images: ../test-images/examples/core/golden/macos/text
55
example_media: ../examples/controls/text/media
66
---
77

232 Bytes
Loading

sdk/python/packages/flet/integration_tests/examples/core/__init__.py

Whitespace-only changes.

sdk/python/packages/flet/integration_tests/examples/material/golden/macos/column/image_for_docs.png renamed to sdk/python/packages/flet/integration_tests/examples/core/golden/macos/column/image_for_docs.png

File renamed without changes.

sdk/python/packages/flet/integration_tests/examples/material/golden/macos/grid_view/image_for_docs.png renamed to sdk/python/packages/flet/integration_tests/examples/core/golden/macos/grid_view/image_for_docs.png

File renamed without changes.

sdk/python/packages/flet/integration_tests/examples/material/golden/macos/icon/image_for_docs.png renamed to sdk/python/packages/flet/integration_tests/examples/core/golden/macos/icon/image_for_docs.png

File renamed without changes.

0 commit comments

Comments
 (0)