|
|
@@ -56,6 +56,7 @@ describe("Empty state", () => {
|
|
|
content: "Hello",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
}),
|
|
|
);
|
|
|
});
|
|
|
@@ -172,12 +173,14 @@ describe.skip("ChatInterface", () => {
|
|
|
content: "Hello",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
{
|
|
|
sender: "assistant",
|
|
|
content: "Hi",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
];
|
|
|
renderChatInterface(messages);
|
|
|
@@ -211,6 +214,7 @@ describe.skip("ChatInterface", () => {
|
|
|
content: "Here are some images",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
];
|
|
|
const { rerender } = renderChatInterface(messages);
|
|
|
@@ -223,6 +227,7 @@ describe.skip("ChatInterface", () => {
|
|
|
content: "Here are some images",
|
|
|
imageUrls: ["image1", "image2"],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
];
|
|
|
|
|
|
@@ -244,12 +249,14 @@ describe.skip("ChatInterface", () => {
|
|
|
content: "Hello",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
{
|
|
|
sender: "user",
|
|
|
content: "Hi",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
];
|
|
|
const { rerender } = renderChatInterface(messages);
|
|
|
@@ -262,6 +269,7 @@ describe.skip("ChatInterface", () => {
|
|
|
content: "How can I help you?",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
});
|
|
|
|
|
|
rerender(<ChatInterface />);
|
|
|
@@ -276,6 +284,7 @@ describe.skip("ChatInterface", () => {
|
|
|
content: "Hello",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
{
|
|
|
error: true,
|
|
|
@@ -301,6 +310,7 @@ describe.skip("ChatInterface", () => {
|
|
|
content: "Hello",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
];
|
|
|
renderChatInterface(messages);
|
|
|
@@ -326,6 +336,7 @@ describe.skip("ChatInterface", () => {
|
|
|
content: "Hello",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
];
|
|
|
const { rerender } = renderChatInterface(messages);
|
|
|
@@ -358,18 +369,21 @@ describe.skip("ChatInterface", () => {
|
|
|
content: "Hello",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
{
|
|
|
sender: "user",
|
|
|
content: "Hi",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
{
|
|
|
sender: "assistant",
|
|
|
content: "How can I help you?",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
},
|
|
|
];
|
|
|
const { rerender } = renderChatInterface(messages);
|
|
|
@@ -380,6 +394,7 @@ describe.skip("ChatInterface", () => {
|
|
|
content: "I need help",
|
|
|
imageUrls: [],
|
|
|
timestamp: new Date().toISOString(),
|
|
|
+ pending: true,
|
|
|
});
|
|
|
|
|
|
rerender(<ChatInterface />);
|