From 8d56a8e8fcfdd3d7172b5e1f6b1362d6eca5f398 Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Thu, 13 Apr 2023 11:35:49 +0100 Subject: [PATCH 1/5] Fix #978 issue with builds not building. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9487319..ca31832 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "vite build", + "build": "NODE_OPTIONS=--max-old-space-size=16384 vite build", "serve": "vite preview", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", From 323dba620d4a01e9ac14a42a275048e8890f8195 Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Wed, 19 Apr 2023 13:47:05 +0100 Subject: [PATCH 2/5] Add a range of data-testid tags to be able to cleanly identify parts of the application. --- src/home/JoinExistingCallModal.tsx | 2 +- src/home/UnauthenticatedView.tsx | 4 +++- src/icons/VideoMuted.svg | 2 +- src/room/LobbyView.tsx | 1 + src/room/VideoPreview.tsx | 2 +- src/video-grid/VideoTile.tsx | 5 +++-- 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/home/JoinExistingCallModal.tsx b/src/home/JoinExistingCallModal.tsx index 0beae60..02d7cd2 100644 --- a/src/home/JoinExistingCallModal.tsx +++ b/src/home/JoinExistingCallModal.tsx @@ -43,7 +43,7 @@ export function JoinExistingCallModal({ onJoin, onClose, ...rest }: Props) {

{t("This call already exists, would you like to join?")}

- + diff --git a/src/home/UnauthenticatedView.tsx b/src/home/UnauthenticatedView.tsx index c31637b..be20d70 100644 --- a/src/home/UnauthenticatedView.tsx +++ b/src/home/UnauthenticatedView.tsx @@ -142,6 +142,7 @@ export const UnauthenticatedView: FC = () => { type="text" required autoComplete="off" + data-testid="home_callName" /> @@ -152,6 +153,7 @@ export const UnauthenticatedView: FC = () => { placeholder={t("Display name")} type="text" required + data-testid="home_displayName" autoComplete="off" /> @@ -171,7 +173,7 @@ export const UnauthenticatedView: FC = () => { )} -
diff --git a/src/icons/VideoMuted.svg b/src/icons/VideoMuted.svg index 188ed08..20ecf0f 100644 --- a/src/icons/VideoMuted.svg +++ b/src/icons/VideoMuted.svg @@ -1,4 +1,4 @@ - + diff --git a/src/room/LobbyView.tsx b/src/room/LobbyView.tsx index a1a6961..2e726cc 100644 --- a/src/room/LobbyView.tsx +++ b/src/room/LobbyView.tsx @@ -137,6 +137,7 @@ export function LobbyView({ size="lg" disabled={state !== GroupCallState.LocalCallFeedInitialized} onPress={onEnter} + data-testid="lobby_joinCall" > Join call now diff --git a/src/room/VideoPreview.tsx b/src/room/VideoPreview.tsx index 0e92cc5..6325bda 100644 --- a/src/room/VideoPreview.tsx +++ b/src/room/VideoPreview.tsx @@ -64,7 +64,7 @@ export function VideoPreview({ return (
-
))} -