Feat: User is now able to perform payments #589
Annotations
2 errors and 1 warning
src/__test__/Cart/Cart.test.tsx > Cart component > renders cart item:
src/__test__/Cart/Cart.test.tsx#L100
TestingLibraryElementError: Unable to find an element with the text: Size. 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="flex items-center border-b border-gray-400 pt-8 pb-4 h-max max-w-screen-md"
>
<img
alt="Product"
class="w-48 h-32 object-cover rounded-md"
/>
<div
class="flex flex-col flex-grow w-full justify-between px-8"
>
<span
class="font-bold text-2xl"
>
Test Product
</span>
<div
class="flex justify-between"
>
<div
class="flex items-start gap-4 py-2 flex-col text-gary-600 text-sm"
>
<span
class="text-gray-600 text-center"
>
Quantity
</span>
<div
class="flex items-center space-x-2"
>
<button
class="px-3 py-1 bg-gray-100 rounded-md"
type="button"
>
-
</button>
<span>
3
</span>
<button
class="px-3 py-1 bg-gray-100 rounded-md"
type="button"
>
+
</button>
</div>
</div>
</div>
</div>
<div
class="flex flex-col gap-6 py-4 items-end w-64 justify-between"
>
<button
class="text-red-500 text-lg font-medium"
type="button"
>
Remove
</button>
<span
class="font-bold text-xl mt-4"
>
$
300
</span>
</div>
</div>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/__test__/Cart/Cart.test.tsx:100:19
|
build (20.x)
Process completed with exit code 1.
|
build (20.x)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|