Skip to content

Commit 39708dd

Browse files
committed
added an explicit wait for the “Press Enter to start the stream” default text before submitting
1 parent 8dd90a4 commit 39708dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def test_validate_chat_stream_result(page: Page, local_app: ShinyAppProc) -> Non
1616

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

19+
chat.expect_user_input("Press Enter to start the stream", timeout=30 * 1000)
20+
1921
chat.send_user_input()
2022

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

3638
# Verify that the stream result is as expected
37-
stream_result.expect.to_contain_text("Message 9")
39+
stream_result.expect.to_contain_text("Message 9", timeout=30 * 1000)

0 commit comments

Comments
 (0)