Hotfix ci (test) #242
Triggered via pull request
January 23, 2025 12:11
Violet-Bora-Lee
synchronize
#54
Status
Failure
Total duration
26s
Artifacts
–
Annotations
2 errors and 2 warnings
src/advanced/__tests__/advanced.test.tsx > advanced > > 자유롭게 작성해보세요. > 검색기능 테스트:
src/advanced/__tests__/advanced.test.tsx#L270
TestingLibraryElementError: Unable to find an element by: [data-testid="search-bar"]
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>
<input
class="w-full mb-4 p-2 border rounded"
placeholder="검색어를 입력하세요"
type="text"
value=""
/>
<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-green-600"
>
재고:
20
개
</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-blue-500 text-white hover:bg-blue-600"
>
장바구니에 추가
</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"
>
재고:
20
개
</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>
</div>
|
advacned
Process completed with exit code 1.
|
advacned
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
basic
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|