Skip to content

show the current time on approval title #1572

show the current time on approval title

show the current time on approval title #1572

GitHub Actions / Frontend Test Results succeeded Dec 18, 2024 in 0s

3 fail, 20 skipped, 367 pass in 39s

  1 files  ±0  116 suites  ±0   39s ⏱️ -1s
390 tests ±0  367 ✅ ±0  20 💤 ±0  3 ❌ ±0 
392 runs  ±0  369 ✅ ±0  20 💤 ±0  3 ❌ ±0 

Results for commit 1c6f3f0. ± Comparison against earlier commit 0dae49e.

Annotations

Check warning on line 0 in src/views/AllocationAgreements/__tests__/AddEditAllocationAgreements.test.jsx

See this annotation in the file changed.

@github-actions github-actions / Frontend Test Results

AddEditAllocationAgreements > renders the component (src/views/AllocationAgreements/__tests__/AddEditAllocationAgreements.test.jsx) failed

frontend/vitest-results.xml [took 0s]
Raw output
authClient has not been assigned to ReactKeycloakProvider

Error: authClient has not been assigned to ReactKeycloakProvider
 ❯ Proxy.useKeycloak node_modules/@react-keycloak/web/lib-commonjs/@react-keycloak/web/useKeycloak.ts:15:11
 ❯ Module.useApiService src/services/useApiService.js:8:24
 ❯ Module.useCurrentUser src/hooks/useCurrentUser.js:8:18
 ❯ AddEditAllocationAgreements src/views/AllocationAgreements/AddEditAllocationAgreements.jsx:35:33
 ❯ 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

