You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have passed minDate: new Date(2020,10,11), maxDate: new Date(2020,10,21) to my date component. So out of this range, no date should be selectable When i checked it manually everything works fine. But when I am trying to write test the behavior using calendarSelect test helper it is selecting the date.
assert.equal(get(this, 'defaultFieldModel.fFrom'), '', 'field data in model is empty');
await click('.date-control .ember-basic-dropdown-trigger');
debugger;
await calendarSelect('.ember-power-calendar', new Date('2013-10-28'));
debugger;
assert.equal(findAll('.date-control input')['length'], 1, 'The date control renders properly');
assert.equal(findAll('.date-control input')[0]['value'], '02/28/2013', 'The date is setted renders properly');
assert.equal(get(this, 'defaultFieldModel.fFrom'), '2013-02-28T00:00:00.000Z', 'Model contains 2013-02-28T00:00:00.000Z as field value');
The text was updated successfully, but these errors were encountered:
I have passed
minDate: new Date(2020,10,11), maxDate: new Date(2020,10,21)
to my date component. So out of this range, no date should be selectable When i checked it manually everything works fine. But when I am trying to write test the behavior using calendarSelect test helper it is selecting the date.The text was updated successfully, but these errors were encountered: