Skip to content

Added fallback images #4514

Added fallback images

Added fallback images #4514

Triggered via pull request September 3, 2024 09:20
Status Failure
Total duration 4m 10s
Artifacts

unit-testing.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Unhandled error: src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx#L43
TypeError: Cannot read properties of null (reading 'caption') ❯ ChatMessageType src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx:43:7 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626: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/containers/Chat/ChatMessages/ChatMessages.test.tsx" 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 "Contact: if not cache". 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.
Unhandled error: src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx#L43
TypeError: Cannot read properties of null (reading 'caption') ❯ ChatMessageType src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx:43:7 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626: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/components/floweditor/FlowEditor.test.tsx" 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 "start with a keyword message if the simulator opens in floweditor screen". 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.
Unhandled error: src/components/floweditor/FlowEditor.test.tsx#L217
TestingLibraryElementError: Unable to find an element by: [data-testid="beneficiaryName"] Ignored nodes: comments, script, style <body style="" > <link href="/static/css/main.671055c3.chunk.css" id="flowEditorfile0" rel="stylesheet" /> <link href="/static/css/main.671055c3.chunk.css" id="flowEditorfile0" rel="stylesheet" /> <link href="/static/css/main.671055c3.chunk.css" id="flowEditorfile0" rel="stylesheet" /> <link href="/static/css/main.671055c3.chunk.css" id="flowEditorfile0" rel="stylesheet" /> <link href="/static/css/main.671055c3.chunk.css" id="flowEditorfile0" rel="stylesheet" /> </body> Ignored nodes: comments, script, style <body style="" > <link href="/static/css/main.671055c3.chunk.css" id="flowEditorfile0" rel="stylesheet" /> <link href="/static/css/main.671055c3.chunk.css" id="flowEditorfile0" rel="stylesheet" /> <link href="/static/css/main.671055c3.chunk.css" id="flowEditorfile0" rel="stylesheet" /> <link href="/static/css/main.671055c3.chunk.css" id="flowEditorfile0" rel="stylesheet" /> <link href="/static/css/main.671055c3.chunk.css" id="flowEditorfile0" rel="stylesheet" /> </body> ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ src/components/floweditor/FlowEditor.test.tsx:217:19 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ node_modules/@testing-library/dom/dist/wait-for.js:97:7 ❯ waitFor node_modules/@testing-library/dom/dist/wait-for.js:36:10 ❯ node_modules/@testing-library/dom/dist/wait-for.js:164:54 ❯ Object.asyncWrapper node_modules/@testing-library/react/dist/pure.js:88:28 This error originated in "src/components/floweditor/FlowEditor.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Unhandled error: src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx#L43
TypeError: Cannot read properties of null (reading 'caption') ❯ ChatMessageType src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx:43:7 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626: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/containers/Chat/ChatConversations/ConversationList/ConversationList.test.tsx" 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 "Contact: if not cache". 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.
Unhandled error: src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx#L43
TypeError: Cannot read properties of null (reading 'caption') ❯ ChatMessageType src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx:43:7 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626: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/components/simulator/Simulator.test.tsx" 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 "opened simulator should close when click of simulator icon". 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.
Unhandled error: src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx#L43
TypeError: Cannot read properties of null (reading 'caption') ❯ ChatMessageType src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx:43:7 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626: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/components/simulator/Simulator.test.tsx" 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 "send a message/media from the simulator". 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.
Unhandled error: src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx#L43
TypeError: Cannot read properties of null (reading 'caption') ❯ ChatMessageType src/containers/Chat/ChatMessages/ChatMessage/ChatMessageType/ChatMessageType.tsx:43:7 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626: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/components/simulator/Simulator.test.tsx" 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 "simulator should reset on clicking the reset button message". 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.
src/components/simulator/Simulator.test.tsx > opened simulator should close when click of simulator icon: src/components/simulator/Simulator.test.tsx#L57
TestingLibraryElementError: Unable to find an element by: [data-testid="clearIcon"] Ignored nodes: comments, script, style <body> <div /> </body> ❯ 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 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ src/components/simulator/Simulator.test.tsx:57:18
src/components/simulator/Simulator.test.tsx > send a message/media from the simulator: src/components/simulator/Simulator.test.tsx#L77
TestingLibraryElementError: Unable to find an element by: [data-testid="simulatorInput"] Ignored nodes: comments, script, style <body> <div /> </body> ❯ 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 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ src/components/simulator/Simulator.test.tsx:77:17
src/components/simulator/Simulator.test.tsx > click on clear icon closes the simulator: src/components/simulator/Simulator.test.tsx#L110
TestingLibraryElementError: Unable to find an element by: [data-testid="clearIcon"] Ignored nodes: comments, script, style <body> <div /> </body> Ignored nodes: comments, script, style <html> <head /> <body> <div /> </body> </html>... ❯ Proxy.waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ src/components/simulator/Simulator.test.tsx:110:9
CI
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
CI
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/