Skip to content

fix: handle project fetching error #22037

fix: handle project fetching error

fix: handle project fetching error #22037

Triggered via pull request October 8, 2024 06:37
Status Failure
Total duration 4m 17s
Artifacts

build_frontend_prs.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
Unhandled error: frontend/src/component/personalDashboard/PersonalDashboard.tsx#L60
ReferenceError: useRef is not defined ❯ FlagListItem src/component/personalDashboard/PersonalDashboard.tsx:60:27 ❯ 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 ❯ performSyncWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:26135:20 This error originated in "src/component/personalDashboard/PersonalDashboard.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 "Render personal dashboard for a long running project". 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/component/personalDashboard/PersonalDashboard.test.tsx > Render personal dashboard for a long running project: frontend/src/component/personalDashboard/PersonalDashboard.test.tsx#L134
TestingLibraryElementError: Unable to find an element with the text: projectName. 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 style="" > <div /> </body> Ignored nodes: comments, script, style <body style="" > <div /> </body> ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:166:27 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ src/component/personalDashboard/PersonalDashboard.test.tsx:134:18
build
Process completed with exit code 1.