diff --git a/pytest.ini b/pytest.ini index 9d80d8374..38662673e 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,7 +1,7 @@ [pytest] asyncio_mode=strict # Used for ./tests/pytest/asyncio_prevent.py -asyncio_default_fixture_loop_scope=fixture +asyncio_default_fixture_loop_scope=function testpaths=tests/pytest/ ; Note: Browsers are set within `./Makefile` addopts = --strict-markers --durations=6 --durations-min=5.0 --numprocesses auto diff --git a/tests/playwright/shiny/components/chat/stream-result/test_chat_stream_result.py b/tests/playwright/shiny/components/chat/stream-result/test_chat_stream_result.py index eaa08fc57..773eef0bb 100644 --- a/tests/playwright/shiny/components/chat/stream-result/test_chat_stream_result.py +++ b/tests/playwright/shiny/components/chat/stream-result/test_chat_stream_result.py @@ -16,6 +16,8 @@ def test_validate_chat_stream_result(page: Page, local_app: ShinyAppProc) -> Non expect(chat.loc).to_be_visible(timeout=10 * 1000) + chat.expect_user_input("Press Enter to start the stream", timeout=30 * 1000) + chat.send_user_input() messages = [ @@ -34,4 +36,4 @@ def test_validate_chat_stream_result(page: Page, local_app: ShinyAppProc) -> Non chat.expect_messages(re.compile(r"\s*".join(messages)), timeout=30 * 1000) # Verify that the stream result is as expected - stream_result.expect.to_contain_text("Message 9") + stream_result.expect.to_contain_text("Message 9", timeout=30 * 1000)