Show video attachments as video #1839
Annotations
8 errors and 4 warnings
test/jest/post-attachments.test.jsx > PostAttachments > Displays all post attachment types:
test/jest/post-attachments.test.jsx#L87
Error: Snapshot `PostAttachments > Displays all post attachment types 1` mismatched
- Expected
+ Received
@@ -14,20 +14,21 @@
>
<a
class="image-attachment-link"
href="https://media/CAT.JPG"
target="_blank"
- title="CAT.JPG (195.3 KiB, 2000×1500px)"
+ title="CAT.JPG (195.3 KiB, undefined×undefinedpx)"
>
<img
alt="Image attachment CAT.JPG"
class="image-attachment-img"
- height="300"
+ height="NaN"
id="new-post-im1"
loading="lazy"
- src="https://thumbnail/CAT.JPG"
+ src="https://candy.freefeed.net/v4/attachments/im1/image?redirect"
+ srcset="https://candy.freefeed.net/v4/attachments/im1/image?redirect 2x"
- width="400"
+ width="NaN"
/>
</a>
</div>
<div
class="attachment"
@@ -36,20 +37,21 @@
>
<a
class="image-attachment-link"
href="https://media/food.jpg"
target="_blank"
- title="food.jpg (2 KiB, 2000×1500px)"
+ title="food.jpg (2 KiB, undefined×undefinedpx)"
>
<img
alt="Image attachment food.jpg"
class="image-attachment-img"
- height="1500"
+ height="NaN"
id="new-post-im2"
loading="lazy"
- src="https://thumbnail/food.jpg"
+ src="https://candy.freefeed.net/v4/attachments/im2/image?redirect"
+ srcset="https://candy.freefeed.net/v4/attachments/im2/image?redirect 2x"
- width="2000"
+ width="NaN"
/>
</a>
</div>
<div
class="show-more"
@@ -82,11 +84,11 @@
>
<div>
<audio
controls=""
preload="none"
- src="https://media/wonderwall.mp3"
+ src="https://candy.freefeed.net/v4/attachments/au1/audio?redirect"
title="Oasis – Wonderwall (1.2 MiB)"
/>
</div>
<div>
<a
@@ -113,67 +115,42 @@
</a>
</div>
</div>
</div>
<div
- class="video-attachments"
+ class="general-attachments"
>
<div
- aria-label="Video attachment sunrise.mp4 (117.7 MiB)"
+ aria-label="Attachment sunrise.mp4 (117.7 MiB)"
class="attachment"
role="figure"
>
<a
- aria-disabled="false"
- class="video-attachment-click-to-play"
- role="button"
- tabindex="0"
- title="Click to play video"
- >
- <svg
- aria-hidden="true"
- class="fa-icon fa-icon-far-play-circle"
- focusable="false"
- role="img"
- viewBox="0 0 512 512"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- d="M371.7 238l-176-107c-15.8-8.8-35.7 2.5-35.7 21v208c0 18.4 19.8 29.8 35.7 21l176-101c16.4-9.1 16.4-32.8 0-42zM504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256z"
- fill="currentColor"
- />
- </svg>
- </a>
- <div>
- <a
- href="https://media/sunrise.mp4"
+ href="https://media/sunrise.mp4"
- target="_blank"
+ target="_blank"
- title="sunrise.mp4 (117.7 MiB)"
+ title="sunrise.mp4 (117.7 MiB)"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- class="attachment-icon fa-icon fa-icon-far-file-video"
+ class="attachment-icon fa-icon fa-icon-far-file"
- focusable="false"
+ focusable="false"
- role="img"
+ role="img"
- viewBox="0 0 384 512"
+
|
build (18)
Process completed with exit code 1.
|
build (20)
The job was canceled because "_18" failed.
|
test/jest/post-attachments.test.jsx > PostAttachments > Displays all post attachment types:
test/jest/post-attachments.test.jsx#L87
Error: Snapshot `PostAttachments > Displays all post attachment types 1` mismatched
- Expected
+ Received
@@ -14,20 +14,21 @@
>
<a
class="image-attachment-link"
href="https://media/CAT.JPG"
target="_blank"
- title="CAT.JPG (195.3 KiB, 2000×1500px)"
+ title="CAT.JPG (195.3 KiB, undefined×undefinedpx)"
>
<img
alt="Image attachment CAT.JPG"
class="image-attachment-img"
- height="300"
+ height="NaN"
id="new-post-im1"
loading="lazy"
- src="https://thumbnail/CAT.JPG"
+ src="https://candy.freefeed.net/v4/attachments/im1/image?redirect"
+ srcset="https://candy.freefeed.net/v4/attachments/im1/image?redirect 2x"
- width="400"
+ width="NaN"
/>
</a>
</div>
<div
class="attachment"
@@ -36,20 +37,21 @@
>
<a
class="image-attachment-link"
href="https://media/food.jpg"
target="_blank"
- title="food.jpg (2 KiB, 2000×1500px)"
+ title="food.jpg (2 KiB, undefined×undefinedpx)"
>
<img
alt="Image attachment food.jpg"
class="image-attachment-img"
- height="1500"
+ height="NaN"
id="new-post-im2"
loading="lazy"
- src="https://thumbnail/food.jpg"
+ src="https://candy.freefeed.net/v4/attachments/im2/image?redirect"
+ srcset="https://candy.freefeed.net/v4/attachments/im2/image?redirect 2x"
- width="2000"
+ width="NaN"
/>
</a>
</div>
<div
class="show-more"
@@ -82,11 +84,11 @@
>
<div>
<audio
controls=""
preload="none"
- src="https://media/wonderwall.mp3"
+ src="https://candy.freefeed.net/v4/attachments/au1/audio?redirect"
title="Oasis – Wonderwall (1.2 MiB)"
/>
</div>
<div>
<a
@@ -113,67 +115,42 @@
</a>
</div>
</div>
</div>
<div
- class="video-attachments"
+ class="general-attachments"
>
<div
- aria-label="Video attachment sunrise.mp4 (117.7 MiB)"
+ aria-label="Attachment sunrise.mp4 (117.7 MiB)"
class="attachment"
role="figure"
>
<a
- aria-disabled="false"
- class="video-attachment-click-to-play"
- role="button"
- tabindex="0"
- title="Click to play video"
- >
- <svg
- aria-hidden="true"
- class="fa-icon fa-icon-far-play-circle"
- focusable="false"
- role="img"
- viewBox="0 0 512 512"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- d="M371.7 238l-176-107c-15.8-8.8-35.7 2.5-35.7 21v208c0 18.4 19.8 29.8 35.7 21l176-101c16.4-9.1 16.4-32.8 0-42zM504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256z"
- fill="currentColor"
- />
- </svg>
- </a>
- <div>
- <a
- href="https://media/sunrise.mp4"
+ href="https://media/sunrise.mp4"
- target="_blank"
+ target="_blank"
- title="sunrise.mp4 (117.7 MiB)"
+ title="sunrise.mp4 (117.7 MiB)"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- class="attachment-icon fa-icon fa-icon-far-file-video"
+ class="attachment-icon fa-icon fa-icon-far-file"
- focusable="false"
+ focusable="false"
- role="img"
+ role="img"
- viewBox="0 0 384 512"
+
|
build (20)
Process completed with exit code 1.
|
build (21)
The job was canceled because "_18" failed.
|
test/jest/post-attachments.test.jsx > PostAttachments > Displays all post attachment types:
test/jest/post-attachments.test.jsx#L87
Error: Snapshot `PostAttachments > Displays all post attachment types 1` mismatched
- Expected
+ Received
@@ -14,20 +14,21 @@
>
<a
class="image-attachment-link"
href="https://media/CAT.JPG"
target="_blank"
- title="CAT.JPG (195.3 KiB, 2000×1500px)"
+ title="CAT.JPG (195.3 KiB, undefined×undefinedpx)"
>
<img
alt="Image attachment CAT.JPG"
class="image-attachment-img"
- height="300"
+ height="NaN"
id="new-post-im1"
loading="lazy"
- src="https://thumbnail/CAT.JPG"
+ src="https://candy.freefeed.net/v4/attachments/im1/image?redirect"
+ srcset="https://candy.freefeed.net/v4/attachments/im1/image?redirect 2x"
- width="400"
+ width="NaN"
/>
</a>
</div>
<div
class="attachment"
@@ -36,20 +37,21 @@
>
<a
class="image-attachment-link"
href="https://media/food.jpg"
target="_blank"
- title="food.jpg (2 KiB, 2000×1500px)"
+ title="food.jpg (2 KiB, undefined×undefinedpx)"
>
<img
alt="Image attachment food.jpg"
class="image-attachment-img"
- height="1500"
+ height="NaN"
id="new-post-im2"
loading="lazy"
- src="https://thumbnail/food.jpg"
+ src="https://candy.freefeed.net/v4/attachments/im2/image?redirect"
+ srcset="https://candy.freefeed.net/v4/attachments/im2/image?redirect 2x"
- width="2000"
+ width="NaN"
/>
</a>
</div>
<div
class="show-more"
@@ -82,11 +84,11 @@
>
<div>
<audio
controls=""
preload="none"
- src="https://media/wonderwall.mp3"
+ src="https://candy.freefeed.net/v4/attachments/au1/audio?redirect"
title="Oasis – Wonderwall (1.2 MiB)"
/>
</div>
<div>
<a
@@ -113,67 +115,42 @@
</a>
</div>
</div>
</div>
<div
- class="video-attachments"
+ class="general-attachments"
>
<div
- aria-label="Video attachment sunrise.mp4 (117.7 MiB)"
+ aria-label="Attachment sunrise.mp4 (117.7 MiB)"
class="attachment"
role="figure"
>
<a
- aria-disabled="false"
- class="video-attachment-click-to-play"
- role="button"
- tabindex="0"
- title="Click to play video"
- >
- <svg
- aria-hidden="true"
- class="fa-icon fa-icon-far-play-circle"
- focusable="false"
- role="img"
- viewBox="0 0 512 512"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- d="M371.7 238l-176-107c-15.8-8.8-35.7 2.5-35.7 21v208c0 18.4 19.8 29.8 35.7 21l176-101c16.4-9.1 16.4-32.8 0-42zM504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256z"
- fill="currentColor"
- />
- </svg>
- </a>
- <div>
- <a
- href="https://media/sunrise.mp4"
+ href="https://media/sunrise.mp4"
- target="_blank"
+ target="_blank"
- title="sunrise.mp4 (117.7 MiB)"
+ title="sunrise.mp4 (117.7 MiB)"
- >
+ >
- <svg
+ <svg
- aria-hidden="true"
+ aria-hidden="true"
- class="attachment-icon fa-icon fa-icon-far-file-video"
+ class="attachment-icon fa-icon fa-icon-far-file"
- focusable="false"
+ focusable="false"
- role="img"
+ role="img"
- viewBox="0 0 384 512"
+
|
build (21)
The operation was canceled.
|
build (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (18):
src/components/post/post.jsx#L231
Method 'renderPostActions' has a complexity of 21. Maximum allowed is 20
|
build (20):
src/components/post/post.jsx#L231
Method 'renderPostActions' has a complexity of 21. Maximum allowed is 20
|
build (21):
src/components/post/post.jsx#L231
Method 'renderPostActions' has a complexity of 21. Maximum allowed is 20
|