Skip to content

Commit ffb24e7

Browse files
committed
fix: updating the snapshots for the DataViewTable
1 parent 0747872 commit ffb24e7

File tree

2 files changed

+91
-17
lines changed

2 files changed

+91
-17
lines changed

packages/module/src/DataViewTable/__snapshots__/DataViewTable.test.tsx.snap

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`DataViewTable component should render a basic table correctly 1`] = `
44
<div>
55
<table
66
aria-label="Repositories table"
7-
class="pf-v6-c-table pf-m-grid-md"
7+
class="pf-v6-c-table pf-m-grid-md pf-m-animate-expand"
88
data-ouia-component-id="TableExample"
99
data-ouia-component-type="PF6/Table"
1010
data-ouia-safe="true"
@@ -67,10 +67,12 @@ exports[`DataViewTable component should render a basic table correctly 1`] = `
6767
role="rowgroup"
6868
>
6969
<tr
70-
class="pf-v6-c-table__tr"
70+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
7171
data-ouia-component-id="TableExample-tr-0"
7272
data-ouia-component-type="PF6/TableRow"
7373
data-ouia-safe="true"
74+
draggable="false"
75+
id="row-0"
7476
>
7577
<td
7678
class="pf-v6-c-table__td"
@@ -108,11 +110,18 @@ exports[`DataViewTable component should render a basic table correctly 1`] = `
108110
Timestamp one
109111
</td>
110112
</tr>
113+
</tbody>
114+
<tbody
115+
class="pf-v6-c-table__tbody"
116+
role="rowgroup"
117+
>
111118
<tr
112-
class="pf-v6-c-table__tr"
119+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
113120
data-ouia-component-id="TableExample-tr-1"
114121
data-ouia-component-type="PF6/TableRow"
115122
data-ouia-safe="true"
123+
draggable="false"
124+
id="row-1"
116125
>
117126
<td
118127
class="pf-v6-c-table__td"
@@ -150,11 +159,18 @@ exports[`DataViewTable component should render a basic table correctly 1`] = `
150159
Timestamp two
151160
</td>
152161
</tr>
162+
</tbody>
163+
<tbody
164+
class="pf-v6-c-table__tbody"
165+
role="rowgroup"
166+
>
153167
<tr
154-
class="pf-v6-c-table__tr"
168+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
155169
data-ouia-component-id="TableExample-tr-2"
156170
data-ouia-component-type="PF6/TableRow"
157171
data-ouia-safe="true"
172+
draggable="false"
173+
id="row-2"
158174
>
159175
<td
160176
class="pf-v6-c-table__td"
@@ -192,11 +208,18 @@ exports[`DataViewTable component should render a basic table correctly 1`] = `
192208
Timestamp three
193209
</td>
194210
</tr>
211+
</tbody>
212+
<tbody
213+
class="pf-v6-c-table__tbody"
214+
role="rowgroup"
215+
>
195216
<tr
196-
class="pf-v6-c-table__tr"
217+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
197218
data-ouia-component-id="TableExample-tr-3"
198219
data-ouia-component-type="PF6/TableRow"
199220
data-ouia-safe="true"
221+
draggable="false"
222+
id="row-3"
200223
>
201224
<td
202225
class="pf-v6-c-table__td"
@@ -234,11 +257,18 @@ exports[`DataViewTable component should render a basic table correctly 1`] = `
234257
Timestamp four
235258
</td>
236259
</tr>
260+
</tbody>
261+
<tbody
262+
class="pf-v6-c-table__tbody"
263+
role="rowgroup"
264+
>
237265
<tr
238-
class="pf-v6-c-table__tr"
266+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
239267
data-ouia-component-id="TableExample-tr-4"
240268
data-ouia-component-type="PF6/TableRow"
241269
data-ouia-safe="true"
270+
draggable="false"
271+
id="row-4"
242272
>
243273
<td
244274
class="pf-v6-c-table__td"
@@ -276,11 +306,18 @@ exports[`DataViewTable component should render a basic table correctly 1`] = `
276306
Timestamp five
277307
</td>
278308
</tr>
309+
</tbody>
310+
<tbody
311+
class="pf-v6-c-table__tbody"
312+
role="rowgroup"
313+
>
279314
<tr
280-
class="pf-v6-c-table__tr"
315+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
281316
data-ouia-component-id="TableExample-tr-5"
282317
data-ouia-component-type="PF6/TableRow"
283318
data-ouia-safe="true"
319+
draggable="false"
320+
id="row-5"
284321
>
285322
<td
286323
class="pf-v6-c-table__td"

packages/module/src/DataViewTableBasic/__snapshots__/DataViewTableBasic.test.tsx.snap

Lines changed: 47 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`DataViewTable component should render correctly 1`] = `
44
<div>
55
<table
66
aria-label="Repositories table"
7-
class="pf-v6-c-table pf-m-grid-md"
7+
class="pf-v6-c-table pf-m-grid-md pf-m-animate-expand"
88
data-ouia-component-id="TableExample"
99
data-ouia-component-type="PF6/Table"
1010
data-ouia-safe="true"
@@ -67,10 +67,12 @@ exports[`DataViewTable component should render correctly 1`] = `
6767
role="rowgroup"
6868
>
6969
<tr
70-
class="pf-v6-c-table__tr"
70+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
7171
data-ouia-component-id="TableExample-tr-0"
7272
data-ouia-component-type="PF6/TableRow"
7373
data-ouia-safe="true"
74+
draggable="false"
75+
id="row-0"
7476
>
7577
<td
7678
class="pf-v6-c-table__td"
@@ -108,11 +110,18 @@ exports[`DataViewTable component should render correctly 1`] = `
108110
Timestamp one
109111
</td>
110112
</tr>
113+
</tbody>
114+
<tbody
115+
class="pf-v6-c-table__tbody"
116+
role="rowgroup"
117+
>
111118
<tr
112-
class="pf-v6-c-table__tr"
119+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
113120
data-ouia-component-id="TableExample-tr-1"
114121
data-ouia-component-type="PF6/TableRow"
115122
data-ouia-safe="true"
123+
draggable="false"
124+
id="row-1"
116125
>
117126
<td
118127
class="pf-v6-c-table__td"
@@ -150,11 +159,18 @@ exports[`DataViewTable component should render correctly 1`] = `
150159
Timestamp two
151160
</td>
152161
</tr>
162+
</tbody>
163+
<tbody
164+
class="pf-v6-c-table__tbody"
165+
role="rowgroup"
166+
>
153167
<tr
154-
class="pf-v6-c-table__tr"
168+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
155169
data-ouia-component-id="TableExample-tr-2"
156170
data-ouia-component-type="PF6/TableRow"
157171
data-ouia-safe="true"
172+
draggable="false"
173+
id="row-2"
158174
>
159175
<td
160176
class="pf-v6-c-table__td"
@@ -192,11 +208,18 @@ exports[`DataViewTable component should render correctly 1`] = `
192208
Timestamp three
193209
</td>
194210
</tr>
211+
</tbody>
212+
<tbody
213+
class="pf-v6-c-table__tbody"
214+
role="rowgroup"
215+
>
195216
<tr
196-
class="pf-v6-c-table__tr"
217+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
197218
data-ouia-component-id="TableExample-tr-3"
198219
data-ouia-component-type="PF6/TableRow"
199220
data-ouia-safe="true"
221+
draggable="false"
222+
id="row-3"
200223
>
201224
<td
202225
class="pf-v6-c-table__td"
@@ -234,11 +257,18 @@ exports[`DataViewTable component should render correctly 1`] = `
234257
Timestamp four
235258
</td>
236259
</tr>
260+
</tbody>
261+
<tbody
262+
class="pf-v6-c-table__tbody"
263+
role="rowgroup"
264+
>
237265
<tr
238-
class="pf-v6-c-table__tr"
266+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
239267
data-ouia-component-id="TableExample-tr-4"
240268
data-ouia-component-type="PF6/TableRow"
241269
data-ouia-safe="true"
270+
draggable="false"
271+
id="row-4"
242272
>
243273
<td
244274
class="pf-v6-c-table__td"
@@ -276,11 +306,18 @@ exports[`DataViewTable component should render correctly 1`] = `
276306
Timestamp five
277307
</td>
278308
</tr>
309+
</tbody>
310+
<tbody
311+
class="pf-v6-c-table__tbody"
312+
role="rowgroup"
313+
>
279314
<tr
280-
class="pf-v6-c-table__tr"
315+
class="pf-v6-c-table__tr pf-v6-c-table__control-row"
281316
data-ouia-component-id="TableExample-tr-5"
282317
data-ouia-component-type="PF6/TableRow"
283318
data-ouia-safe="true"
319+
draggable="false"
320+
id="row-5"
284321
>
285322
<td
286323
class="pf-v6-c-table__td"
@@ -335,7 +372,7 @@ exports[`DataViewTable component should render with a loading state 1`] = `
335372
>
336373
<table
337374
aria-label="Repositories table"
338-
class="pf-v6-c-table pf-m-grid-md"
375+
class="pf-v6-c-table pf-m-grid-md pf-m-animate-expand"
339376
data-ouia-component-id="TableExample"
340377
data-ouia-component-type="PF6/Table"
341378
data-ouia-safe="true"
@@ -412,7 +449,7 @@ exports[`DataViewTable component should render with an empty state 1`] = `
412449
>
413450
<table
414451
aria-label="Repositories table"
415-
class="pf-v6-c-table pf-m-grid-md"
452+
class="pf-v6-c-table pf-m-grid-md pf-m-animate-expand"
416453
data-ouia-component-id="TableExample"
417454
data-ouia-component-type="PF6/Table"
418455
data-ouia-safe="true"
@@ -489,7 +526,7 @@ exports[`DataViewTable component should render with an error state 1`] = `
489526
>
490527
<table
491528
aria-label="Repositories table"
492-
class="pf-v6-c-table pf-m-grid-md"
529+
class="pf-v6-c-table pf-m-grid-md pf-m-animate-expand"
493530
data-ouia-component-id="TableExample"
494531
data-ouia-component-type="PF6/Table"
495532
data-ouia-safe="true"

0 commit comments

Comments
 (0)