Skip to content

Commit

Permalink
fix(*): failing test #3126
Browse files Browse the repository at this point in the history
  • Loading branch information
SAndreeva committed Feb 7, 2019
1 parent c02327a commit 9b14056
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ <h2 class="igx-calendar__header-date">
[animationAction]="monthAction"
[locale]="locale"
[value]="value"
[weekStart]="weekStart"
[viewDate]="viewDate"
[selection]="selection"
[disabledDates]="disabledDates"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ describe('IgxDatePicker', () => {
fixture.detectChanges();

const targetDate = 15;
const fromDate = datePicker.calendar.dates.filter(
const fromDate = datePicker.calendar.daysView.dates.filter(
d => d.date.date.getDate() === targetDate)[0];
fromDate.nativeElement.click();
fixture.detectChanges();
Expand All @@ -347,7 +347,7 @@ describe('IgxDatePicker', () => {
fixture.detectChanges();
await wait();

const todayDate = datePicker.calendar.dates.find(d => d.isToday);
const todayDate = datePicker.calendar.daysView.dates.find(d => d.isToday);
expect(document.activeElement).toEqual(todayDate.nativeElement);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ describe('IgxGrid - Filtering actions', () => {
fix.detectChanges();

const calendar = fix.debugElement.query(By.css('igx-calendar'));
const currentDay = calendar.query(By.css('span.igx-calendar__date--current'));
const currentDay = calendar.query(By.css('igx-day-item.igx-calendar__date--current'));
currentDay.nativeElement.click();
flush();
fix.detectChanges();
Expand Down Expand Up @@ -1173,7 +1173,7 @@ describe('IgxGrid - Filtering actions', () => {
fix.detectChanges();

const calendar = fix.debugElement.query(By.css('igx-calendar'));
const currentDay = calendar.query(By.css('span.igx-calendar__date--current'));
const currentDay = calendar.query(By.css('igx-day-item.igx-calendar__date--current'));
currentDay.nativeElement.click();
flush();
fix.detectChanges();
Expand Down Expand Up @@ -1258,7 +1258,7 @@ describe('IgxGrid - Filtering actions', () => {
fix.detectChanges();

const calendar = fix.debugElement.query(By.css('igx-calendar'));
const currentDay = calendar.query(By.css('span.igx-calendar__date--current'));
const currentDay = calendar.query(By.css('igx-day-item.igx-calendar__date--current'));
currentDay.nativeElement.click();
flush();
fix.detectChanges();
Expand Down Expand Up @@ -2773,7 +2773,7 @@ describe('IgxGrid - Filtering Row UI actions', () => {
fix.detectChanges();

const calendar = fix.debugElement.query(By.css('igx-calendar'));
const sundayLabel = calendar.nativeElement.children[1].children[1].children[0].innerText;
const sundayLabel = calendar.nativeElement.children[1].children[1].children[0].children[0].innerText

expect(sundayLabel).toEqual('So');
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3312,7 +3312,7 @@ describe('igxOverlay', () => {
overlay.show(IgxCalendarComponent);
// EXPECT
fixture.detectChanges();
expect(document.querySelectorAll((IGX_CALENDAR_CLASS)).length).toEqual(1);
expect(document.querySelectorAll((IGX_CALENDAR_CLASS)).length).toEqual(2);
overlay.hideAll();
tick();
fixture.detectChanges();
Expand Down

0 comments on commit 9b14056

Please sign in to comment.