Skip to content

Commit 0360e2c

Browse files
committed
Fix tests
1 parent add7b2f commit 0360e2c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

shiny/ui/_markdown_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def ui(
134134

135135
async def stream(
136136
self,
137-
content: Iterable[str] | AsyncIterable[str],
137+
content: Union[Iterable[str], AsyncIterable[str]],
138138
clear: bool = True,
139139
):
140140
"""

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
async def readme_generator():
1818
for chunk in readme_chunks:
19-
await asyncio.sleep(0.02)
19+
await asyncio.sleep(0.005)
2020
yield chunk + " "
2121

2222

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ def test_validate_stream_basic(page: Page, local_app: ShinyAppProc) -> None:
4545
expect(notification).to_be_visible(timeout=30 * 1000)
4646
expect(notification).to_contain_text("boom!")
4747

48-
txt_result = controller.OutputText(page, "basic-stream-result")
48+
txt_result = controller.OutputText(page, "stream_result")
4949
txt_result.expect_value("Stream result: Basic stream")

0 commit comments

Comments
 (0)