Error: Uncaught [Error: authClient has not been assigned to ReactKeycloakProvider]
    at reportException (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
    at performUnitOfWork (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:26599:12) Error: authClient has not been assigned to ReactKeycloakProvider
    at Proxy.useKeycloak [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4m@react-keycloak[24m/web/lib-commonjs/@react-keycloak/web/useKeycloak.ts:15:11[90m)[39m
    at Module.useApiService [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/services/useApiService.js:8:24[90m)[39m
    at Module.useCurrentUser [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/hooks/useCurrentUser.js:8:18[90m)[39m
    at AddEditAllocationAgreements [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/views/AllocationAgreements/AddEditAllocationAgreements.jsx:35:33[90m)[39m
    at renderWithHooks [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:15486:18[90m)[39m
    at mountIndeterminateComponent [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:20103:13[90m)[39m
    at beginWork [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:21626:16[90m)[39m
    at HTMLUnknownElement.callCallback [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:4164:14[90m)[39m
    at HTMLUnknownElement.callTheUserObjectsOperation [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/generated/EventListener.js:26:30[90m)[39m
    at innerInvokeEventListeners [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/events/EventTarget-impl.js:350:25[90m)[39m
Error: Uncaught [Error: authClient has not been assigned to ReactKeycloakProvider]
    at reportException (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
    at performUnitOfWork (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:26599:12) Error: authClient has not been assigned to ReactKeycloakProvider
    at Proxy.useKeycloak [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4m@react-keycloak[24m/web/lib-commonjs/@react-keycloak/web/useKeycloak.ts:15:11[90m)[39m
    at Module.useApiService [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/services/useApiService.js:8:24[90m)[39m
    at Module.useCurrentUser [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/hooks/useCurrentUser.js:8:18[90m)[39m
    at AddEditAllocationAgreements [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/views/AllocationAgreements/AddEditAllocationAgreements.jsx:35:33[90m)[39m
    at renderWithHooks [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:15486:18[90m)[39m
    at mountIndeterminateComponent [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:20103:13[90m)[39m
    at beginWork [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:21626:16[90m)[39m
    at HTMLUnknownElement.callCallback [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:4164:14[90m)[39m
    at HTMLUnknownElement.callTheUserObjectsOperation [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/generated/EventListener.js:26:30[90m)[39m
    at innerInvokeEventListeners [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/events/EventTarget-impl.js:350:25[90m)[39m
The above error occurred in the <AddEditAllocationAgreements> component:

    at AddEditAllocationAgreements (/home/runner/work/lcfs/lcfs/frontend/src/views/AllocationAgreements/AddEditAllocationAgreements.jsx:30:55)
    at Router (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-router/dist/umd/react-router.development.js:1174:17)
    at BrowserRouter (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-router-dom/dist/umd/react-router-dom.development.js:694:7)
    at DefaultPropsProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js:18:3)
    at RtlProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/system/RtlProvider/index.js:19:7)
    at ThemeProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js:39:5)
    at ThemeProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/system/ThemeProvider/ThemeProvider.js:52:5)
    at ThemeProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/material/node/styles/ThemeProvider.js:21:14)
    at QueryClientProvider (file:///home/runner/work/lcfs/lcfs/frontend/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:3)
    at wrapper (/home/runner/work/lcfs/lcfs/frontend/src/tests/utils/wrapper.jsx:23:20)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

Check warning on line 0 in src/views/AllocationAgreements/__tests__/AddEditAllocationAgreements.test.jsx

See this annotation in the file changed.

@github-actions github-actions / Frontend Test Results

AddEditAllocationAgreements > initializes with at least one row in the empty state (src/views/AllocationAgreements/__tests__/AddEditAllocationAgreements.test.jsx) failed

frontend/vitest-results.xml [took 0s]
Raw output
authClient has not been assigned to ReactKeycloakProvider

Error: authClient has not been assigned to ReactKeycloakProvider
 ❯ Proxy.useKeycloak node_modules/@react-keycloak/web/lib-commonjs/@react-keycloak/web/useKeycloak.ts:15:11
 ❯ Module.useApiService src/services/useApiService.js:8:24
 ❯ Module.useCurrentUser src/hooks/useCurrentUser.js:8:18
 ❯ AddEditAllocationAgreements src/views/AllocationAgreements/AddEditAllocationAgreements.jsx:35:33
 ❯ 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

Error: Uncaught [Error: authClient has not been assigned to ReactKeycloakProvider]
    at reportException (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
    at performUnitOfWork (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:26599:12) Error: authClient has not been assigned to ReactKeycloakProvider
    at Proxy.useKeycloak [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4m@react-keycloak[24m/web/lib-commonjs/@react-keycloak/web/useKeycloak.ts:15:11[90m)[39m
    at Module.useApiService [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/services/useApiService.js:8:24[90m)[39m
    at Module.useCurrentUser [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/hooks/useCurrentUser.js:8:18[90m)[39m
    at AddEditAllocationAgreements [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/views/AllocationAgreements/AddEditAllocationAgreements.jsx:35:33[90m)[39m
    at renderWithHooks [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:15486:18[90m)[39m
    at mountIndeterminateComponent [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:20103:13[90m)[39m
    at beginWork [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:21626:16[90m)[39m
    at HTMLUnknownElement.callCallback [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:4164:14[90m)[39m
    at HTMLUnknownElement.callTheUserObjectsOperation [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/generated/EventListener.js:26:30[90m)[39m
    at innerInvokeEventListeners [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/events/EventTarget-impl.js:350:25[90m)[39m
Error: Uncaught [Error: authClient has not been assigned to ReactKeycloakProvider]
    at reportException (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
    at performUnitOfWork (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:26599:12) Error: authClient has not been assigned to ReactKeycloakProvider
    at Proxy.useKeycloak [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4m@react-keycloak[24m/web/lib-commonjs/@react-keycloak/web/useKeycloak.ts:15:11[90m)[39m
    at Module.useApiService [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/services/useApiService.js:8:24[90m)[39m
    at Module.useCurrentUser [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/hooks/useCurrentUser.js:8:18[90m)[39m
    at AddEditAllocationAgreements [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/views/AllocationAgreements/AddEditAllocationAgreements.jsx:35:33[90m)[39m
    at renderWithHooks [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:15486:18[90m)[39m
    at mountIndeterminateComponent [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:20103:13[90m)[39m
    at beginWork [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:21626:16[90m)[39m
    at HTMLUnknownElement.callCallback [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:4164:14[90m)[39m
    at HTMLUnknownElement.callTheUserObjectsOperation [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/generated/EventListener.js:26:30[90m)[39m
    at innerInvokeEventListeners [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/events/EventTarget-impl.js:350:25[90m)[39m
The above error occurred in the <AddEditAllocationAgreements> component:

    at AddEditAllocationAgreements (/home/runner/work/lcfs/lcfs/frontend/src/views/AllocationAgreements/AddEditAllocationAgreements.jsx:30:55)
    at Router (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-router/dist/umd/react-router.development.js:1174:17)
    at BrowserRouter (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-router-dom/dist/umd/react-router-dom.development.js:694:7)
    at DefaultPropsProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js:18:3)
    at RtlProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/system/RtlProvider/index.js:19:7)
    at ThemeProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js:39:5)
    at ThemeProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/system/ThemeProvider/ThemeProvider.js:52:5)
    at ThemeProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/material/node/styles/ThemeProvider.js:21:14)
    at QueryClientProvider (file:///home/runner/work/lcfs/lcfs/frontend/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:3)
    at wrapper (/home/runner/work/lcfs/lcfs/frontend/src/tests/utils/wrapper.jsx:23:20)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

Check warning on line 0 in src/views/AllocationAgreements/__tests__/AddEditAllocationAgreements.test.jsx

See this annotation in the file changed.

@github-actions github-actions / Frontend Test Results

AddEditAllocationAgreements > loads data when allocationAgreements are available (src/views/AllocationAgreements/__tests__/AddEditAllocationAgreements.test.jsx) failed

frontend/vitest-results.xml [took 0s]
Raw output
authClient has not been assigned to ReactKeycloakProvider

Error: authClient has not been assigned to ReactKeycloakProvider
 ❯ Proxy.useKeycloak node_modules/@react-keycloak/web/lib-commonjs/@react-keycloak/web/useKeycloak.ts:15:11
 ❯ Module.useApiService src/services/useApiService.js:8:24
 ❯ Module.useCurrentUser src/hooks/useCurrentUser.js:8:18
 ❯ AddEditAllocationAgreements src/views/AllocationAgreements/AddEditAllocationAgreements.jsx:35:33
 ❯ 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

Error: Uncaught [Error: authClient has not been assigned to ReactKeycloakProvider]
    at reportException (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
    at performUnitOfWork (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:26599:12) Error: authClient has not been assigned to ReactKeycloakProvider
    at Proxy.useKeycloak [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4m@react-keycloak[24m/web/lib-commonjs/@react-keycloak/web/useKeycloak.ts:15:11[90m)[39m
    at Module.useApiService [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/services/useApiService.js:8:24[90m)[39m
    at Module.useCurrentUser [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/hooks/useCurrentUser.js:8:18[90m)[39m
    at AddEditAllocationAgreements [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/views/AllocationAgreements/AddEditAllocationAgreements.jsx:35:33[90m)[39m
    at renderWithHooks [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:15486:18[90m)[39m
    at mountIndeterminateComponent [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:20103:13[90m)[39m
    at beginWork [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:21626:16[90m)[39m
    at HTMLUnknownElement.callCallback [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:4164:14[90m)[39m
    at HTMLUnknownElement.callTheUserObjectsOperation [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/generated/EventListener.js:26:30[90m)[39m
    at innerInvokeEventListeners [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/events/EventTarget-impl.js:350:25[90m)[39m
Error: Uncaught [Error: authClient has not been assigned to ReactKeycloakProvider]
    at reportException (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
    at innerInvokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
    at invokeEventListeners (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
    at HTMLUnknownElementImpl._dispatch (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
    at HTMLUnknownElementImpl.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
    at HTMLUnknownElement.dispatchEvent (/home/runner/work/lcfs/lcfs/frontend/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
    at Object.invokeGuardedCallbackDev (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
    at invokeGuardedCallback (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
    at beginWork$1 (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:27490:7)
    at performUnitOfWork (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-dom/cjs/react-dom.development.js:26599:12) Error: authClient has not been assigned to ReactKeycloakProvider
    at Proxy.useKeycloak [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4m@react-keycloak[24m/web/lib-commonjs/@react-keycloak/web/useKeycloak.ts:15:11[90m)[39m
    at Module.useApiService [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/services/useApiService.js:8:24[90m)[39m
    at Module.useCurrentUser [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/hooks/useCurrentUser.js:8:18[90m)[39m
    at AddEditAllocationAgreements [90m(/home/runner/work/lcfs/lcfs/frontend/[39msrc/views/AllocationAgreements/AddEditAllocationAgreements.jsx:35:33[90m)[39m
    at renderWithHooks [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:15486:18[90m)[39m
    at mountIndeterminateComponent [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:20103:13[90m)[39m
    at beginWork [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:21626:16[90m)[39m
    at HTMLUnknownElement.callCallback [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mreact-dom[24m/cjs/react-dom.development.js:4164:14[90m)[39m
    at HTMLUnknownElement.callTheUserObjectsOperation [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/generated/EventListener.js:26:30[90m)[39m
    at innerInvokeEventListeners [90m(/home/runner/work/lcfs/lcfs/frontend/[39mnode_modules/[4mjsdom[24m/lib/jsdom/living/events/EventTarget-impl.js:350:25[90m)[39m
The above error occurred in the <AddEditAllocationAgreements> component:

    at AddEditAllocationAgreements (/home/runner/work/lcfs/lcfs/frontend/src/views/AllocationAgreements/AddEditAllocationAgreements.jsx:30:55)
    at Router (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-router/dist/umd/react-router.development.js:1174:17)
    at BrowserRouter (/home/runner/work/lcfs/lcfs/frontend/node_modules/react-router-dom/dist/umd/react-router-dom.development.js:694:7)
    at DefaultPropsProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js:18:3)
    at RtlProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/system/RtlProvider/index.js:19:7)
    at ThemeProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js:39:5)
    at ThemeProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/system/ThemeProvider/ThemeProvider.js:52:5)
    at ThemeProvider (/home/runner/work/lcfs/lcfs/frontend/node_modules/@mui/material/node/styles/ThemeProvider.js:21:14)
    at QueryClientProvider (file:///home/runner/work/lcfs/lcfs/frontend/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:20:3)
    at wrapper (/home/runner/work/lcfs/lcfs/frontend/src/tests/utils/wrapper.jsx:23:20)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.