mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
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 */
|
/* 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;
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user