Test tags for invite links; joining call by UR:; getting call name.
This commit is contained in:
parent
6f4ab0d3ab
commit
099dcd28c7
6 changed files with 8 additions and 4 deletions
|
@ -134,7 +134,7 @@ export function RoomHeaderInfo({ roomName, avatarUrl }: RoomHeaderInfo) {
|
||||||
/>
|
/>
|
||||||
<VideoIcon width={16} height={16} />
|
<VideoIcon width={16} height={16} />
|
||||||
</div>
|
</div>
|
||||||
<Subtitle fontWeight="semiBold">{roomName}</Subtitle>
|
<Subtitle data-testid="roomHeader_roomName" fontWeight="semiBold">{roomName}</Subtitle>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,6 +92,7 @@ export function Modal({
|
||||||
{...closeButtonProps}
|
{...closeButtonProps}
|
||||||
ref={closeButtonRef}
|
ref={closeButtonRef}
|
||||||
className={styles.closeButton}
|
className={styles.closeButton}
|
||||||
|
data-testid="modal_close"
|
||||||
title={t("Close")}
|
title={t("Close")}
|
||||||
>
|
>
|
||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
|
|
|
@ -41,6 +41,7 @@ export const InviteModal: FC<Props> = ({ roomIdOrAlias, ...rest }) => {
|
||||||
<CopyButton
|
<CopyButton
|
||||||
className={styles.copyButton}
|
className={styles.copyButton}
|
||||||
value={getRoomUrl(roomIdOrAlias)}
|
value={getRoomUrl(roomIdOrAlias)}
|
||||||
|
data-testid="modal_inviteLink"
|
||||||
/>
|
/>
|
||||||
</ModalContent>
|
</ModalContent>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
|
@ -147,6 +147,7 @@ export function LobbyView({
|
||||||
value={getRoomUrl(roomIdOrAlias)}
|
value={getRoomUrl(roomIdOrAlias)}
|
||||||
className={styles.copyButton}
|
className={styles.copyButton}
|
||||||
copiedMessage={t("Call link copied")}
|
copiedMessage={t("Call link copied")}
|
||||||
|
data-testid="lobby_inviteLink"
|
||||||
>
|
>
|
||||||
Copy call link and join later
|
Copy call link and join later
|
||||||
</CopyButton>
|
</CopyButton>
|
||||||
|
|
|
@ -102,7 +102,7 @@ export function OverflowMenu({
|
||||||
<>
|
<>
|
||||||
<PopoverMenuTrigger disableOnState>
|
<PopoverMenuTrigger disableOnState>
|
||||||
<TooltipTrigger tooltip={tooltip} placement="top">
|
<TooltipTrigger tooltip={tooltip} placement="top">
|
||||||
<Button variant="toolbar">
|
<Button variant="toolbar" data-testid="call_more">
|
||||||
<OverflowIcon />
|
<OverflowIcon />
|
||||||
</Button>
|
</Button>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
|
@ -111,7 +111,7 @@ export function OverflowMenu({
|
||||||
{showInvite && (
|
{showInvite && (
|
||||||
<Item key="invite" textValue={t("Invite people")}>
|
<Item key="invite" textValue={t("Invite people")}>
|
||||||
<AddUserIcon />
|
<AddUserIcon />
|
||||||
<span>{t("Invite people")}</span>
|
<span data-testid="call_moreInvite">{t("Invite people")}</span>
|
||||||
</Item>
|
</Item>
|
||||||
)}
|
)}
|
||||||
<Item key="settings" textValue={t("Settings")}>
|
<Item key="settings" textValue={t("Settings")}>
|
||||||
|
|
|
@ -74,6 +74,7 @@ export function RoomAuthView() {
|
||||||
name="displayName"
|
name="displayName"
|
||||||
label={t("Display name")}
|
label={t("Display name")}
|
||||||
placeholder={t("Display name")}
|
placeholder={t("Display name")}
|
||||||
|
data-testid="joincall_displayName"
|
||||||
type="text"
|
type="text"
|
||||||
required
|
required
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
@ -90,7 +91,7 @@ export function RoomAuthView() {
|
||||||
<ErrorMessage error={error} />
|
<ErrorMessage error={error} />
|
||||||
</FieldRow>
|
</FieldRow>
|
||||||
)}
|
)}
|
||||||
<Button type="submit" size="lg" disabled={loading}>
|
<Button type="submit" size="lg" disabled={loading} data-testid="joincall_joincall">
|
||||||
{loading ? t("Loading…") : t("Join call now")}
|
{loading ? t("Loading…") : t("Join call now")}
|
||||||
</Button>
|
</Button>
|
||||||
<div id={recaptchaId} />
|
<div id={recaptchaId} />
|
||||||
|
|
Loading…
Add table
Reference in a new issue