[11팀 박근백] [Chapter 2-2] 디자인 패턴과 함수형 프로그래밍 #212
Annotations
2 errors and 2 warnings
src/advanced/__tests__/advanced.test.tsx > advanced > > 시나리오 테스트 > > 관리자 페이지 테스트 > :
src/advanced/__tests__/advanced.test.tsx#L165
TestingLibraryElementError: Unable to find an element with the text: 수정 완료. 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
<div
class="bg-white p-4 rounded shadow"
data-testid="product-1"
>
<button
class="w-full text-left font-semibold"
data-testid="toggle-button"
>
상품1
-
10000
원 (재고:
20
)
</button>
<div
class="mt-2"
>
loading
</div>
</div>
❯ 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
❯ getByText node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/advanced/__tests__/advanced.test.tsx:165:41
|
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
|