Skip to content

Commit c3284b7

Browse files
committed
chore(*): fix some unit tests
1 parent a7c7737 commit c3284b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

projects/igniteui-angular/src/lib/grids/grid/column-resizing.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('IgxGrid - Deferred Column Resizing #grid', () => {
5050
headerResArea = GridFunctions.getHeaderResizeArea(headers[0]).nativeElement;
5151
}));
5252

53-
it('should define grid with resizable columns.', fakeAsync(() => {
53+
fit('should define grid with resizable columns.', fakeAsync(() => {
5454

5555
expect(grid.columns[0].width).toEqual('100px');
5656
expect(grid.columns[0].resizable).toBeTruthy();

projects/igniteui-angular/src/lib/test-utils/grid-functions.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,12 +1875,12 @@ export class GridFunctions {
18751875
}
18761876

18771877
public static clickHeaderSortIcon(header: DebugElement) {
1878-
const sortIcon = this.getHeaderSortIcon(header);
1878+
const sortIcon = header.query(By.css(SORT_ICON_CLASS));
18791879
sortIcon.triggerEventHandler('click', new Event('click'));
18801880
}
18811881

18821882
public static verifyHeaderSortIndicator(header: DebugElement, sortedAsc = true, sortedDesc = false, sortable = true) {
1883-
const sortIcon = this.getHeaderSortIcon(header);
1883+
const sortIcon = header.query(By.css(SORT_ICON_CLASS));
18841884
if (sortable) {
18851885
const sortIconText = sortedDesc ? SORTING_ICON_DESC_CONTENT : SORTING_ICON_ASC_CONTENT;
18861886
expect(sortIcon.nativeElement.textContent.trim()).toEqual(sortIconText);

0 commit comments

Comments
 (0)