Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix smart handoffs test, style tweaks

Jason Kent6937026c5ee2
diff --git a/e2e/features/smart-handoff/smart-handoff-test.js b/e2e/features/smart-handoff/smart-handoff-test.js
index 84c98ab0a..842257e86 100644
--- a/e2e/features/smart-handoff/smart-handoff-test.js
+++ b/e2e/features/smart-handoff/smart-handoff-test.js
@@ -10,19 +10,21 @@ const TIME_LIMIT = 10000;
const layersTab = '#layers-sidebar-tab';
const dataTabButton = '#download-sidebar-tab';
-const cloudRadiusRadioButton = '#MODIS_Aqua_Cloud_Effective_Radius-smart-handoff-choice';
+const cloudRadiusRadioButton = '#C1443536017-LAADS-collection-choice';
+const urlParams = '?l=Reference_Labels(hidden),Reference_Features(hidden),Coastlines&t=2019-12-01';
module.exports = {
'Data tab is available and in default state when clicked': (c) => {
reuseables.loadAndSkipTour(c, TIME_LIMIT);
- c.url(`${c.globals.url}?t=2019-12-01`);
+ c.url(c.globals.url + urlParams);
// Verify Data tab is in sidebar
c.expect.element(dataTabButton).to.be.visible;
// Click Data Download tab to switch to Data with 'No Data Selected'
c.click(dataTabButton);
+
c.expect
.element('.smart-handoff-side-panel > h1')
.to.have.text.equal('None of your currently listed layers are available for downloading.');
@@ -54,12 +56,12 @@ module.exports = {
// Verify granules and date are correct
c.expect
.element('.granule-count > h1')
- .to.have.text.equal('Available granules for 2019 Dec 01: 128(?)');
+ .to.have.text.equal('Available granules for 2019 Dec 01: 289');
},
'Enable target area selection': (c) => {
c.click('#chk-crop-toggle');
- c.assert.containsText('.granule-count > h1', 'of 128');
+ c.assert.containsText('.granule-count > h1', 'of 289');
},
'Download via Earthdata Search': (c) => {
diff --git a/web/css/smart-handoff.css b/web/css/smart-handoff.css
index e18d6f115..230345ec4 100644
--- a/web/css/smart-handoff.css
+++ b/web/css/smart-handoff.css
@@ -63,11 +63,11 @@
line-height: 15px;
}
.layer-subtitle {
- margin: 3px 0 8px;
+ margin: 3px 0 4px;
color: #999;
}
.collection-choice {
- margin: 10px 5px 10px 15px;
+ margin: 4px 5px 8px 15px;
input {
cursor: pointer;
top: 2px;