Skip to content

Commit cb5b208

Browse files
committed
test: update snapshots
1 parent 8f8a4fa commit cb5b208

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports[`<RoomList /> should render a room list 1`] = `
1515
class="ReactVirtualized__Grid ReactVirtualized__List mx_RoomList_List"
1616
role="grid"
1717
style="box-sizing: border-box; direction: ltr; height: 1500px; position: relative; width: 1500px; will-change: transform; overflow-x: hidden; overflow-y: hidden;"
18-
tabindex="0"
18+
tabindex="-1"
1919
>
2020
<div
2121
class="ReactVirtualized__Grid__innerScrollContainer"
@@ -28,6 +28,7 @@ exports[`<RoomList /> should render a room list 1`] = `
2828
class="mx_RoomListItemView mx_RoomListItemView_empty"
2929
role="gridcell"
3030
style="height: 48px; left: 0px; position: absolute; top: 0px; width: 100%;"
31+
tabindex="0"
3132
type="button"
3233
>
3334
<div
@@ -79,6 +80,7 @@ exports[`<RoomList /> should render a room list 1`] = `
7980
class="mx_RoomListItemView mx_RoomListItemView_empty"
8081
role="gridcell"
8182
style="height: 48px; left: 0px; position: absolute; top: 48px; width: 100%;"
83+
tabindex="-1"
8284
type="button"
8385
>
8486
<div
@@ -130,6 +132,7 @@ exports[`<RoomList /> should render a room list 1`] = `
130132
class="mx_RoomListItemView mx_RoomListItemView_empty"
131133
role="gridcell"
132134
style="height: 48px; left: 0px; position: absolute; top: 96px; width: 100%;"
135+
tabindex="-1"
133136
type="button"
134137
>
135138
<div
@@ -181,6 +184,7 @@ exports[`<RoomList /> should render a room list 1`] = `
181184
class="mx_RoomListItemView mx_RoomListItemView_empty"
182185
role="gridcell"
183186
style="height: 48px; left: 0px; position: absolute; top: 144px; width: 100%;"
187+
tabindex="-1"
184188
type="button"
185189
>
186190
<div
@@ -232,6 +236,7 @@ exports[`<RoomList /> should render a room list 1`] = `
232236
class="mx_RoomListItemView mx_RoomListItemView_empty"
233237
role="gridcell"
234238
style="height: 48px; left: 0px; position: absolute; top: 192px; width: 100%;"
239+
tabindex="-1"
235240
type="button"
236241
>
237242
<div
@@ -283,6 +288,7 @@ exports[`<RoomList /> should render a room list 1`] = `
283288
class="mx_RoomListItemView mx_RoomListItemView_empty"
284289
role="gridcell"
285290
style="height: 48px; left: 0px; position: absolute; top: 240px; width: 100%;"
291+
tabindex="-1"
286292
type="button"
287293
>
288294
<div
@@ -334,6 +340,7 @@ exports[`<RoomList /> should render a room list 1`] = `
334340
class="mx_RoomListItemView mx_RoomListItemView_empty"
335341
role="gridcell"
336342
style="height: 48px; left: 0px; position: absolute; top: 288px; width: 100%;"
343+
tabindex="-1"
337344
type="button"
338345
>
339346
<div
@@ -385,6 +392,7 @@ exports[`<RoomList /> should render a room list 1`] = `
385392
class="mx_RoomListItemView mx_RoomListItemView_empty"
386393
role="gridcell"
387394
style="height: 48px; left: 0px; position: absolute; top: 336px; width: 100%;"
395+
tabindex="-1"
388396
type="button"
389397
>
390398
<div
@@ -436,6 +444,7 @@ exports[`<RoomList /> should render a room list 1`] = `
436444
class="mx_RoomListItemView mx_RoomListItemView_empty"
437445
role="gridcell"
438446
style="height: 48px; left: 0px; position: absolute; top: 384px; width: 100%;"
447+
tabindex="-1"
439448
type="button"
440449
>
441450
<div
@@ -487,6 +496,7 @@ exports[`<RoomList /> should render a room list 1`] = `
487496
class="mx_RoomListItemView mx_RoomListItemView_empty"
488497
role="gridcell"
489498
style="height: 48px; left: 0px; position: absolute; top: 432px; width: 100%;"
499+
tabindex="-1"
490500
type="button"
491501
>
492502
<div

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ exports[`<RoomListItemView /> should be selected if isSelected=true 1`] = `
66
aria-label="Open room room1"
77
aria-selected="true"
88
class="mx_RoomListItemView mx_RoomListItemView_empty mx_RoomListItemView_selected"
9+
tabindex="-1"
910
type="button"
1011
>
1112
<div
@@ -60,6 +61,7 @@ exports[`<RoomListItemView /> should display notification decoration 1`] = `
6061
aria-label="Open room room1"
6162
aria-selected="false"
6263
class="mx_RoomListItemView mx_RoomListItemView_notification_decoration"
64+
tabindex="-1"
6365
type="button"
6466
>
6567
<div
@@ -126,6 +128,7 @@ exports[`<RoomListItemView /> should render a room item 1`] = `
126128
aria-label="Open room room1"
127129
aria-selected="false"
128130
class="mx_RoomListItemView mx_RoomListItemView_empty"
131+
tabindex="-1"
129132
type="button"
130133
>
131134
<div
@@ -180,6 +183,7 @@ exports[`<RoomListItemView /> should render a room item with a message preview 1
180183
aria-label="Open room room1"
181184
aria-selected="false"
182185
class="mx_RoomListItemView mx_RoomListItemView_empty"
186+
tabindex="-1"
183187
type="button"
184188
>
185189
<div

0 commit comments

Comments
 (0)