Skip to content

Commit c807d64

Browse files
authored
Merge branch '8.1.x' into zkolev/revert-change-6376-82x-81x
2 parents 7bda403 + ae39594 commit c807d64

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,14 +1249,15 @@ describe('IgxGrid - Filtering actions', () => {
12491249
fix.detectChanges();
12501250

12511251
const firstMonth = calendar.querySelector('.igx-calendar__month');
1252+
const firstMonthText = (firstMonth as HTMLElement).innerText;
12521253
firstMonth.dispatchEvent(new Event('click'));
12531254
tick();
12541255
fix.detectChanges();
12551256

12561257
calendar = outlet.getElementsByClassName('igx-calendar')[0];
12571258
const month = calendar.querySelector('.igx-calendar-picker__date');
12581259

1259-
expect(month.innerHTML.trim()).toEqual('Jan');
1260+
expect(month.innerHTML.trim()).toEqual(firstMonthText);
12601261
}));
12611262

12621263
it('Should correctly select year from year view datepicker/calendar component', fakeAsync(() => {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2535,6 +2535,7 @@ describe('IgxGrid - GroupBy', () => {
25352535
it('should apply custom comparer function when grouping by dragging a column into the group area', async () => {
25362536
const fix = TestBed.createComponent(GroupableGridComponent);
25372537
const grid = fix.componentInstance.instance;
2538+
const year = new Date().getFullYear().toString();
25382539
fix.detectChanges();
25392540
await wait();
25402541

@@ -2574,7 +2575,7 @@ describe('IgxGrid - GroupBy', () => {
25742575
expect(grid.groupsRecords.length).toEqual(2);
25752576
expect(grid.groupsRecords[1].records.length).toEqual(6);
25762577
for (let i = 0; i < grid.groupsRecords[1].records.length; i++) {
2577-
expect(grid.groupsRecords[1].records[i].ReleaseDate.getFullYear().toString()).toEqual('2019');
2578+
expect(grid.groupsRecords[1].records[i].ReleaseDate.getFullYear().toString()).toEqual(year);
25782579
}
25792580
});
25802581

0 commit comments

Comments
 (0)