feat: testes de renderização #282
Annotations
2 errors and 1 warning
src/components/UploadImage/index.spec.js > UploadImage > Button icon > changes icon after file upload:
src/components/UploadImage/index.spec.js#L50
Error: expect(element).toHaveAttribute("src", "/src/components/UploadImage/img/photo-icon.svg") // element.getAttribute("src") === "/src/components/UploadImage/img/photo-icon.svg"
Expected the element to have attribute:
src="/src/components/UploadImage/img/photo-icon.svg"
Received:
src="/src/components/UploadImage/img/plus-icon.svg"
❯ src/components/UploadImage/index.spec.js:50:26
|
test
Process completed with exit code 1.
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|