Interactive interface for browsing global, full-resolution satellite imagery
permalink test for smart handoffs
Jason Kent8b89b6f12e13
diff --git a/e2e/features/smart-handoff/smart-handoff-test.js b/e2e/features/smart-handoff/smart-handoff-test.jsindex 853808455..df0461074 100644--- a/e2e/features/smart-handoff/smart-handoff-test.js+++ b/e2e/features/smart-handoff/smart-handoff-test.js@@ -11,7 +11,9 @@ const TIME_LIMIT = 10000;const layersTab = '#layers-sidebar-tab';const dataTabButton = '#download-sidebar-tab';const cloudRadiusRadioButton = '#C1443536017-LAADS-MODIS_Aqua_Cloud_Effective_Radius-collection-choice-label';+const SSTRadioButton = '#C1664741463-PODAAC-GHRSST_L4_MUR_Sea_Surface_Temperature-collection-choice-label';const urlParams = '?l=Reference_Labels(hidden),Reference_Features(hidden),Coastlines&t=2019-12-01';+const permalinkParams = '?l=GHRSST_L4_MUR_Sea_Surface_Temperature,MODIS_Aqua_Aerosol_Optical_Depth_3km&lg=true&sh=MODIS_Aqua_Aerosol_Optical_Depth_3km,C1443528505-LAADS&t=2020-02-06-T06%3A00%3A00Z';module.exports = {@@ -55,13 +57,14 @@ module.exports = {// Verify granules and date are correctc.expect- .element('.granule-count > h1')- .to.have.text.equal('Available granules for 2019 Dec 01: 289');+ .element('.granule-count-header')+ .to.have.text.equal('Available granules for 2019 Dec 01:');+ c.assert.containsText('.granule-count-info', '289');},'Enable area of interest': (c) => {c.click('#chk-crop-toggle');- c.assert.containsText('.granule-count > h1', 'of 289');+ c.assert.containsText('.granule-count-info', 'of 289');},'Download via Earthdata Search': (c) => {@@ -77,6 +80,21 @@ module.exports = {});},+ 'Arriving via permalink, data tab selected and granule count shows': (c) => {+ reuseables.loadAndSkipTour(c, TIME_LIMIT);+ c.url(c.globals.url + permalinkParams);+ c.expect.element(dataTabButton).to.be.visible;+ c.expect+ .element('.granule-count-info')+ .to.not.have.text.equal('NONE');+ },++ 'Changing collection updates URL': (c) => {+ c.click(SSTRadioButton);+ c.pause(200);+ c.assert.urlContains('&sh=GHRSST_L4_MUR_Sea_Surface_Temperature,C1664741463-PODAAC');+ },+after(c) {c.end();},diff --git a/web/js/containers/sidebar/smart-handoff.js b/web/js/containers/sidebar/smart-handoff.jsindex e2f406f7b..571a3bac5 100644--- a/web/js/containers/sidebar/smart-handoff.js+++ b/web/js/containers/sidebar/smart-handoff.js@@ -414,7 +414,7 @@ class SmartHandoff extends Component {{this.renderCropBox()}<GranuleCountdisplayDate={displayDate}- currentExtent={showBoundingBox && currentExtent}+ currentExtent={showBoundingBox ? currentExtent : undefined}selectedDate={selectedDate}selectedLayer={selectedLayer}selectedCollection={selectedCollection}