Skip to content

Commit 7c82077

Browse files
committed
Update playwright test
1 parent cf36d18 commit 7c82077

File tree

1 file changed

+5
-2
lines changed
  • tests/playwright/shiny/components/MarkdownStream/basic

1 file changed

+5
-2
lines changed

tests/playwright/shiny/components/MarkdownStream/basic/app.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from pathlib import Path
22

3+
from shiny import reactive
34
from shiny.express import ui
45

56
# Read in the py-shiny README.md file
@@ -24,8 +25,10 @@ def readme_generator_err():
2425
raise RuntimeError("boom!")
2526

2627

27-
stream.stream(readme_generator())
28-
stream2.stream(readme_generator_err())
28+
@reactive.effect
29+
async def _():
30+
await stream.stream(readme_generator())
31+
await stream2.stream(readme_generator_err())
2932

3033

3134
with ui.card(

0 commit comments

Comments
 (0)