Skip to content

Commit

Permalink
[AAE-17103] Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktord2000 committed Oct 20, 2023
1 parent de18de1 commit 9031629
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,17 @@ describe('DataTable', () => {
expect(rows[1].getValue('is_available')).toBe('true');
expect(rows[2].getValue('is_available')).toBe('true');
});

it('should be able to display column of type icon', () => {
dataTable.data = new ObjectDataTableAdapter(mockCarsData, mockCarsSchemaDefinition);

fixture.detectChanges();
const rows = dataTable.data.getRows();

expect(rows[0].getValue('icon')).toBe('airport_shuttle');
expect(rows[1].getValue('icon')).toBe('directions_car');
expect(rows[2].getValue('icon')).toBe('local_shipping');
});
});

describe('Accesibility', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('IconCellComponent', () => {
});

describe('UI', () => {
it('should render icon element in case of non-empty string', () => {
it('should render icon element in case of non-empty string (icon name validation NOT included)', () => {
renderAndCheckResult('group', true, 'group');
renderAndCheckResult('groupe', true, 'groupe');
renderAndCheckResult('0', true, '0');
Expand Down

0 comments on commit 9031629

Please sign in to comment.