test(webui): check retained queued images through thumbnails
This commit is contained in:
1 parent
0bdc24a891
commit
a39bb03d35
1 file changed
+1
-1
@@ -132,7 +132,7 @@ describe("merged waiting messages", () => {
|
||||
enter(String(index + 1));
|
||||
}
|
||||
expect(screen.getByLabelText("Message input")).toHaveValue("2");
|
||||
expect(screen.getByTestId("composer-chip")).toHaveTextContent("second.png");
|
||||
expect(within(screen.getByTestId("composer-chip")).getByRole("img", { name: "second.png" })).toBeInTheDocument();
|
||||
expect(screen.getByRole("group", { name: "Waiting to send" })).toHaveTextContent("first.png");
|
||||
expect(screen.getByText(error, { exact: false })).toBeInTheDocument();
|
||||
expect(onSend).not.toHaveBeenCalled();
|
||||
|
||||
Reference in new issue
Block a user