Fix issues from feedback #425
Annotations
2 errors and 1 warning
src/routes/bookmarks.test.tsx > BookmarkedQuestions component > renders bookmarked questions correctly:
frontend/src/routes/bookmarks.test.tsx#L111
TestingLibraryElementError: Unable to find an element with the text: Last 2 bookmarked questions shown.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="container flex flex-col gap-2 py-8"
>
<div
class="flex items-center justify-between"
>
<h1
class="text-2xl font-bold "
>
You have 2 bookmarked questions.
</h1>
</div>
<div
class="mt-4"
>
<div
class="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4"
>
<div
class="rounded-lg border text-card-foreground flex flex-1 border-none bg-neutral-100 px-6 py-8 shadow-sm"
>
<div
class="flex flex-col gap-6"
>
<h3
class="line-clamp-2 text-xl font-semibold text-gray-800"
>
How to implement a binary tree in Python?
</h3>
<p
class="line-clamp-3 flex-1 text-sm font-light text-gray-800"
>
I'm struggling to understand the structure...
</p>
<div
class="flex flex-col gap-3 text-xs text-gray-700"
>
<div
class="flex items-center gap-1"
>
<svg
class="lucide lucide-star h-4 w-4"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<polygon
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
/>
</svg>
<span>
0
votes
</span>
</div>
<div
class="flex items-center gap-1"
>
<svg
class="lucide lucide-message-square h-4 w-4"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"
/>
</svg>
<span>
0
answers
</span>
</div>
<div
class="flex items-center gap-1"
>
<svg
class="lucide lucide-sparkles h-4 w-4"
fill="none"
height="24"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"
/>
<path
d="M5 3v4"
/>
<path
d="M19 17v4"
/>
|
Frontend Tests
Process completed with exit code 1.
|
Frontend Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|