Skip to content

Commit 13a6837

Browse files
committed
tests: Small updates to guarantee accuracy
1 parent d1459cf commit 13a6837

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/playwright/shiny/components/chat/input-suggestion/test_chat_input_suggestion.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,27 @@ def test_validate_chat_input_suggestion(page: Page, local_app: ShinyAppProc) ->
5656
expect(chat.loc_input_button).to_be_disabled()
5757
expect(chat.loc_input).not_to_be_focused()
5858

59+
# Reset chat
60+
chat.set_user_input("reset")
61+
chat.send_user_input()
62+
chat.expect_latest_message("You said: reset")
63+
5964
# Test keyboard modifiers - Alt + event = set but do not submit
60-
fourth.click(modifiers = ["Alt"])
65+
fourth.click(modifiers=["Alt"])
6166
chat.expect_user_input("this suggestion will auto-submit")
67+
chat.expect_latest_message("You said: reset")
6268

6369
fifth.focus()
6470
page.keyboard.press("Alt+Enter")
6571
chat.expect_user_input("another suggestion")
72+
chat.expect_latest_message("You said: reset")
6673

6774
# Reset chat
6875
chat.send_user_input()
6976
chat.expect_user_input("")
7077

7178
# Test keyboard modifiers - Cmd/Ctrl + event = submit the suggestion
72-
first.click(modifiers = ["ControlOrMeta"])
79+
first.click(modifiers=["ControlOrMeta"])
7380
chat.expect_latest_message("You said: 1st input suggestion")
7481
chat.expect_user_input("")
7582
expect(chat.loc_input_button).to_be_disabled()

0 commit comments

Comments
 (0)