Skip to content

Commit d65134f

Browse files
committed
Add divider radius tests and update vertical divider
Added a new golden image and test for Divider radius on macOS. Updated vertical divider properties test to include radius and changed thickness. Updated corresponding golden image for vertical divider.
1 parent 18eb781 commit d65134f

4 files changed

Lines changed: 17 additions & 1 deletion

File tree

1.95 KB
Loading
808 Bytes
Loading

sdk/python/packages/flet/integration_tests/controls/test_divider.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,18 @@ async def test_divider_properties(flet_app: ftt.FletTestApp, request):
2424
trailing_indent=20,
2525
),
2626
)
27+
28+
29+
@pytest.mark.asyncio(loop_scope="module")
30+
async def test_divider_radius(flet_app: ftt.FletTestApp, request):
31+
await flet_app.assert_control_screenshot(
32+
request.node.name,
33+
ft.Divider(
34+
color=ft.Colors.RED,
35+
height=40,
36+
radius=20,
37+
thickness=30,
38+
leading_indent=20,
39+
trailing_indent=20,
40+
),
41+
)

sdk/python/packages/flet/integration_tests/controls/test_vertical_divider.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ async def test_vertical_divider_properties(flet_app: ftt.FletTestApp, request):
3737
flet_app.page.add(
3838
ft.VerticalDivider(
3939
expand=True,
40-
thickness=10,
40+
thickness=20,
4141
color=ft.Colors.RED,
4242
width=100,
4343
leading_indent=100,
4444
trailing_indent=100,
45+
radius=10,
4546
)
4647
)
4748
flet_app.page.update()

0 commit comments

Comments
 (0)