Skip to content

Commit a4db3cc

Browse files
committed
Update basic playwright test to user new input parameter
1 parent a5b196a commit a4db3cc

File tree

1 file changed

+2
-3
lines changed
  • tests/playwright/shiny/components/chat/basic

1 file changed

+2
-3
lines changed

tests/playwright/shiny/components/chat/basic/app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717

1818
# Define a callback to run when the user submits a message
1919
@chat.on_user_submit
20-
async def _():
21-
user_msg = chat.user_input()
22-
await chat.append_message(f"You said: {user_msg}")
20+
async def handle_user_input(user_input: str):
21+
await chat.append_message(f"You said: {user_input}")
2322

2423

2524
"Message state:"

0 commit comments

Comments
 (0)