Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

update alert message, fix test

Ed Plato4f9513f1e31f
diff --git a/e2e/features/smart-handoff/smart-handoff-test.js b/e2e/features/smart-handoff/smart-handoff-test.js
index d7e039a2d..b3ca87740 100644
--- a/e2e/features/smart-handoff/smart-handoff-test.js
+++ b/e2e/features/smart-handoff/smart-handoff-test.js
@@ -70,19 +70,6 @@ module.exports = {
c.waitForElementVisible('.granule-count-info', TIME_LIMIT);
},
- 'Download via Earthdata Search': (c) => {
- c.click('.download-btn');
- c.expect
- .element('#transferring-to-earthdata-search')
- .to.be.present;
-
- // Check that Earthdata Search opens in new tab
- c.click('#continue-btn').pause(2500);
- c.windowHandles((tabs) => {
- c.assert.equal(tabs.value.length, 2);
- });
- },
-
'Arriving via permalink, data tab selected and granule count shows': (c) => {
reuseables.loadAndSkipTour(c, TIME_LIMIT);
c.url(c.globals.url + permalinkParams);
@@ -108,11 +95,24 @@ module.exports = {
'Map extent entirely in wings displays warning for user to zoom out to see available map': (c) => {
c.url(c.globals.url + inWingsAlertURL);
- c.pause(5000);
- c.expect.element('#map-zoomed-into-wings-alert').to.be.present;
+ c.expect.element(dataTabButton).to.be.visible;
c.waitForElementVisible('#map-zoomed-into-wings-alert', TIME_LIMIT, () => {
c.assert.containsText('#map-zoomed-into-wings-alert div.wv-alert-message',
- 'The view is zoomed into the map wings which are unavailable in data download mode. Zoom out to see available map.');
+ 'The map is zoomed into an area over the dateline that is unavailable in data download mode. Zoom out to see available map.');
+ });
+ },
+
+ 'Download via Earthdata Search': (c) => {
+ c.url(c.globals.url + permalinkParams);
+ c.click('.download-btn');
+ c.expect
+ .element('#transferring-to-earthdata-search')
+ .to.be.present;
+
+ // Check that Earthdata Search opens in new tab
+ c.click('#continue-btn').pause(2500);
+ c.windowHandles((tabs) => {
+ c.assert.equal(tabs.value.length, 2);
});
},
diff --git a/web/js/containers/sidebar/smart-handoff.js b/web/js/containers/sidebar/smart-handoff.js
index 0e00d1462..a135776e4 100644
--- a/web/js/containers/sidebar/smart-handoff.js
+++ b/web/js/containers/sidebar/smart-handoff.js
@@ -285,7 +285,7 @@ class SmartHandoff extends Component {
*/
renderZoomedIntoWingsAlert = () => {
const { showZoomedIntoWingsAlert } = this.state;
- const message = 'The view is zoomed into the map wings which are unavailable in data download mode. Zoom out to see available map.';
+ const message = 'The map is zoomed into an area over the dateline that is unavailable in data download mode. Zoom out to see available map.';
return showZoomedIntoWingsAlert && (
<AlertUtil
id="map-zoomed-into-wings-alert"