Skip to content

Commit 19a8a70

Browse files
committed
fix: use distinct text in SnackBar to avoid duplicate match in integration test
The SnackBar and result_text both contained "Result: Flow completed!", causing find_by_text to match 2 elements instead of 1 in the CI integration test.
1 parent 8899999 commit 19a8a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/examples/apps/routing_navigation/pop_views_until.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def route_change():
9292

9393
def on_pop_result(e: ft.ViewsPopUntilEvent):
9494
result_text.value = f"Result: {e.result}"
95-
page.show_dialog(ft.SnackBar(ft.Text(f"Result: {e.result}")))
95+
page.show_dialog(ft.SnackBar(ft.Text(f"Got result: {e.result}")))
9696
page.update()
9797

9898
async def view_pop(e: ft.ViewPopEvent):

0 commit comments

Comments
 (0)