Interactive interface for browsing global, full-resolution satellite imagery
fix event e2e tests
Benjamin Kingc01a71d45bd8
diff --git a/e2e/features/events/events-test.js b/e2e/features/events/events-test.jsindex 9efad7972..5b33282e2 100644--- a/e2e/features/events/events-test.js+++ b/e2e/features/events/events-test.js@@ -26,12 +26,14 @@ module.exports = {'#sidebar-event-EONET_3931',TIME_LIMIT,function() {- client.expect.element('#active-VIIRS_SNPP_Thermal_Anomalies_375m_Night').to.not.be- .present;- client.expect.element('#active-VIIRS_SNPP_Thermal_Anomalies_375m_Day').to.not.be- .present;- client.expect.element('#active-MODIS_Aqua_Thermal_Anomalies_All').to.not.be.present;- client.expect.element('#active-MODIS_Terra_Thermal_Anomalies_All').to.not.be.present;+ client.expect.element('#active-VIIRS_SNPP_Thermal_Anomalies_375m_Night')+ .to.not.be.present;+ client.expect.element('#active-VIIRS_SNPP_Thermal_Anomalies_375m_Day')+ .to.not.be.present;+ client.expect.element('#active-MODIS_Aqua_Thermal_Anomalies_All').to.not+ .be.present;+ client.expect.element('#active-MODIS_Terra_Thermal_Anomalies_All').to+ .not.be.present;});},@@ -43,10 +45,12 @@ module.exports = {'#active-VIIRS_SNPP_Thermal_Anomalies_375m_Night',TIME_LIMIT,function() {- client.expect.element('#active-VIIRS_SNPP_Thermal_Anomalies_375m_Day').to.be+ client.expect.element('#active-VIIRS_SNPP_Thermal_Anomalies_375m_Day')+ .to.be.present;+ client.expect.element('#active-MODIS_Aqua_Thermal_Anomalies_All').to.be+ .present;+ client.expect.element('#active-MODIS_Terra_Thermal_Anomalies_All').to.be.present;- client.expect.element('#active-MODIS_Aqua_Thermal_Anomalies_All').to.be.present;- client.expect.element('#active-MODIS_Terra_Thermal_Anomalies_All').to.be.present;});},@@ -55,7 +59,7 @@ module.exports = {) {client.url(client.globals.url + localQuerystrings.mockEvents);client.waitForElementVisible(listOfEvents, TIME_LIMIT, function() {- client.assert.elementCountEquals(eventIcons, 7);+ client.assert.elementCountEquals(eventIcons, 9);});},'On events tab click events list is loaded': function(client) {@@ -90,7 +94,6 @@ module.exports = {client.assert.urlParameterEquals('l', true).assert.urlParameterEquals('t', true)- .assert.urlParameterEquals('z', true).assert.urlParameterEquals('v', true).assert.urlParameterEquals('e', true);},@@ -114,12 +117,14 @@ module.exports = {client.click(globalSelectors.notifyMessage).pause(2000);client.assert.containsText(- '.wv-data-unavailable-header',+ '#event_visibility_info .wv-data-unavailable-header','Why can’t I see an event?');+ client.click('#event_visibility_info .close').pause(2000);+ client.expect.element('#event_visibility_info').to.not.be.present;client.click(globalSelectors.notificationDismissButton).pause(2000);client.expect.element(globalSelectors.notificationDismissButton).to.not.be- .visible;+ .present;},'Clicking selected event deselects event': function(client) {client.click(selectedFirstEvent).pause(500);diff --git a/e2e/globals.js b/e2e/globals.jsindex 205332059..b5c24b1ed 100644--- a/e2e/globals.js+++ b/e2e/globals.js@@ -7,10 +7,10 @@ module.exports = {yearlyResolutionTooltip: '#zoom-years',timelineSetToYears: '#current-zoom.zoom-years',modalCloseButton: '.modal-header .close',- notificationDismissButton: '.ui-dialog.notify-alert .fa-times',+ notificationDismissButton: '.wv-alert .close-alert .fa-times',overlayLayerItems: '#overlays li',resolutionTooltip: '#zoom-btn-container',- notifyMessage: '.notify-alert .notify-message'+ notifyMessage: '.wv-alert .alert-content'},delay: 3000, // Acceptable delay in ms between performing actions and seeing resultstimeout: 20000