From 099dcd28c73f09312e712a04ad9d2b4cebe6e54d Mon Sep 17 00:00:00 2001
From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com>
Date: Thu, 11 May 2023 14:29:01 +0100
Subject: [PATCH] Test tags for invite links; joining call by UR:; getting call
name.
---
src/Header.tsx | 2 +-
src/Modal.tsx | 1 +
src/room/InviteModal.tsx | 1 +
src/room/LobbyView.tsx | 1 +
src/room/OverflowMenu.tsx | 4 ++--
src/room/RoomAuthView.tsx | 3 ++-
6 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/Header.tsx b/src/Header.tsx
index 7ccf866..5a4f7f5 100644
--- a/src/Header.tsx
+++ b/src/Header.tsx
@@ -134,7 +134,7 @@ export function RoomHeaderInfo({ roomName, avatarUrl }: RoomHeaderInfo) {
/>
- {roomName}
+ {roomName}
>
);
}
diff --git a/src/Modal.tsx b/src/Modal.tsx
index 2665e11..6734e88 100644
--- a/src/Modal.tsx
+++ b/src/Modal.tsx
@@ -92,6 +92,7 @@ export function Modal({
{...closeButtonProps}
ref={closeButtonRef}
className={styles.closeButton}
+ data-testid="modal_close"
title={t("Close")}
>
diff --git a/src/room/InviteModal.tsx b/src/room/InviteModal.tsx
index a7f7ba5..9db8fdd 100644
--- a/src/room/InviteModal.tsx
+++ b/src/room/InviteModal.tsx
@@ -41,6 +41,7 @@ export const InviteModal: FC = ({ roomIdOrAlias, ...rest }) => {
diff --git a/src/room/LobbyView.tsx b/src/room/LobbyView.tsx
index 2e726cc..d05a848 100644
--- a/src/room/LobbyView.tsx
+++ b/src/room/LobbyView.tsx
@@ -147,6 +147,7 @@ export function LobbyView({
value={getRoomUrl(roomIdOrAlias)}
className={styles.copyButton}
copiedMessage={t("Call link copied")}
+ data-testid="lobby_inviteLink"
>
Copy call link and join later
diff --git a/src/room/OverflowMenu.tsx b/src/room/OverflowMenu.tsx
index 0920f2d..cfd5fb9 100644
--- a/src/room/OverflowMenu.tsx
+++ b/src/room/OverflowMenu.tsx
@@ -102,7 +102,7 @@ export function OverflowMenu({
<>
-
@@ -111,7 +111,7 @@ export function OverflowMenu({
{showInvite && (
-
- {t("Invite people")}
+ {t("Invite people")}
)}
-
diff --git a/src/room/RoomAuthView.tsx b/src/room/RoomAuthView.tsx
index 11b20b8..c3ccf0a 100644
--- a/src/room/RoomAuthView.tsx
+++ b/src/room/RoomAuthView.tsx
@@ -74,6 +74,7 @@ export function RoomAuthView() {
name="displayName"
label={t("Display name")}
placeholder={t("Display name")}
+ data-testid="joincall_displayName"
type="text"
required
autoComplete="off"
@@ -90,7 +91,7 @@ export function RoomAuthView() {
)}
-
+
{loading ? t("Loading…") : t("Join call now")}