Interactive interface for browsing global, full-resolution satellite imagery
add e2e test for inactive event alert
Jason Kent2a939a263a49
diff --git a/e2e/features/events/events-test.js b/e2e/features/events/events-test.jsindex bfd51f979..81af0c4b9 100644--- a/e2e/features/events/events-test.js+++ b/e2e/features/events/events-test.js@@ -134,6 +134,15 @@ module.exports = {c.assert.equal(tabs.value.length, 2);});},+ 'Loading an inactive event shows an alert': (c) => {+ const inactiveEventAlert = '#event-unavailable-alert';+ const inactiveAlertMsgContainer = `${inactiveEventAlert} .wv-alert-message`;+ const inactiveEventMsg = 'The event with an id of EONET_5133 is no longer active.';++ c.url(c.globals.url + localQuerystrings.closedEvent);+ c.expect.element(inactiveEventAlert).to.be.present;+ c.assert.containsText(inactiveAlertMsgContainer, inactiveEventMsg);+ },after(c) {c.end();},diff --git a/e2e/reuseables/querystrings.js b/e2e/reuseables/querystrings.jsindex a326db956..f0ac44092 100644--- a/e2e/reuseables/querystrings.js+++ b/e2e/reuseables/querystrings.js@@ -25,6 +25,7 @@ module.exports = {// eventseventsTabActive: '?e=true',mockEvents: '?p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,Reference_Labels(hidden),Reference_Features(hidden),Coastlines&t=2018-05-02-T00%3A00%3A00Z&z=3&v=-409.00147812273656,-205.62883007565202,270.5880270080828,219.11461063111003&e=true&mockEvents=20170530',+ closedEvent: '?e=EONET_5133',// layersmultipleDataLayers: '?p=geographic&l=MODIS_Terra_Aerosol,MODIS_Terra_Brightness_Temp_Band31_Day&t=2017-03-22&z=3&v=136.07019188386334,14.722152527011556,155.59817576644127,24.312819167567586',