Skip to content

Hide access link settings on DM room #407

Hide access link settings on DM room

Hide access link settings on DM room #407

Triggered via pull request January 13, 2025 11:05
Status Failure
Total duration 2m 43s
Artifacts

tchap_tests.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
TchapJoinRule › should render the tchap join rule with only private option: src/tchap/components/views/rooms/TchapRoomLinkAccess.tsx#L34
TypeError: Cannot read properties of undefined (reading 'getUserIdForRoomId') at initialLinkSharingValue (src/tchap/components/views/rooms/TchapRoomLinkAccess.tsx:34:40) at initialLinkSharingValue (src/tchap/components/views/rooms/TchapRoomLinkAccess.tsx:52:9) at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26) at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11) at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9) at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7) at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3) at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3) at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14) at node_modules/react-dom/cjs/react-dom.development.js:26808:9 at flushActQueue (node_modules/react/cjs/react.development.js:2667:24) at act (node_modules/react/cjs/react.development.js:2582:11) at node_modules/@testing-library/react/dist/act-compat.js:47:25 at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26) at render (node_modules/@testing-library/react/dist/pure.js:271:10) at customRender (test/test-utils/jest-matrix-react.tsx:29:18) at Object.<anonymous> (test/unit-tests/tchap/components/views/settings/TchapJoinRuleSettings-test.tsx:58:15)
TchapJoinRule › should render the tchap join rule with only private option with restricted access rules: src/tchap/components/views/rooms/TchapRoomLinkAccess.tsx#L34
TypeError: Cannot read properties of undefined (reading 'getUserIdForRoomId') at initialLinkSharingValue (src/tchap/components/views/rooms/TchapRoomLinkAccess.tsx:34:40) at initialLinkSharingValue (src/tchap/components/views/rooms/TchapRoomLinkAccess.tsx:52:9) at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26) at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11) at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9) at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7) at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3) at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3) at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14) at node_modules/react-dom/cjs/react-dom.development.js:26808:9 at flushActQueue (node_modules/react/cjs/react.development.js:2667:24) at act (node_modules/react/cjs/react.development.js:2582:11) at node_modules/@testing-library/react/dist/act-compat.js:47:25 at renderRoot (node_modules/@testing-library/react/dist/pure.js:180:26) at render (node_modules/@testing-library/react/dist/pure.js:271:10) at customRender (test/test-utils/jest-matrix-react.tsx:29:18) at Object.<anonymous> (test/unit-tests/tchap/components/views/settings/TchapJoinRuleSettings-test.tsx:87:15)
Jest
Process completed with exit code 1.
Jest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Jest
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/