fix(webui): remove ellipses from sending labels
This commit is contained in:
1 parent
8aa0deaca3
commit
b6536bfc5e
13 files changed
+13
-13
No files matched your search
@@ -136,7 +136,7 @@ for (const width of [1024, 360]) {
|
||||
}
|
||||
await expect(files.nth(2).getByRole("link")).toHaveAccessibleName(chinese ? "下载 文件附件" : "Download File attachment");
|
||||
for (const [label, filename, status] of [
|
||||
["Pending attachment", "pending.zip", chinese ? "发送中…" : "Sending…"],
|
||||
["Pending attachment", "pending.zip", chinese ? "发送中" : "Sending"],
|
||||
["Unavailable attachment", "unavailable.pdf", chinese ? "附件不可用" : "Attachment unavailable"],
|
||||
]) {
|
||||
const region = page.getByRole("region", { name: label, exact: true });
|
||||
|
||||
@@ -2317,7 +2317,7 @@
|
||||
"actions": "Message actions",
|
||||
"streaming": "streaming",
|
||||
"delivery": {
|
||||
"sending": "Sending…",
|
||||
"sending": "Sending",
|
||||
"failed": "Not sent"
|
||||
},
|
||||
"assistantTyping": "Assistant is typing",
|
||||
|
||||
@@ -2112,7 +2112,7 @@
|
||||
"actions": "Acciones del mensaje",
|
||||
"streaming": "transmitiendo",
|
||||
"delivery": {
|
||||
"sending": "Enviando…",
|
||||
"sending": "Enviando",
|
||||
"failed": "No enviado"
|
||||
},
|
||||
"assistantTyping": "El asistente está escribiendo",
|
||||
|
||||
@@ -2111,7 +2111,7 @@
|
||||
"actions": "Actions du message",
|
||||
"streaming": "en cours de génération",
|
||||
"delivery": {
|
||||
"sending": "Envoi…",
|
||||
"sending": "Envoi",
|
||||
"failed": "Non envoyé"
|
||||
},
|
||||
"assistantTyping": "L’assistant est en train d’écrire",
|
||||
|
||||
@@ -2111,7 +2111,7 @@
|
||||
"actions": "Tindakan pesan",
|
||||
"streaming": "sedang mengalir",
|
||||
"delivery": {
|
||||
"sending": "Mengirim…",
|
||||
"sending": "Mengirim",
|
||||
"failed": "Belum terkirim"
|
||||
},
|
||||
"assistantTyping": "Asisten sedang mengetik",
|
||||
|
||||
@@ -2111,7 +2111,7 @@
|
||||
"actions": "メッセージ操作",
|
||||
"streaming": "生成中",
|
||||
"delivery": {
|
||||
"sending": "送信中…",
|
||||
"sending": "送信中",
|
||||
"failed": "未送信"
|
||||
},
|
||||
"assistantTyping": "アシスタントが入力中",
|
||||
|
||||
@@ -2111,7 +2111,7 @@
|
||||
"actions": "메시지 작업",
|
||||
"streaming": "생성 중",
|
||||
"delivery": {
|
||||
"sending": "전송 중…",
|
||||
"sending": "전송 중",
|
||||
"failed": "전송되지 않음"
|
||||
},
|
||||
"assistantTyping": "도우미가 입력 중",
|
||||
|
||||
@@ -2125,7 +2125,7 @@
|
||||
"actions": "Ações da mensagem",
|
||||
"streaming": "transmitindo",
|
||||
"delivery": {
|
||||
"sending": "Enviando…",
|
||||
"sending": "Enviando",
|
||||
"failed": "Não enviada"
|
||||
},
|
||||
"assistantTyping": "Assistente está digitando",
|
||||
|
||||
@@ -2111,7 +2111,7 @@
|
||||
"actions": "Thao tác tin nhắn",
|
||||
"streaming": "đang truyền",
|
||||
"delivery": {
|
||||
"sending": "Đang gửi…",
|
||||
"sending": "Đang gửi",
|
||||
"failed": "Chưa gửi"
|
||||
},
|
||||
"assistantTyping": "Trợ lý đang nhập",
|
||||
|
||||
@@ -2317,7 +2317,7 @@
|
||||
"actions": "消息操作",
|
||||
"streaming": "流式输出中",
|
||||
"delivery": {
|
||||
"sending": "发送中…",
|
||||
"sending": "发送中",
|
||||
"failed": "未发送"
|
||||
},
|
||||
"assistantTyping": "助手正在输入",
|
||||
|
||||
@@ -2111,7 +2111,7 @@
|
||||
"actions": "訊息操作",
|
||||
"streaming": "串流輸出中",
|
||||
"delivery": {
|
||||
"sending": "傳送中…",
|
||||
"sending": "傳送中",
|
||||
"failed": "未傳送"
|
||||
},
|
||||
"assistantTyping": "助理正在輸入",
|
||||
|
||||
@@ -27,7 +27,7 @@ describe("attachment download cards", () => {
|
||||
it("changes a pending file to a download only after its URL arrives", () => {
|
||||
const attachment = { kind: "file" as const, name: "report.pdf" };
|
||||
const { rerender } = render(<AttachmentTile attachment={attachment} pending />);
|
||||
expect(screen.getByText("Sending…")).toBeVisible();
|
||||
expect(screen.getByText("Sending")).toBeVisible();
|
||||
expect(screen.queryByRole("link")).not.toBeInTheDocument();
|
||||
|
||||
rerender(<AttachmentTile attachment={{ ...attachment, url: "/api/media/signed/report" }} />);
|
||||
|
||||
@@ -424,7 +424,7 @@ describe("MessageBubble", () => {
|
||||
|
||||
const { rerender } = render(<MessageBubble message={message} />);
|
||||
|
||||
expect(screen.getByRole("status")).toHaveTextContent("Sending…");
|
||||
expect(screen.getByRole("status")).toHaveTextContent("Sending");
|
||||
|
||||
rerender(<MessageBubble message={{ ...message, deliveryStatus: "accepted" }} />);
|
||||
expect(screen.queryByRole("status")).not.toBeInTheDocument();
|
||||
|
||||
Reference in new issue
Block a user