Skip to content

Commit 998bb79

Browse files
committed
Card basic test
1 parent 51293f3 commit 998bb79

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
4.03 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pytest
2+
3+
import flet as ft
4+
import flet.testing as ftt
5+
6+
7+
@pytest.mark.asyncio(loop_scope="module")
8+
async def test_card_basic(flet_app: ftt.FletTestApp, request):
9+
flet_app.page.theme_mode = ft.ThemeMode.LIGHT
10+
await flet_app.assert_control_screenshot(
11+
request.node.name,
12+
ft.Card(
13+
content=ft.Container(width=400, padding=10, content=ft.Text("Card")),
14+
),
15+
)

0 commit comments

Comments
 (0)