From 17eaacb708d354aa39ff08f1756e79741a78bc5a Mon Sep 17 00:00:00 2001 From: Akhileswara-Microsoft Date: Fri, 8 May 2026 14:17:26 +0530 Subject: [PATCH] fix: update SEND_BUTTON locator to use aria-label for improved accessibility --- src/App/src/components/ChatInput.tsx | 1 + tests/e2e-test/pages/HomePage.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/src/components/ChatInput.tsx b/src/App/src/components/ChatInput.tsx index b51983af2..bed099ee9 100644 --- a/src/App/src/components/ChatInput.tsx +++ b/src/App/src/components/ChatInput.tsx @@ -122,6 +122,7 @@ export const ChatInput = React.memo(function ChatInput({ size="small" onClick={handleSubmit} disabled={!inputValue.trim() || isLoading} + aria-label="Send" style={{ minWidth: '32px', height: '32px', diff --git a/tests/e2e-test/pages/HomePage.py b/tests/e2e-test/pages/HomePage.py index fc0209ee1..a819ad345 100644 --- a/tests/e2e-test/pages/HomePage.py +++ b/tests/e2e-test/pages/HomePage.py @@ -24,7 +24,7 @@ class HomePage(BasePage): # Input and send locators ASK_QUESTION_TEXTAREA = "//input[@placeholder='Type a message']" - SEND_BUTTON = "//button[2]//span[1]" + SEND_BUTTON = "//button[@aria-label='Send']" # Response and status locators TYPING_INDICATOR = "//div[@class='typing-indicator']"