Skip to content

Commit d5b6ceb

Browse files
fix: update SEND_BUTTON locator to use aria-label for improved accessibility
2 parents 7a5344e + 965c60b commit d5b6ceb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/App/src/components/ChatInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export const ChatInput = React.memo(function ChatInput({
122122
size="small"
123123
onClick={handleSubmit}
124124
disabled={!inputValue.trim() || isLoading}
125+
aria-label="Send"
125126
style={{
126127
minWidth: '32px',
127128
height: '32px',

tests/e2e-test/pages/HomePage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class HomePage(BasePage):
2424

2525
# Input and send locators
2626
ASK_QUESTION_TEXTAREA = "//input[@placeholder='Type a message']"
27-
SEND_BUTTON = "//button[2]//span[1]"
27+
SEND_BUTTON = "//button[@aria-label='Send']"
2828

2929
# Response and status locators
3030
TYPING_INDICATOR = "//div[@class='typing-indicator']"

0 commit comments

Comments
 (0)