Another set of changes #8435
ci.yml
on: push
Build & Validate
25s
ESLint & Prettier
23s
Test
1m 55s
Deploy Vite Example to Vercel
1m 10s
Annotations
5 errors
|
ESLint & Prettier
Process completed with exit code 1.
|
|
Test
Process completed with exit code 1.
|
|
src/components/MessageComposer/__tests__/AttachmentPreviewList.test.tsx > AttachmentPreviewList > should render custom BaseImage component:
src/components/MessageComposer/__tests__/AttachmentPreviewList.test.tsx#L355
Error: Snapshot `AttachmentPreviewList > should render custom BaseImage component 1` mismatched
- Expected
+ Received
@@ -26,45 +26,30 @@
title="image-upload-1"
/>
<div
class="str-chat__attachment-preview-media__overlay"
>
- <div
+ <svg
- class="str-chat__loading-indicator"
- >
- <svg
- data-testid="loading-indicator"
+ class="str-chat__icon str-chat__icon--loading-circle str-chat__loading-indicator"
- viewBox="0 0 30 30"
+ viewBox="0 0 20 20"
- xmlns="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
- >
- <defs>
- <lineargradient
- id="randomNanoId-linear-gradient"
- x1="50%"
- x2="50%"
- y1="0%"
- y2="100%"
- >
- <stop
- offset="0%"
- stop-color="#FFF"
+ >
+ <path
+ d="M17.5 10C17.5 14.1422 14.1422 17.5 10 17.5C5.85787 17.5 2.5 14.1422 2.5 10C2.5 5.85787 5.85787 2.5 10 2.5C14.1422 2.5 17.5 5.85787 17.5 10Z"
+ fill="none"
- stop-opacity="0"
- />
- <stop
- data-testid="stop-color"
+ opacity="0.25"
+ stroke="currentColor"
- offset="100%"
- stop-opacity="1"
- />
- </lineargradient>
- </defs>
+ stroke-width="1.5"
+ />
- <path
+ <path
- d="M2.518 23.321l1.664-1.11A12.988 12.988 0 0 0 15 28c7.18 0 13-5.82 13-13S22.18 2 15 2V0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-5.206 0-9.792-2.652-12.482-6.679z"
- fill="url(#randomNanoId-linear-gradient)"
+ d="M17.4542 10.8333C17.0698 14.3096 14.3096 17.0698 10.8333 17.4542"
+ fill="none"
+ stroke="currentColor"
- fill-rule="evenodd"
+ stroke-linecap="round"
- />
+ stroke-width="1.5"
- </svg>
+ />
- </div>
+ </svg>
</div>
</div>
<button
aria-label="Remove attachment"
class="str-chat__button str-chat__button--circular str-chat__attachment-preview__remove-button"
@@ -103,45 +88,30 @@
title="image-upload-2"
/>
<div
class="str-chat__attachment-preview-media__overlay"
>
- <div
+ <svg
- class="str-chat__loading-indicator"
- >
- <svg
- data-testid="loading-indicator"
+ class="str-chat__icon str-chat__icon--loading-circle str-chat__loading-indicator"
- viewBox="0 0 30 30"
+ viewBox="0 0 20 20"
- xmlns="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
- >
- <defs>
- <lineargradient
- id="randomNanoId-linear-gradient"
- x1="50%"
- x2="50%"
- y1="0%"
- y2="100%"
- >
- <stop
- offset="0%"
- stop-color="#FFF"
- stop-opacity="0"
- />
- <stop
- data-testid="stop-color"
+ >
+ <path
+ d="M
|
|
src/components/MessageComposer/__tests__/AttachmentPreviewList.test.tsx > AttachmentPreviewList > video attachments rendering > renders loading indicator in preview:
src/components/MessageComposer/__tests__/AttachmentPreviewList.test.tsx#L261
Error: expect(received).toBeInTheDocument()
received value must be an HTMLElement or an SVGElement.
Received has type: Null
Received has value: null
❯ src/components/MessageComposer/__tests__/AttachmentPreviewList.test.tsx:261:65
|
|
src/components/MessageComposer/__tests__/AttachmentPreviewList.test.tsx > AttachmentPreviewList > image attachments rendering > renders loading indicator in preview:
src/components/MessageComposer/__tests__/AttachmentPreviewList.test.tsx#L261
Error: expect(received).toBeInTheDocument()
received value must be an HTMLElement or an SVGElement.
Received has type: Null
Received has value: null
❯ src/components/MessageComposer/__tests__/AttachmentPreviewList.test.tsx:261:65
|