mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-21 23:21:04 +08:00
Playwright : new chat multi model test (#13402)
### What problem does this PR solve? new test for chat multiple model and other chat parameters under playwright ### Type of change - [x] Other (please describe): new test/ data-testid
This commit is contained in:
@@ -234,6 +234,7 @@ export function NextMessageInput({
|
||||
variant="transparent"
|
||||
className="rounded-sm border-0"
|
||||
disabled={isUploading || sendLoading}
|
||||
data-testid="chat-detail-attach"
|
||||
>
|
||||
<Paperclip className="size-3.5" />
|
||||
<span className="sr-only">Attach file</span>
|
||||
@@ -248,6 +249,7 @@ export function NextMessageInput({
|
||||
variant={enableThinking ? 'accent' : 'transparent'}
|
||||
className="border-0 h-7 text-sm"
|
||||
onClick={handleThinkingToggle}
|
||||
data-testid="chat-detail-thinking-toggle"
|
||||
>
|
||||
<Atom />
|
||||
<span>Thinking</span>
|
||||
@@ -261,6 +263,7 @@ export function NextMessageInput({
|
||||
size="icon-xs"
|
||||
className="border-0"
|
||||
onClick={handleInternetToggle}
|
||||
data-testid="chat-detail-internet-toggle"
|
||||
>
|
||||
<Globe />
|
||||
</Button>
|
||||
@@ -281,6 +284,7 @@ export function NextMessageInput({
|
||||
onOk={(value) => {
|
||||
setAudioInputValue(value);
|
||||
}}
|
||||
testId="chat-detail-audio-toggle"
|
||||
/>
|
||||
|
||||
<Button
|
||||
@@ -288,6 +292,7 @@ export function NextMessageInput({
|
||||
disabled={
|
||||
sendDisabled || isUploading || sendLoading || !value.trim()
|
||||
}
|
||||
data-testid="chat-detail-send"
|
||||
>
|
||||
<Send />
|
||||
<span className="sr-only">Send message</span>
|
||||
|
||||
Reference in New Issue
Block a user