Skip to content

Commit

Permalink
chore: Remove unnecessary todo #2103
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok authored and mturoci committed Sep 19, 2023
1 parent 0b55319 commit cfdb186
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/table.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ describe('Table.tsx', () => {
],
rows: [
{ name: 'rowname1', cells: [cell11, '1655927271'] },
{ name: 'rowname2', cells: [cell21, '2655927271000'] }, // TODO: Fix case if values are similar: '1655927271000'
{ name: 'rowname2', cells: [cell21, '1655927271000'] },
]
}
const { container, getAllByText, getByTestId, getAllByRole } = render(<XTable model={tableProps} />)
Expand All @@ -1370,11 +1370,11 @@ describe('Table.tsx', () => {
expect(getAllByRole('row')).toHaveLength(headerRow + groupHeaderRowsCount + tableProps.rows!.length)

fireEvent.click(container.querySelector('.ms-DetailsHeader-filterChevron')!)
fireEvent.click(getAllByText('2/28/2054, 9:34:31 PM')[2].parentElement!)
fireEvent.click(getAllByText('6/22/2022, 8:47:51 PM')[2].parentElement!)

expect(getAllByRole('row')).toHaveLength(headerRow + groupHeaderRowsCount + filteredItem)
expect(container.querySelectorAll('.ms-GroupHeader-title')[0]).toHaveTextContent('1/20/1970, 4:58:47 AM(0)')
expect(container.querySelectorAll('.ms-GroupHeader-title')[1]).toHaveTextContent('2/28/2054, 9:34:31 PM(1)')
expect(container.querySelectorAll('.ms-GroupHeader-title')[1]).toHaveTextContent('6/22/2022, 8:47:51 PM(1)')
})
})

Expand Down

0 comments on commit cfdb186

Please sign in to comment.