Skip to content

Commit 89fd488

Browse files
committed
test: update snapshot
1 parent 09bd439 commit 89fd488

File tree

4 files changed

+39
-39
lines changed

4 files changed

+39
-39
lines changed

test/unit-tests/components/views/rooms/RoomListPanel/__snapshots__/RoomList-test.tsx.snap

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ exports[`<RoomList /> should render a room list 1`] = `
2525
<button
2626
aria-label="Open room room0"
2727
aria-selected="false"
28-
class="mx_RoomListItemView mx_RoomListItemView_empty"
28+
class="mx_RoomListItemView"
2929
role="gridcell"
3030
style="height: 48px; left: 0px; position: absolute; top: 0px; width: 100%;"
3131
tabindex="0"
@@ -56,7 +56,7 @@ exports[`<RoomList /> should render a room list 1`] = `
5656
</span>
5757
<div
5858
class="mx_Flex mx_RoomListItemView_content"
59-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
59+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
6060
>
6161
<div
6262
class="mx_RoomListItemView_text"
@@ -77,7 +77,7 @@ exports[`<RoomList /> should render a room list 1`] = `
7777
<button
7878
aria-label="Open room room1"
7979
aria-selected="false"
80-
class="mx_RoomListItemView mx_RoomListItemView_empty"
80+
class="mx_RoomListItemView"
8181
role="gridcell"
8282
style="height: 48px; left: 0px; position: absolute; top: 48px; width: 100%;"
8383
tabindex="-1"
@@ -108,7 +108,7 @@ exports[`<RoomList /> should render a room list 1`] = `
108108
</span>
109109
<div
110110
class="mx_Flex mx_RoomListItemView_content"
111-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
111+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
112112
>
113113
<div
114114
class="mx_RoomListItemView_text"
@@ -129,7 +129,7 @@ exports[`<RoomList /> should render a room list 1`] = `
129129
<button
130130
aria-label="Open room room2"
131131
aria-selected="false"
132-
class="mx_RoomListItemView mx_RoomListItemView_empty"
132+
class="mx_RoomListItemView"
133133
role="gridcell"
134134
style="height: 48px; left: 0px; position: absolute; top: 96px; width: 100%;"
135135
tabindex="-1"
@@ -160,7 +160,7 @@ exports[`<RoomList /> should render a room list 1`] = `
160160
</span>
161161
<div
162162
class="mx_Flex mx_RoomListItemView_content"
163-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
163+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
164164
>
165165
<div
166166
class="mx_RoomListItemView_text"
@@ -181,7 +181,7 @@ exports[`<RoomList /> should render a room list 1`] = `
181181
<button
182182
aria-label="Open room room3"
183183
aria-selected="false"
184-
class="mx_RoomListItemView mx_RoomListItemView_empty"
184+
class="mx_RoomListItemView"
185185
role="gridcell"
186186
style="height: 48px; left: 0px; position: absolute; top: 144px; width: 100%;"
187187
tabindex="-1"
@@ -212,7 +212,7 @@ exports[`<RoomList /> should render a room list 1`] = `
212212
</span>
213213
<div
214214
class="mx_Flex mx_RoomListItemView_content"
215-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
215+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
216216
>
217217
<div
218218
class="mx_RoomListItemView_text"
@@ -233,7 +233,7 @@ exports[`<RoomList /> should render a room list 1`] = `
233233
<button
234234
aria-label="Open room room4"
235235
aria-selected="false"
236-
class="mx_RoomListItemView mx_RoomListItemView_empty"
236+
class="mx_RoomListItemView"
237237
role="gridcell"
238238
style="height: 48px; left: 0px; position: absolute; top: 192px; width: 100%;"
239239
tabindex="-1"
@@ -264,7 +264,7 @@ exports[`<RoomList /> should render a room list 1`] = `
264264
</span>
265265
<div
266266
class="mx_Flex mx_RoomListItemView_content"
267-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
267+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
268268
>
269269
<div
270270
class="mx_RoomListItemView_text"
@@ -285,7 +285,7 @@ exports[`<RoomList /> should render a room list 1`] = `
285285
<button
286286
aria-label="Open room room5"
287287
aria-selected="false"
288-
class="mx_RoomListItemView mx_RoomListItemView_empty"
288+
class="mx_RoomListItemView"
289289
role="gridcell"
290290
style="height: 48px; left: 0px; position: absolute; top: 240px; width: 100%;"
291291
tabindex="-1"
@@ -316,7 +316,7 @@ exports[`<RoomList /> should render a room list 1`] = `
316316
</span>
317317
<div
318318
class="mx_Flex mx_RoomListItemView_content"
319-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
319+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
320320
>
321321
<div
322322
class="mx_RoomListItemView_text"
@@ -337,7 +337,7 @@ exports[`<RoomList /> should render a room list 1`] = `
337337
<button
338338
aria-label="Open room room6"
339339
aria-selected="false"
340-
class="mx_RoomListItemView mx_RoomListItemView_empty"
340+
class="mx_RoomListItemView"
341341
role="gridcell"
342342
style="height: 48px; left: 0px; position: absolute; top: 288px; width: 100%;"
343343
tabindex="-1"
@@ -368,7 +368,7 @@ exports[`<RoomList /> should render a room list 1`] = `
368368
</span>
369369
<div
370370
class="mx_Flex mx_RoomListItemView_content"
371-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
371+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
372372
>
373373
<div
374374
class="mx_RoomListItemView_text"
@@ -389,7 +389,7 @@ exports[`<RoomList /> should render a room list 1`] = `
389389
<button
390390
aria-label="Open room room7"
391391
aria-selected="false"
392-
class="mx_RoomListItemView mx_RoomListItemView_empty"
392+
class="mx_RoomListItemView"
393393
role="gridcell"
394394
style="height: 48px; left: 0px; position: absolute; top: 336px; width: 100%;"
395395
tabindex="-1"
@@ -420,7 +420,7 @@ exports[`<RoomList /> should render a room list 1`] = `
420420
</span>
421421
<div
422422
class="mx_Flex mx_RoomListItemView_content"
423-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
423+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
424424
>
425425
<div
426426
class="mx_RoomListItemView_text"
@@ -441,7 +441,7 @@ exports[`<RoomList /> should render a room list 1`] = `
441441
<button
442442
aria-label="Open room room8"
443443
aria-selected="false"
444-
class="mx_RoomListItemView mx_RoomListItemView_empty"
444+
class="mx_RoomListItemView"
445445
role="gridcell"
446446
style="height: 48px; left: 0px; position: absolute; top: 384px; width: 100%;"
447447
tabindex="-1"
@@ -472,7 +472,7 @@ exports[`<RoomList /> should render a room list 1`] = `
472472
</span>
473473
<div
474474
class="mx_Flex mx_RoomListItemView_content"
475-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
475+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
476476
>
477477
<div
478478
class="mx_RoomListItemView_text"
@@ -493,7 +493,7 @@ exports[`<RoomList /> should render a room list 1`] = `
493493
<button
494494
aria-label="Open room room9"
495495
aria-selected="false"
496-
class="mx_RoomListItemView mx_RoomListItemView_empty"
496+
class="mx_RoomListItemView"
497497
role="gridcell"
498498
style="height: 48px; left: 0px; position: absolute; top: 432px; width: 100%;"
499499
tabindex="-1"
@@ -524,7 +524,7 @@ exports[`<RoomList /> should render a room list 1`] = `
524524
</span>
525525
<div
526526
class="mx_Flex mx_RoomListItemView_content"
527-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
527+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
528528
>
529529
<div
530530
class="mx_RoomListItemView_text"

