Skip to content

Hotfix ci (test)

Hotfix ci (test) #252

Triggered via pull request January 23, 2025 12:19
@Violet-Bora-LeeViolet-Bora-Lee
synchronize #54
Status Failure
Total duration 18s
Artifacts

ci.yml

on: pull_request_target
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 2 warnings
src/basic/__tests__/basic.test.tsx > 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
basic
Process completed with exit code 1.
src/advanced/__tests__/advanced.test.tsx > advanced > > 시나리오 테스트 > > 장바구니 페이지 테스트 > : src/advanced/__tests__/advanced.test.tsx#L149
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
src/advanced/__tests__/advanced.test.tsx > advanced > > 자유롭게 작성해보세요. > 새로운 유틸 함수를 만든 후에 테스트 코드를 작성해서 실행해보세요: src/advanced/__tests__/advanced.test.tsx#L236
AssertionError: expected true to be false // Object.is equality - Expected + Received - false + true ❯ src/advanced/__tests__/advanced.test.tsx:236:20
src/advanced/__tests__/advanced.test.tsx > advanced > > 자유롭게 작성해보세요. > 새로운 hook 함수르 만든 후에 테스트 코드를 작성해서 실행해보세요: src/advanced/__tests__/advanced.test.tsx#L240
AssertionError: expected true to be false // Object.is equality - Expected + Received - false + true ❯ src/advanced/__tests__/advanced.test.tsx:240:20
advacned
Process completed with exit code 1.
basic
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
advacned
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636