diff --git a/src/components/views/rooms/ReadReceiptGroup.tsx b/src/components/views/rooms/ReadReceiptGroup.tsx
index aec6583642..c9d00a4e69 100644
--- a/src/components/views/rooms/ReadReceiptGroup.tsx
+++ b/src/components/views/rooms/ReadReceiptGroup.tsx
@@ -210,7 +210,8 @@ interface ReadReceiptPersonProps extends IReadReceiptProps {
onAfterClick?: () => void;
}
-function ReadReceiptPerson({
+// Export for testing
+export function ReadReceiptPerson({
userId,
roomMember,
ts,
diff --git a/test/components/views/rooms/ReadReceiptGroup-test.tsx b/test/components/views/rooms/ReadReceiptGroup-test.tsx
index 969ab99123..35c0b6a471 100644
--- a/test/components/views/rooms/ReadReceiptGroup-test.tsx
+++ b/test/components/views/rooms/ReadReceiptGroup-test.tsx
@@ -14,8 +14,18 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
-import { determineAvatarPosition, readReceiptTooltip } from "../../../../src/components/views/rooms/ReadReceiptGroup";
+import React from "react";
+import { render, screen, waitFor } from "@testing-library/react";
+import { RoomMember } from "matrix-js-sdk/src/matrix";
+import userEvent from "@testing-library/user-event";
+
+import {
+ determineAvatarPosition,
+ ReadReceiptPerson,
+ readReceiptTooltip,
+} from "../../../../src/components/views/rooms/ReadReceiptGroup";
import * as languageHandler from "../../../../src/languageHandler";
+import { stubClient } from "../../../test-utils";
describe("ReadReceiptGroup", () => {
describe("TooltipText", () => {
@@ -79,4 +89,35 @@ describe("ReadReceiptGroup", () => {
expect(determineAvatarPosition(5, 4)).toEqual({ hidden: true, position: 0 });
});
});
+
+ describe("
+ @alice:example.org +
++ Wed, 15 May, 0:00 +
+