test/unit-tests/components/views/rooms/RoomListPanel/__snapshots__/RoomListItemMenuView-test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`<RoomListItemMenuView /> should render the more options menu 1`] = `
44
<DocumentFragment>
55
<div
66
class="mx_Flex mx_RoomListItemMenuView"
7-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: var(--cpd-space-0-5x); --mx-flex-wrap: nowrap;"
7+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: var(--cpd-space-1x); --mx-flex-wrap: nowrap;"
88
>
99
<button
1010
aria-disabled="false"
@@ -79,7 +79,7 @@ exports[`<RoomListItemMenuView /> should render the notification options menu 1`
7979
<DocumentFragment>
8080
<div
8181
class="mx_Flex mx_RoomListItemMenuView"
82-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: var(--cpd-space-0-5x); --mx-flex-wrap: nowrap;"
82+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: var(--cpd-space-1x); --mx-flex-wrap: nowrap;"
8383
>
8484
<button
8585
aria-disabled="false"

test/unit-tests/components/views/rooms/RoomListPanel/__snapshots__/RoomListItemView-test.tsx.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`<RoomListItemView /> should be selected if isSelected=true 1`] = `
55
<button
66
aria-label="Open room room1"
77
aria-selected="true"
8-
class="mx_RoomListItemView mx_RoomListItemView_empty mx_RoomListItemView_selected"
8+
class="mx_RoomListItemView mx_RoomListItemView_selected"
99
tabindex="-1"
1010
type="button"
1111
>
@@ -34,7 +34,7 @@ exports[`<RoomListItemView /> should be selected if isSelected=true 1`] = `
3434
</span>
3535
<div
3636
class="mx_Flex mx_RoomListItemView_content"
37-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
37+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
3838
>
3939
<div
4040
class="mx_RoomListItemView_text"
@@ -60,7 +60,7 @@ exports[`<RoomListItemView /> should display notification decoration 1`] = `
6060
<button
6161
aria-label="Open room room1"
6262
aria-selected="false"
63-
class="mx_RoomListItemView mx_RoomListItemView_notification_decoration"
63+
class="mx_RoomListItemView"
6464
tabindex="-1"
6565
type="button"
6666
>
@@ -89,7 +89,7 @@ exports[`<RoomListItemView /> should display notification decoration 1`] = `
8989
</span>
9090
<div
9191
class="mx_Flex mx_RoomListItemView_content"
92-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
92+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
9393
>
9494
<div
9595
class="mx_RoomListItemView_text"
@@ -108,7 +108,7 @@ exports[`<RoomListItemView /> should display notification decoration 1`] = `
108108
aria-hidden="true"
109109
class="mx_Flex"
110110
data-testid="notification-decoration"
111-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: center; --mx-flex-gap: var(--cpd-space-1-5x); --mx-flex-wrap: nowrap;"
111+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: center; --mx-flex-gap: var(--cpd-space-1x); --mx-flex-wrap: nowrap;"
112112
>
113113
<span
114114
class="_unread-counter_9mg0k_8"
@@ -127,7 +127,7 @@ exports[`<RoomListItemView /> should render a room item 1`] = `
127127
<button
128128
aria-label="Open room room1"
129129
aria-selected="false"
130-
class="mx_RoomListItemView mx_RoomListItemView_empty"
130+
class="mx_RoomListItemView"
131131
tabindex="-1"
132132
type="button"
133133
>
@@ -156,7 +156,7 @@ exports[`<RoomListItemView /> should render a room item 1`] = `
156156
</span>
157157
<div
158158
class="mx_Flex mx_RoomListItemView_content"
159-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
159+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
160160
>
161161
<div
162162
class="mx_RoomListItemView_text"
@@ -182,7 +182,7 @@ exports[`<RoomListItemView /> should render a room item with a message preview 1
182182
<button
183183
aria-label="Open room room1"
184184
aria-selected="false"
185-
class="mx_RoomListItemView mx_RoomListItemView_empty"
185+
class="mx_RoomListItemView"
186186
tabindex="-1"
187187
type="button"
188188
>
@@ -211,7 +211,7 @@ exports[`<RoomListItemView /> should render a room item with a message preview 1
211211
</span>
212212
<div
213213
class="mx_Flex mx_RoomListItemView_content"
214-
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-3x); --mx-flex-wrap: nowrap;"
214+
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: space-between; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: nowrap;"
215215
>
216216
<div
217217
class="mx_RoomListItemView_text"

0 commit comments

Comments
 (0)