Update test files #29
Annotations
3 errors
app/(dashboard)/dashboard/pull-request.test.tsx#L204
TypeError: Cannot read properties of undefined (reading '0')
❯ app/(dashboard)/dashboard/pull-request.test.tsx:204:61
❯ Object.process.env.NODE_ENV.exports.act node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.development.js:1085:22
❯ Proxy.process.env.NODE_ENV.exports.act node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-test-utils.development.js:22:20
❯ app/(dashboard)/dashboard/pull-request.test.tsx:203:11
|
app/(dashboard)/dashboard/pull-request.test.tsx#L239
TestingLibraryElementError: Unable to find an element with the text: Show Logs. 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="bg-white p-4 rounded-lg shadow-md"
>
<div
class="flex items-center justify-between mb-2"
>
<span
class="flex items-center"
>
<svg
class="lucide lucide-git-pull-request mr-2 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"
>
<circle
cx="18"
cy="18"
r="3"
/>
<circle
cx="6"
cy="6"
r="3"
/>
<path
d="M13 6h3a2 2 0 0 1 2 2v7"
/>
<line
x1="6"
x2="6"
y1="9"
y2="21"
/>
</svg>
<span
class="font-medium"
>
Test PR
</span>
</span>
<a
href="https://github.com/owner/test-repo/pull/123"
>
#
123
</a>
</div>
<div
class="flex items-center justify-between"
>
<span
class="flex items-center"
>
<svg
class="lucide lucide-circle-check-big mr-2 h-4 w-4 text-green-500"
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.801 10A10 10 0 1 1 17 3.335"
/>
<path
d="m9 11 3 3L22 4"
/>
</svg>
<a
href="https://github.com/owner/test-repo/pull/123/checks"
>
Build:
success
</a>
</span>
<button
class="inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 shadow h-8 rounded-md px-3 text-xs bg-green-500 hover:bg-green-600 text-white"
>
<svg
class="lucide lucide-circle-plus mr-2 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"
>
<circle
cx="12"
cy="12"
r="10"
/>
<path
d="M8 12h8"
/>
<path
d="M12 8v8"
/>
</svg>
Write new tests
</button>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="bg-white p-4 rounded-lg shadow-md"
>
<div
class="flex items-center justify-between mb-2"
>
<span
class="flex items-center"
>
<svg
class="lucide lucide-git-pull-request mr-2 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"
>
|
|
The logs for this run have expired and are no longer available.
Loading