changed permission logic #58
Annotations
10 errors and 1 warning
🧪 Roda suíte de testes:
src/Pages/Protected/Carteirinha/index.jsx#L76
ReferenceError: checkAction is not defined
❯ Carteirinha src/Pages/Protected/Carteirinha/index.jsx:76:3
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateFunctionComponent node_modules/react-dom/cjs/react-dom.development.js:19617:20
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21640:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:25789:22
This error originated in "src/Pages/Protected/Carteirinha/index.test.jsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should render membership data correctly". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
🧪 Roda suíte de testes:
src/Pages/Protected/Carteirinha/index.jsx#L76
ReferenceError: checkAction is not defined
❯ Carteirinha src/Pages/Protected/Carteirinha/index.jsx:76:3
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ updateFunctionComponent node_modules/react-dom/cjs/react-dom.development.js:19617:20
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21640:16
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performConcurrentWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:25789:22
This error originated in "src/Pages/Protected/Carteirinha/index.test.jsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should call downloadPDF when clicking on 'BAIXAR CARTEIRINHA' button". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
🧪 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/Services/organService.test.js#L38
AssertionError: expected "spy" to be called with arguments: [ 'organ/create', …(2) ]
Received:
1st spy call:
Array [
"organ/create",
Object {
"lotacao": "Setor 1",
"orgao": "Financeiro",
},
Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
"params": Object {
"action": "create",
"moduleName": "users",
"userId": "123456",
},
},
]
Number of calls: 1
❯ src/Services/organService.test.js:38:27
|
🧪 Roda suíte de testes:
src/Services/organService.test.js#L72
AssertionError: expected "spy" to be called with arguments: [ 'organ/list' ]
Received:
1st spy call:
Array [
"organ/list",
+ Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
+ },
]
Number of calls: 1
❯ src/Services/organService.test.js:72:26
|
🧪 Roda suíte de testes:
src/Services/organService.test.js#L82
AssertionError: expected "spy" to be called with arguments: [ 'organ/update/789', …(2) ]
Received:
1st spy call:
Array [
"organ/update/789",
Object {
"updatedData": Object {
"lotacao": "Setor 2",
"orgao": "Financeiro",
},
},
Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
"params": Object {
"action": "update",
"moduleName": "users",
"userId": "123456",
},
},
]
Number of calls: 1
❯ src/Services/organService.test.js:82:28
|
🧪 Roda suíte de testes:
src/Services/organService.test.js#L102
AssertionError: expected "spy" to be called with arguments: [ 'organ/get/789' ]
Received:
1st spy call:
Array [
- "organ/get/789",
+ "organ/list",
+ Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
+ },
]
2nd spy call:
Array [
"organ/get/789",
+ Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
+ },
]
Number of calls: 2
❯ src/Services/organService.test.js:102:26
|
🧪 Roda suíte de testes:
src/Services/organService.test.js#L111
AssertionError: expected "spy" to be called with arguments: [ 'organ/delete/789', …(1) ]
Received:
1st spy call:
Array [
"organ/delete/789",
Object {
+ "headers": Object {
+ "Authorization": "***",
+ },
"params": Object {
"action": "delete",
"moduleName": "users",
"userId": "123456",
},
},
]
Number of calls: 1
❯ src/Services/organService.test.js:111:29
|
🧪 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
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading