FIX: Tests involving dates were logging warnings
This commit is contained in:
parent
8fd1ba2b0a
commit
394b5db848
|
@ -103,7 +103,7 @@ export default Component.extend({
|
|||
/* do nothing for native */
|
||||
};
|
||||
picker.setDate = date => {
|
||||
picker.value = moment(date).format("YYYY-MM-DD");
|
||||
picker.value = date ? moment(date).format("YYYY-MM-DD") : null;
|
||||
};
|
||||
picker.setMinDate = date => {
|
||||
picker.min = date;
|
||||
|
|
|
@ -302,7 +302,7 @@ QUnit.test("update post time through advanced search ui", async assert => {
|
|||
await visit("/search");
|
||||
|
||||
await fillIn(".search-query", "none");
|
||||
await fillIn("#search-post-date .date-picker", "October 5, 2016");
|
||||
await fillIn("#search-post-date .date-picker", "2016-10-05");
|
||||
|
||||
const postTimeSelector = selectKit(
|
||||
".search-advanced-options .select-kit#postTime"
|
||||
|
|
Loading…
Reference in New Issue