Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix broken test (invalid date in FF)

Jason Kenta83236636ec3
diff --git a/e2e/features/events/event-filter-test.js b/e2e/features/events/event-filter-test.js
index 451661c92..716a19ca2 100644
--- a/e2e/features/events/event-filter-test.js
+++ b/e2e/features/events/event-filter-test.js
@@ -175,6 +175,7 @@ module.exports = {
c.pause(250);
c.click(mapExtentFilterCheckbox); // OFF
+
// APPLY
c.click(filterModalApply);
@@ -189,7 +190,6 @@ module.exports = {
c.expect.element(dustHazeIcon).to.be.present; // ON
c.expect.element(volcanoesIcon).to.be.present; // ON
c.expect.element(wildfiresIcon).to.not.be.present; // OFF
- c.expect.element(mapExtentFilterCheckbox).to.not.be.selected;
},
'Event Selected, No Filter Params: Shows only day of event, all categories, checkbox unchecked': (c) => {
diff --git a/web/js/components/sidebar/events-filter.js b/web/js/components/sidebar/events-filter.js
index 93268a650..88c66e09b 100644
--- a/web/js/components/sidebar/events-filter.js
+++ b/web/js/components/sidebar/events-filter.js
@@ -76,7 +76,7 @@ function EventFilterModalBody (props) {
}
return msg;
};
- const minDate = new Date('01-01-2000');
+ const minDate = new Date('2000-01-01');
const maxDate = new Date();
return (