Mock useId so it can be reset before each tests #18467
Annotations
10 errors and 1 warning
|
Run tests:
apps/web/test/unit-tests/components/views/dialogs/CreateRoomDialog-test.tsx#L262
expect(received).toMatchSnapshot()
Snapshot name: `<CreateRoomDialog /> for a private room should render not the advanced options when UI.advancedSettings is disabled 1`
- Snapshot - 6
+ Received + 6
@@ -122,11 +122,11 @@
class="_container_udcm8_10"
>
<input
checked=""
class="_input_udcm8_24"
- id="_r_o_"
+ id="test-id-4"
role="switch"
type="checkbox"
/>
<div
class="_ui_udcm8_34"
@@ -136,17 +136,17 @@
<div
class="_inline-field-body_19upo_38"
>
<label
class="_label_19upo_59"
- for="_r_o_"
+ for="test-id-4"
>
Enable end-to-end encryption
</label>
<span
class="_message_19upo_85 _help-message_19upo_91"
- id="radix-test-id-9"
+ id="radix-_r_49_"
>
You can't disable this later. Bridges & most bots won't work yet.
</span>
</div>
</div>
@@ -159,11 +159,11 @@
<div
class="_container_udcm8_10"
>
<input
class="_input_udcm8_24"
- id="_r_p_"
+ id="test-id-5"
role="switch"
type="checkbox"
/>
<div
class="_ui_udcm8_34"
@@ -173,17 +173,17 @@
<div
class="_inline-field-body_19upo_38"
>
<label
class="_label_19upo_59"
- for="_r_p_"
+ for="test-id-5"
>
Encrypt state events
</label>
<span
class="_message_19upo_85 _help-message_19upo_91"
- id="radix-test-id-11"
+ id="radix-_r_4b_"
>
Enables experimental support for encrypting state events, which hides metadata such as room names and topics from the server. This metadata will also be hidden from people joining rooms later, and people whose clients do not support MSC4362.
</span>
</div>
</div>
at Object.toMatchSnapshot (test/unit-tests/components/views/dialogs/CreateRoomDialog-test.tsx:262:34)
|
|
Run tests:
apps/web/test/unit-tests/components/views/dialogs/CreateRoomDialog-test.tsx#L238
expect(received).toMatchSnapshot()
Snapshot name: `<CreateRoomDialog /> for a private room should create a private room 1`
- Snapshot - 6
+ Received + 6
@@ -122,11 +122,11 @@
class="_container_udcm8_10"
>
<input
checked=""
class="_input_udcm8_24"
- id="_r_m_"
+ id="test-id-4"
role="switch"
type="checkbox"
/>
<div
class="_ui_udcm8_34"
@@ -136,17 +136,17 @@
<div
class="_inline-field-body_19upo_38"
>
<label
class="_label_19upo_59"
- for="_r_m_"
+ for="test-id-4"
>
Enable end-to-end encryption
</label>
<span
class="_message_19upo_85 _help-message_19upo_91"
- id="radix-test-id-9"
+ id="radix-_r_3v_"
>
You can't disable this later. Bridges & most bots won't work yet.
</span>
</div>
</div>
@@ -167,11 +167,11 @@
<div
class="_container_udcm8_10"
>
<input
class="_input_udcm8_24"
- id="_r_n_"
+ id="test-id-5"
role="switch"
type="checkbox"
/>
<div
class="_ui_udcm8_34"
@@ -181,17 +181,17 @@
<div
class="_inline-field-body_19upo_38"
>
<label
class="_label_19upo_59"
- for="_r_n_"
+ for="test-id-5"
>
Block anyone not part of server.org from ever joining this room.
</label>
<span
class="_message_19upo_85 _help-message_19upo_91"
- id="radix-test-id-11"
+ id="radix-_r_41_"
>
You might enable this if the room will only be used for collaborating with internal teams on your homeserver. This cannot be changed later.
</span>
</div>
</div>
at Object.toMatchSnapshot (test/unit-tests/components/views/dialogs/CreateRoomDialog-test.tsx:238:34)
|
|
Run tests:
apps/web/src/MatrixClientPeg.ts#L181
User is not logged in
at MatrixClientPegClass.safeGet (src/MatrixClientPeg.ts:181:19)
at Object.safeGet (test/unit-tests/stores/message-preview/previews/LegacyCallHangupEvent-test.ts:61:40)
|
|
Run tests:
apps/web/src/MatrixClientPeg.ts#L181
User is not logged in
at MatrixClientPegClass.safeGet (src/MatrixClientPeg.ts:181:19)
at Object.safeGet (test/unit-tests/stores/message-preview/previews/LegacyCallHangupEvent-test.ts:53:45)
|
|
Run tests:
apps/web/src/MatrixClientPeg.ts#L181
User is not logged in
at MatrixClientPegClass.safeGet (src/MatrixClientPeg.ts:181:19)
at safeGet (src/stores/message-preview/previews/utils.ts:15:40)
at LegacyCallHangupEvent.getTextFor (src/stores/message-preview/previews/LegacyCallHangupEvent.ts:19:23)
at Object.getTextFor (test/unit-tests/stores/message-preview/previews/LegacyCallHangupEvent-test.ts:47:32)
|
|
Run tests:
apps/web/src/MatrixClientPeg.ts#L181
User is not logged in
at MatrixClientPegClass.safeGet (src/MatrixClientPeg.ts:181:19)
at Object.safeGet (test/unit-tests/stores/message-preview/previews/LegacyCallHangupEvent-test.ts:27:52)
|
|
Run tests:
apps/web/test/unit-tests/stores/LifecycleStore-test.ts#L75
TypeError: Cannot read properties of undefined (reading '0')
at Object.<anonymous> (test/unit-tests/stores/LifecycleStore-test.ts:75:40)
|
|
Run tests:
apps/web/test/unit-tests/stores/LifecycleStore-test.ts#L56
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: ObjectContaining {"title": "Your server is unsupported"}
Number of calls: 0
at Object.toHaveBeenCalledWith (test/unit-tests/stores/LifecycleStore-test.ts:56:35)
|
|
Run tests:
apps/web/test/unit-tests/components/views/settings/encryption/AdvancedPanel-test.tsx#L76
expect(received).toMatchSnapshot()
Snapshot name: `<AdvancedPanel /> <OtherSettings /> should display the blacklist of unverified devices settings 1`
- Snapshot - 4
+ Received + 4
@@ -15,14 +15,14 @@
>
<div
class="_container_udcm8_10"
>
<input
- aria-describedby="radix-test-id-1"
+ aria-describedby="radix-_r_7_"
checked=""
class="_input_udcm8_24"
- id="radix-test-id-0"
+ id="radix-_r_6_"
name="neverSendEncrypted"
role="switch"
title=""
type="checkbox"
/>
@@ -34,17 +34,17 @@
<div
class="_inline-field-body_19upo_38"
>
<label
class="_label_19upo_59"
- for="radix-test-id-0"
+ for="radix-_r_6_"
>
In encrypted rooms, only send messages to verified users
</label>
<span
class="_message_19upo_85 _help-message_19upo_91"
- id="radix-test-id-1"
+ id="radix-_r_7_"
>
Warning: users who have not explicitly verified with you (e.g. using emoji) will not receive your encrypted messages. Also, unverified devices of verified users will not receive your encrypted messages. Changes require an application restart to take effect.
</span>
</div>
</div>
at Object.toMatchSnapshot (test/unit-tests/components/views/settings/encryption/AdvancedPanel-test.tsx:76:57)
|
|
Run tests:
apps/web/test/unit-tests/models/Call-test.ts#L1055
expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
at Object.toBe (test/unit-tests/models/Call-test.ts:1055:70)
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: SimenB/github-actions-cpu-cores@97ba232459a8e02ff6121db9362b09661c875ab8. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
Loading