[Fix]: "Password Outdated" Error on Home Page #1947
nodejs.js.yml
on: pull_request
Matrix: test
build-and-push-image
0s
Annotations
4 errors
test (20.x)
Process completed with exit code 127.
|
test/components/notifications/Notifications.test.tsx > Notification component > should handle errors in readAllNotification function:
test/components/notifications/Notifications.test.tsx#L208
AssertionError: expected "spy" to be called with arguments: [ Array(1) ]
Received:
Number of calls: 0
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="relative flex-center transition-colors border border-neutral-grey p-2 h-max rounded-lg cursor-pointer hover:bg-neutral-grey/20"
>
<svg
aria-label="bell-image"
class="lucide lucide-bell-ring cursor-pointer"
fill="none"
height="18"
role="img"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="18"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"
/>
<path
d="M10.3 21a1.94 1.94 0 0 0 3.4 0"
/>
<path
d="M4 2C2.8 3.7 2 5.7 2 8"
/>
<path
d="M22 8c0-2.3-.8-4.3-2-6"
/>
</svg>
<audio
src="/src/assets/notificationSound.mp3"
/>
<div
aria-label="notification-number"
class="absolute -top-4 -right-4 bg-action-error w-8 text-xs h-8 text-neutral-white rounded-full flex-center"
>
1
</div>
<div
aria-label="notification-tab"
class="absolute top-full -right-[100px] ipad:-right-[50px] mt-5 p-2 bg-neutral-white shadow-custom-heavy rounded-xl w-[80vw] ipad:w-[350px] h-max max-h-[80vh] md:max-h-[70vh] overflow-y-scroll no-scrollbar z-50"
>
<div
class="w-full h-full overflow-hidden"
>
<h2
class="text-md ipad:text-lg font-semibold text-start pl-4 pt-4"
>
Notifications
</h2>
<div
class="flex items-center justify-end p-5"
>
<div
aria-label="mark-button"
class="flex items-center gap-2 text-[11px] text-neutral-black bg-primary-lightblue/20 px-3 py-1 rounded-full hover:text-neutral-black/50 false"
>
Mark all as read
<svg
fill="black"
height="1em"
stroke="currentColor"
stroke-width="0"
viewBox="0 0 448 512"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M342.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 178.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l80 80c12.5 12.5 32.8 12.5 45.3 0l160-160zm96 128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 402.7 54.6 297.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l256-256z"
/>
</svg>
</div>
</div>
<div
class="w-full flex-1 h-[90%] no-scrollbar px-2 pb-10"
>
<div
aria-label="skeleton"
class="w-full h-36 rounded-xl mb-4 bg-neutral-grey/20 animate-pulse flex gap-5 flex-col p-5"
>
<div
class="w-full h-[30%] bg-neutral-grey/20 rounded-lg"
/>
<div
class="w-full h-[60%] bg-neutral-grey/20 rounded-lg"
/>
</div>
<div
aria-label="skeleton"
class="w-full h-36 rounded-xl mb-4 bg-neutral-grey/20 animate-pulse flex gap-5 flex-col p-5"
>
<div
class="w-full h-[30%] bg-neutral-grey/20 rounded-lg"
/>
<div
class="w-full h-[60%] bg-neutral-grey/20 rounded-lg"
/>
</div>
<div
aria-label="skeleton"
class="w-full h-36 rounded-xl mb-4 bg-neutral-grey/20 animate-pulse flex gap-5 flex-col p-5"
|
test/components/notifications/Notifications.test.tsx > Notification component > should handle errors in readAllNotification function:
test/components/notifications/Notifications.test.tsx#L226
AssertionError: expected "spy" to be called with arguments: [ Array(1) ]
Received:
1st spy call:
Array [
- "Unknown error occurred! Please try again!",
+ "Error",
]
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="relative flex-center transition-colors border border-neutral-grey p-2 h-max rounded-lg cursor-pointer hover:bg-neutral-grey/20"
>
<svg
aria-label="bell-image"
class="lucide lucide-bell-ring cursor-pointer"
fill="none"
height="18"
role="img"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="18"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"
/>
<path
d="M10.3 21a1.94 1.94 0 0 0 3.4 0"
/>
<path
d="M4 2C2.8 3.7 2 5.7 2 8"
/>
<path
d="M22 8c0-2.3-.8-4.3-2-6"
/>
</svg>
<audio
src="/src/assets/notificationSound.mp3"
/>
<div
aria-label="notification-number"
class="absolute -top-4 -right-4 bg-action-error w-8 text-xs h-8 text-neutral-white rounded-full flex-center"
>
1
</div>
<div
aria-label="notification-tab"
class="absolute top-full -right-[100px] ipad:-right-[50px] mt-5 p-2 bg-neutral-white shadow-custom-heavy rounded-xl w-[80vw] ipad:w-[350px] h-max max-h-[80vh] md:max-h-[70vh] overflow-y-scroll no-scrollbar z-50"
>
<div
class="w-full h-full overflow-hidden"
>
<h2
class="text-md ipad:text-lg font-semibold text-start pl-4 pt-4"
>
Notifications
</h2>
<div
class="flex items-center justify-end p-5"
>
<div
aria-label="mark-button"
class="flex items-center gap-2 text-[11px] text-neutral-black bg-primary-lightblue/20 px-3 py-1 rounded-full hover:text-neutral-black/50 false"
>
Mark all as read
<svg
fill="black"
height="1em"
stroke="currentColor"
stroke-width="0"
viewBox="0 0 448 512"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M342.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 178.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l80 80c12.5 12.5 32.8 12.5 45.3 0l160-160zm96 128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 402.7 54.6 297.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l256-256z"
/>
</svg>
</div>
</div>
<div
class="w-full flex-1 h-[90%] no-scrollbar px-2 pb-10"
>
<div
aria-label="skeleton"
class="w-full h-36 rounded-xl mb-4 bg-neutral-grey/20 animate-pulse flex gap-5 flex-col p-5"
>
<div
class="w-full h-[30%] bg-neutral-grey/20 rounded-lg"
/>
<div
class="w-full h-[60%] bg-neutral-grey/20 rounded-lg"
/>
</div>
<div
aria-label="skeleton"
class="w-full h-36 rounded-xl mb-4 bg-neutral-grey/20 animate-pulse flex gap-5 flex-col p-5"
>
<div
class="w-full h-[30%] bg-neutral-grey/20 rounded-lg"
/>
<div
class="w-full h-[60%] bg-neutral-grey/20 rounded-lg"
/>
</div>
<div
aria-label="skeleton"
|
test (20.x)
Process completed with exit code 1.
|