changed users microservice permissions #56
Annotations
10 errors and 1 warning
🧪 Roda suíte de testes:
src/Routes/permissionProtect.test.jsx#L75
TestingLibraryElementError: Unable to find an element with the text: Unauthorized. 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>
Protected Content
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div>
Protected Content
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/Routes/permissionProtect.test.jsx:75:11
|
🧪 Roda suíte de testes:
src/Routes/permissionProtect.test.jsx#L83
TestingLibraryElementError: Unable to find an element with the text: Unauthorized. 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>
Protected Content
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div>
Protected Content
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/Routes/permissionProtect.test.jsx:83:11
|
🧪 Roda suíte de testes:
src/Utils/permissions.test.jsx#L35
AssertionError: expected true to be false // Object.is equality
- Expected
+ Received
- false
+ true
❯ src/Utils/permissions.test.jsx:35:49
|
🧪 Roda suíte de testes:
src/Utils/permissions.test.jsx#L41
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ src/Utils/permissions.test.jsx:41:46
|
🧪 Roda suíte de testes:
src/Utils/permissions.test.jsx#L45
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ src/Utils/permissions.test.jsx:45:47
|
🧪 Roda suíte de testes:
src/Utils/permissions.test.jsx#L49
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ src/Utils/permissions.test.jsx:49:46
|
🧪 Roda suíte de testes:
src/Utils/permissions.test.jsx#L57
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ src/Utils/permissions.test.jsx:57:46
|
🧪 Roda suíte de testes:
src/Utils/permissions.test.jsx#L61
AssertionError: expected false to be true // Object.is equality
- Expected
+ Received
- true
+ false
❯ src/Utils/permissions.test.jsx:61:46
|
🧪 Roda suíte de testes:
src/Services/RoleService/roleService.test.js#L38
AssertionError: expected "spy" to be called with arguments: [ '/role/create', …(2) ]
Received:
1st spy call:
Array [
"/role/create",
Object {
"name": "Admin",
},
Object {
- "headers": Object {
- "Authorization": "***",
- },
"params": Object {
"action": "create",
"moduleName": "users",
"userId": "123456",
},
},
]
Number of calls: 1
❯ src/Services/RoleService/roleService.test.js:38:27
|
🧪 Roda suíte de testes:
src/Services/RoleService/roleService.test.js#L55
AssertionError: expected "spy" to be called with arguments: [ '/role', { headers: { …(1) } } ]
Received:
1st spy call:
Array [
"/role",
- Object {
- "headers": Object {
- "Authorization": "***",
- },
- },
+ Object {},
]
Number of calls: 1
❯ src/Services/RoleService/roleService.test.js:55:26
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading