Skip to content

Commit 53784cb

Browse files
committed
Merge branch 'v1-controls-integration-tests' of https://github.com/flet-dev/flet into v1-controls-integration-tests
2 parents a979c8f + 4e2203d commit 53784cb

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
1.47 KB
Loading
1.83 KB
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import flet as ft
2+
import flet.testing as ftt
3+
import pytest
4+
5+
6+
@pytest.mark.asyncio(loop_scope="module")
7+
async def test_circle_avatar(flet_app: ftt.FletTestApp, request):
8+
flet_app.page.theme_mode = ft.ThemeMode.LIGHT
9+
ca = ft.CircleAvatar(
10+
foreground_image_src="https://avatars.githubusercontent.com/u/5041459?s=88&v=4",
11+
content=ft.Text("FF"),
12+
)
13+
await flet_app.assert_control_screenshot(request.node.name, ca)
14+
15+
16+
@pytest.mark.asyncio(loop_scope="module")
17+
async def test_icon_circle_avatar(flet_app: ftt.FletTestApp, request):
18+
flet_app.page.theme_mode = ft.ThemeMode.LIGHT
19+
await flet_app.assert_control_screenshot(
20+
request.node.name,
21+
ft.CircleAvatar(content=ft.Icon(ft.Icons.ABC)),
22+
)

0 commit comments

Comments
 (0)