File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
src/client/components/ChatV2 Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,5 +12,6 @@ export const closeSendPreference = async (page: Page) => {
12
12
export const sendChatMessage = async ( page : Page , message : string ) => {
13
13
const chatInput = page . getByTestId ( 'chat-input' ) . first ( )
14
14
await chatInput . fill ( message )
15
- await chatInput . press ( 'Shift+Enter' )
15
+ const sendBtn = page . getByTestId ( 'send-chat-message' )
16
+ await sendBtn . click ( )
16
17
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default defineConfig({
20
20
/* Retry on CI only */
21
21
retries : inCI ? 1 : 0 ,
22
22
/* Global timeout for each test */
23
- timeout : 12_000 ,
23
+ timeout : inCI ? 15_000 : 12_000 ,
24
24
expect : {
25
25
timeout : inCI ? 4_500 : 3000 ,
26
26
} ,
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ export const ChatBox = ({
263
263
</ Box >
264
264
265
265
< Tooltip title = { disabled ? t ( 'chat:cancelResponse' ) : isShiftEnterSend ? t ( 'chat:shiftEnterSend' ) : t ( 'chat:enterSend' ) } arrow placement = "top" >
266
- < IconButton type = { disabled ? 'button' : 'submit' } ref = { sendButtonRef } >
266
+ < IconButton type = { disabled ? 'button' : 'submit' } ref = { sendButtonRef } data-testid = "send-chat-message" >
267
267
{ disabled ? < StopIcon /> : < Send /> }
268
268
</ IconButton >
269
269
</ Tooltip >
You can’t perform that action at this time.
0 commit comments