Hotfix ci (test) #252
Annotations
2 errors and 1 warning
test basic:
src/basic/__tests__/basic.test.tsx#L156
TestingLibraryElementError: Unable to find an element with the text: 할인 금액: 169,000원. 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 mx-auto p-4"
>
<h1
class="text-3xl font-bold mb-6"
>
장바구니
</h1>
<div
class="grid grid-cols-1 md:grid-cols-2 gap-6"
>
<div>
<h2
class="text-2xl font-semibold mb-4"
>
상품 목록
</h2>
<div
class="space-y-2"
>
<div
class="bg-white p-3 rounded shadow"
data-testid="product-p1"
>
<div
class="flex justify-between items-center mb-2"
>
<span
class="font-semibold"
>
상품1
</span>
<span
class="text-gray-600"
>
10,000
원
</span>
</div>
<div
class="text-sm text-gray-500 mb-2"
>
<span
class="font-medium text-red-600"
>
재고:
0
개
</span>
<span
class="ml-2 font-medium text-blue-600"
>
최대
10
% 할인
</span>
</div>
<ul
class="list-disc list-inside text-sm text-gray-500 mb-2"
>
<li>
10
개 이상:
10
% 할인
</li>
</ul>
<button
class="w-full px-3 py-1 rounded bg-gray-300 text-gray-500 cursor-not-allowed"
disabled=""
>
품절
</button>
</div>
<div
class="bg-white p-3 rounded shadow"
data-testid="product-p2"
>
<div
class="flex justify-between items-center mb-2"
>
<span
class="font-semibold"
>
상품2
</span>
<span
class="text-gray-600"
>
20,000
원
</span>
</div>
<div
class="text-sm text-gray-500 mb-2"
>
<span
class="font-medium text-green-600"
>
재고:
10
개
</span>
<span
class="ml-2 font-medium text-blue-600"
>
최대
15
% 할인
</span>
</div>
<ul
class="list-disc list-inside text-sm text-gray-500 mb-2"
>
<li>
10
개 이상:
15
% 할인
</li>
</ul>
<button
class="w-full px-3 py-1 rounded bg-blue-500 text-white hover:bg-blue-600"
>
장바구니에 추가
</button>
</div>
<div
class="bg-white p-3 rounded shadow"
data-testid="product-p3"
>
<div
class="flex justify-between items-center mb-2"
>
<span
class="font-semibold"
>
상품3
</span>
<span
class="text-gray-600"
>
30,000
원
</span
|
test basic
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading