tests: ajusta testes #34
ci.yml
on: pull_request
test
57s
build
32s
sonarcloud
0s
Annotations
3 errors and 6 warnings
src/Pages/Protected/Users/userUpdate/index.test.jsx > UserUpdatePage > saves user data correctly:
src/Pages/Protected/Users/userUpdate/index.test.jsx#L136
AssertionError: expected "spy" to be called with arguments: [ { name: 'Jane Doe', …(4) } ]
Received:
1st spy call:
Array [
Object {
"email": "[email protected]",
"name": "Jane Doe",
"phone": "0987654321",
- "role": "1",
+ "role": "",
"status": true,
},
]
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<section
class="container"
>
<div
class="forms-container-user"
>
<div
class="double-buttons-user"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-1s5txyf-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Editar usuário
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-1s5txyf-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Editar senha
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
</div>
<div>
<h3>
Dados Pessoais
</h3>
<div
class="double-box-user"
>
<div
class="MuiFormControl-root MuiTextField-root css-ami1jz-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeMedium MuiInputLabel-filled MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeMedium MuiInputLabel-filled css-o943dk-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="field-nome-completo"
id="field-nome-completo-label"
>
Nome Completo
</label>
<div
class="MuiInputBase-root MuiFilledInput-root MuiFilledInput-underline MuiInputBase-colorPrimary MuiInputBase-formControl css-batk84-MuiInputBase-root-MuiFilledInput-root"
>
<input
aria-invalid="false"
class="MuiInputBase-input MuiFilledInput-input css-10botns-MuiInputBase-input-MuiFilledInput-input"
id="field-nome-completo"
type="text"
value="John Doe"
/>
</div>
</div>
<div
class="MuiFormControl-root MuiTextField-root css-ami1jz-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeMedium MuiInputLabel-filled MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeMedium MuiInputLabel-filled css-o943dk-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="field-email"
id="field-email-label"
>
Email
<
|
src/Pages/Protected/Users/userUpdate/index.test.jsx > UserUpdatePage > saves password correctly:
src/Pages/Protected/Users/userUpdate/index.test.jsx#L163
TestingLibraryElementError: Unable to find an element with the text: Alterações Salvas. 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>
<section
class="container"
>
<div
class="forms-container-user"
>
<div
class="double-buttons-user"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-1s5txyf-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Editar usuário
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-1s5txyf-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Editar senha
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
</div>
<div>
<h3>
Alterar Senha
</h3>
<div
class="MuiFormControl-root MuiTextField-root css-ami1jz-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeMedium MuiInputLabel-filled MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeMedium MuiInputLabel-filled css-o943dk-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="field-senha-atual"
id="field-senha-atual-label"
>
Senha atual
</label>
<div
class="MuiInputBase-root MuiFilledInput-root MuiFilledInput-underline MuiInputBase-colorPrimary MuiInputBase-formControl css-batk84-MuiInputBase-root-MuiFilledInput-root"
>
<input
aria-invalid="false"
class="MuiInputBase-input MuiFilledInput-input css-10botns-MuiInputBase-input-MuiFilledInput-input"
id="field-senha-atual"
type="password"
value="oldPassword123"
/>
</div>
</div>
<div
class="MuiFormControl-root MuiTextField-root css-ami1jz-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeMedium MuiInputLabel-filled MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeMedium MuiInputLabel-filled css-o943dk-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="field-nova-senha"
id="field-nova-senha-label"
>
Nova senha
</label>
<div
class="MuiInputBase-root MuiFilledInput-root MuiFilledInput-underline MuiInputBase-colorPrimary MuiInputBase-formControl css-batk84-MuiInputBase-root-MuiFilledInput-root"
>
<input
aria-invalid="false"
class="MuiInputBase-input MuiFilledInput-input css-10botns
|
test
Process completed with exit code 1.
|
format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint:
src/Pages/Protected/FinancialMovements/FinancialList/index.jsx#L47
React Hook useEffect has a missing dependency: 'storagedUser.token'. Either include it or remove the dependency array
|
lint:
src/Pages/Protected/MembershipRequests/index.jsx#L45
React Hook useEffect has a missing dependency: 'members'. Either include it or remove the dependency array
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|