FIX: Tests involving dates were logging warnings

This commit is contained in:
Robin Ward 2020-07-17 15:20:45 -04:00
parent 8fd1ba2b0a
commit 394b5db848
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ export default Component.extend({
/* do nothing for native */ /* do nothing for native */
}; };
picker.setDate = date => { 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.setMinDate = date => {
picker.min = date; picker.min = date;

View File

@ -302,7 +302,7 @@ QUnit.test("update post time through advanced search ui", async assert => {
await visit("/search"); await visit("/search");
await fillIn(".search-query", "none"); 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( const postTimeSelector = selectKit(
".search-advanced-options .select-kit#postTime" ".search-advanced-options .select-kit#postTime"