Skip to content

Commit 61fbd5a

Browse files
chore: text fix for scroll functionality
1 parent 7d6dd32 commit 61fbd5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/utils/reportGeneratorUtility.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,12 +444,12 @@ describe('reportGeneratorUtility Column Freeze Tests', () => {
444444
</thead>
445445
<tbody>
446446
<tr>
447-
<td>Item 1</td>
447+
<td key="name">Item 1</td>
448448
<td>Active</td>
449449
<td>Type A</td>
450450
</tr>
451451
<tr>
452-
<td>Item 2</td>
452+
<td key="name">Item 2</td>
453453
<td>Inactive</td>
454454
<td>Type B</td>
455455
</tr>
@@ -560,7 +560,7 @@ describe('reportGeneratorUtility Column Freeze Tests', () => {
560560

561561
const tbody = table.querySelector('tbody');
562562
const firstRow = tbody?.querySelector('tr');
563-
const firstCell = firstRow?.querySelector('td:first-child') as HTMLElement;
563+
const firstCell = firstRow?.querySelector('td[key="name"]') as HTMLElement;
564564

565565
expect(firstCell.style.getPropertyValue('position')).to.equal('sticky');
566566
expect(firstCell.style.getPropertyValue('width')).to.equal('180px');
@@ -575,7 +575,7 @@ describe('reportGeneratorUtility Column Freeze Tests', () => {
575575

576576
const tbody = table.querySelector('tbody');
577577
const firstRow = tbody?.querySelector('tr') as HTMLElement;
578-
const firstCell = firstRow?.querySelector('td:first-child') as HTMLElement;
578+
const firstCell = firstRow?.querySelector('td[key="name"]') as HTMLElement;
579579

580580
// Trigger mouseenter
581581
const mouseenterEvent = new dom.window.MouseEvent('mouseenter', { bubbles: true });

0 commit comments

Comments
 (0)