Skip to content

Commit b1af631

Browse files
authored
Merge branch 'main' into integrate-bedrock-integration-shiny-add-test
2 parents a92f58b + 0bf102a commit b1af631

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[pytest]
22
asyncio_mode=strict
33
# Used for ./tests/pytest/asyncio_prevent.py
4-
asyncio_default_fixture_loop_scope=fixture
4+
asyncio_default_fixture_loop_scope=function
55
testpaths=tests/pytest/
66
; Note: Browsers are set within `./Makefile`
77
addopts = --strict-markers --durations=6 --durations-min=5.0 --numprocesses auto

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)