Skip to content

Commit a044f39

Browse files
committed
check if this helps webkit url assertion
1 parent c6f66f0 commit a044f39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/playwright/shiny/bookmark/chat/client_state/test_bookmark_chat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from playwright.sync_api import Page
2+
import re
23

34
from shiny.playwright.controller import Chat
45
from shiny.run import ShinyAppProc
@@ -19,7 +20,7 @@ def test_bookmark_chatlas(page: Page, local_app: ShinyAppProc):
1920

2021
chat_controller.expect_messages("Welcome!\nTesting\nRepeater: Testing")
2122

22-
assert "?" in page.url
23+
page.wait_for_url(re.compile(r".*\?.*"), timeout=2) # Wait up to 2 seconds
2324

2425
page.reload()
2526

0 commit comments

Comments
 (0)