Skip to content

Commit c6af402

Browse files
committed
Update test
1 parent dd5197d commit c6af402

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/playwright/shiny/components/chat/stream-result/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ async def _(message: str):
2020

2121

2222
@render.code
23-
async def stream_result_ui():
24-
return chat.get_latest_stream_result()
23+
async def stream_result():
24+
return chat.get_message_stream().result()

tests/playwright/shiny/components/chat/stream-result/test_chat_stream_result.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_validate_chat_stream_result(page: Page, local_app: ShinyAppProc) -> Non
1212
page.goto(local_app.url)
1313

1414
chat = controller.Chat(page, "chat")
15-
stream_result_ui = controller.OutputCode(page, "stream_result_ui")
15+
stream_result = controller.OutputCode(page, "stream_result")
1616

1717
expect(chat.loc).to_be_visible(timeout=10 * 1000)
1818

@@ -34,4 +34,4 @@ def test_validate_chat_stream_result(page: Page, local_app: ShinyAppProc) -> Non
3434
chat.expect_messages(re.compile(r"\s*".join(messages)), timeout=30 * 1000)
3535

3636
# Verify that the stream result is as expected
37-
stream_result_ui.expect.to_contain_text("Message 9")
37+
stream_result.expect.to_contain_text("Message 9")

0 commit comments

Comments
 (0)