Skip to content

Commit 84ddd81

Browse files
committed
Description Changes Unit Tests
1 parent d2c6eb5 commit 84ddd81

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

web-app/admin/src/app/admin/admin-teams/dashboard/team-dashboard.component.spec.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('TeamDashboardComponent', () => {
5959
expect(component.teamSearch).toBe('');
6060
expect(component.pageSize).toBe(10);
6161
expect(component.pageIndex).toBe(0);
62-
expect(component.displayedColumns).toEqual(['name', 'description']);
62+
expect(component.displayedColumns).toEqual(['name']);
6363
});
6464

6565
it('should fetch teams on init', () => {
@@ -183,19 +183,8 @@ describe('TeamDashboardComponent', () => {
183183

184184
const compiled = fixture.nativeElement;
185185
const headers = compiled.querySelectorAll('th.mat-header-cell');
186-
expect(headers.length).toBe(2);
186+
expect(headers.length).toBe(1);
187187
expect(headers[0].textContent).toContain('Name');
188-
expect(headers[1].textContent).toContain('Description');
189-
});
190-
191-
it('should add title attribute for description tooltips', () => {
192-
fixture.detectChanges();
193-
194-
const compiled = fixture.nativeElement;
195-
const descriptionCells = compiled.querySelectorAll('.description-cell');
196-
197-
expect(descriptionCells[0].getAttribute('title')).toBe('First team description');
198-
expect(descriptionCells[1].getAttribute('title')).toBe('Second team description with much longer text that might wrap');
199188
});
200189

201190
it('should cleanup subscriptions on destroy', () => {

0 commit comments

Comments
 (0)