Interactive interface for browsing global, full-resolution satellite imagery
autofix most e2e lint rule errors
Jason Kent801ef153b6fe
diff --git a/e2e/browserstack.conf.js b/e2e/browserstack.conf.jsindex c317230a4..ba00407b4 100644--- a/e2e/browserstack.conf.js+++ b/e2e/browserstack.conf.js@@ -13,39 +13,39 @@ const nightwatchConfig = {selenium: {start_process: false,host: 'hub-cloud.browserstack.com',- port: 80+ port: 80,},common_capabilities: {'browserstack.user': process.env.BROWSERSTACK_USER,'browserstack.key': process.env.BROWSERSTACK_ACCESS_KEY,'browserstack.local': true,'browserstack.debug': true,- 'browserstack.localIdentifier': (`wvtester19234${process.env.BROWSERSTACK_USER}`).replace(/[^a-zA-Z0-9]/g, ''),+ 'browserstack.localIdentifier': `wvtester19234${process.env.BROWSERSTACK_USER}`.replace(/[^a-zA-Z0-9]/g, ''),build: `wv-nightwatch-${timeStamp}`,applicationCacheEnabled: false,webStorageEnabled: false,marionette: true,- project: 'Worldview'+ project: 'Worldview',},test_settings: {default: {},browserstack: {desiredCapabilities: {- browser: 'chrome'- }+ browser: 'chrome',+ },},chrome: {desiredCapabilities: {browser: 'chrome',marionette: true,- 'browserstack.selenium_version': '3.5.2'- }+ 'browserstack.selenium_version': '3.5.2',+ },},safari: {desiredCapabilities: {browser: 'safari',- 'browserstack.selenium_version': '3.5.2'- }+ 'browserstack.selenium_version': '3.5.2',+ },},firefox: {desiredCapabilities: {@@ -54,17 +54,17 @@ const nightwatchConfig = {browserName: 'firefox',javascriptEnabled: true,'browserstack.selenium_version': '3.10.0',- 'browserstack.geckodriver': '0.24.0'- }+ 'browserstack.geckodriver': '0.24.0',+ },},ie: {desiredCapabilities: {browser: 'internet explorer',- 'browserstack.selenium_version': '2.53.0'- }- }+ 'browserstack.selenium_version': '2.53.0',+ },+ },- }+ },};environments.forEach((e) => {@@ -72,18 +72,18 @@ environments.forEach((e) => {e.browser,e.browser_version,e.os,- e.os_version+ e.os_version,].join('_').replace(/\./g, '-').replace(/ /g, '_');nightwatchConfig.test_settings[env] = { desiredCapabilities: e };});// Merge common_capabilities with each test_settings key-for (var i in nightwatchConfig.test_settings) {- var config = nightwatchConfig.test_settings[i];+for (const i in nightwatchConfig.test_settings) {+ const config = nightwatchConfig.test_settings[i];config.selenium_host = nightwatchConfig.selenium.host;config.selenium_port = nightwatchConfig.selenium.port;config.desiredCapabilities = config.desiredCapabilities || {};- for (var j in nightwatchConfig.common_capabilities) {+ for (const j in nightwatchConfig.common_capabilities) {config.desiredCapabilities[j] = config.desiredCapabilities[j] || nightwatchConfig.common_capabilities[j];}}diff --git a/e2e/browserstack.js b/e2e/browserstack.jsindex 470b078ba..6bccb084f 100644--- a/e2e/browserstack.js+++ b/e2e/browserstack.js@@ -1,19 +1,19 @@#!/usr/bin/env node/* eslint no-console: "off", camelcase: "off" */-var Nightwatch = require('nightwatch');-var browserstack = require('browserstack-local');-var environments = require('./environments.js');+const Nightwatch = require('nightwatch');+const browserstack = require('browserstack-local');+const environments = require('./environments.js');-var bs_local;+let bs_local;-var environment_names = environments.map(+const environment_names = environments.map((e) => [e.browser,e.browser_version,e.os,- e.os_version- ].join('_').replace(/\./g, '-').replace(/ /g, '_')+ e.os_version,+ ].join('_').replace(/\./g, '-').replace(/ /g, '_'),);try {@@ -24,8 +24,8 @@ try {Nightwatch.bs_local = bs_local = new browserstack.Local();bs_local.start({key: process.env.BROWSERSTACK_ACCESS_KEY,- localIdentifier: (`wvtester19234${process.env.BROWSERSTACK_USER}`).replace(/[^a-zA-Z0-9]/g, ''),- force: 'true' // if you want to kill existing ports+ localIdentifier: `wvtester19234${process.env.BROWSERSTACK_USER}`.replace(/[^a-zA-Z0-9]/g, ''),+ force: 'true', // if you want to kill existing ports}, (error) => {if (error) throw new Error(error);console.log('Connected. Running tests...');diff --git a/e2e/environments.js b/e2e/environments.jsindex 72eea1ff1..55654050e 100644--- a/e2e/environments.js+++ b/e2e/environments.js@@ -2,7 +2,7 @@ const bsCapabilities = require('browserstack-capabilities');const createCapabilities = bsCapabilities(process.env.BROWSERSTACK_USER,- process.env.BROWSERSTACK_ACCESS_KEY+ process.env.BROWSERSTACK_ACCESS_KEY,).create;const capabilities = createCapabilities(@@ -11,21 +11,21 @@ const capabilities = createCapabilities(browser: 'firefox',browser_version: ['69.0'],os: ['OS X'],- os_version: ['High Sierra']+ os_version: ['High Sierra'],},{browser: 'chrome',browser_version: ['76.0'],os: ['OS X'],- os_version: ['Mojave']+ os_version: ['Mojave'],},{browser: 'ie',browser_version: ['11.0'],os: ['Windows'],- os_version: ['10']- }- ]+ os_version: ['10'],+ },+ ],);capabilities.forEach((capability) => {diff --git a/e2e/features/animation/animation-test.js b/e2e/features/animation/animation-test.jsindex 5e59c9433..5016c5ba4 100644--- a/e2e/features/animation/animation-test.js+++ b/e2e/features/animation/animation-test.js@@ -31,7 +31,7 @@ module.exports = {client.useCss().assert.elementPresent('#wv-animation-widget .custom-interval-widget');client.useCss().assert.containsText('.wv-animation-widget-header #current-interval', '1 DAY');client.useCss().assert.containsText('#timeline #current-interval', '1 DAY');- }+ },);},/**@@ -52,7 +52,7 @@ module.exports = {.moveToElement('#wv-timeline-range-selector > g:nth-child(2) > rect',1,- 1+ 1,).mouseButtonDown(0).moveToElement('.timeline-dragger', 0, 0)@@ -63,7 +63,7 @@ module.exports = {this.assert.notEqual(startDay, newDay);});});- }+ },);},@@ -89,10 +89,10 @@ module.exports = {client.pause(1000);client.useCss().assert.containsText('.wv-animation-widget-header #current-interval', '1 YEAR');client.useCss().assert.containsText('#timeline #current-interval', '1 YEAR');- }+ },);},after(client) {client.end();- }+ },};diff --git a/e2e/features/animation/gif-test.js b/e2e/features/animation/gif-test.jsindex df95d2e32..8a967a0f9 100644--- a/e2e/features/animation/gif-test.js+++ b/e2e/features/animation/gif-test.js@@ -36,17 +36,17 @@ module.exports = {.present;client.waitForElementVisible(localSelectors.animationWidget,- TIME_LIMIT+ TIME_LIMIT,);- }+ },);- }+ },);}},'Downloading GIF when polar projection is rotated': function(client) {client.url(- client.globals.url + localQuerystrings.animationProjectionRotated+ client.globals.url + localQuerystrings.animationProjectionRotated,);client.waitForElementVisible(localSelectors.animationWidget,@@ -59,11 +59,11 @@ module.exports = {.click(rotationDialogOkButton).pause(1000);client.useCss().assert.containsText(articeRotationResetButton, '0');- }+ },);},'GIF selection preview is Accurate and selections that are too high disable GIF download': function(- client+ client,) {client.url(client.globals.url + localQuerystrings.activeAnimationWidget);client.waitForElementVisible(@@ -79,19 +79,19 @@ module.exports = {.useCss().assert.containsText(localSelectors.gifPreviewStartDate,- '2018-03-28'+ '2018-03-28',);client.useCss().assert.containsText(localSelectors.gifPreviewEndDate,- '2018-04-04'+ '2018-04-04',);client.useCss().assert.containsText(localSelectors.gifPreviewFrameRateValue,- '3 Frames Per Second'+ '3 Frames Per Second',);client.useCss().assert.containsText('.gif-max-size', '8200px');client.assert.ok('#wv-checkbox-gif'); // checkbox is checked@@ -100,17 +100,17 @@ module.exports = {.pause(1000);client.assert.value(localSelectors.gifPreviewEndResolutionSelector,- '2'+ '2',);client.expect.element(localSelectors.gifDownloadButton).to.not.be.enabled;- }+ },);- }+ },);},'GIF download is disabled when too many frames would be requested with standard interval': function(- client+ client,) {client.url(client.globals.url + localQuerystrings.animationTooManyFrames);client.waitForElementVisible(@@ -118,11 +118,11 @@ module.exports = {TIME_LIMIT,() => {client.useCss().assert.cssClassPresent('#create-gif-button', 'disabled');- }+ },);},'GIF download is disabled when too many frames would be requested with custom interval': function(- client+ client,) {client.url(client.globals.url + localQuerystrings.animationTooManyFramesCustomInterval);client.waitForElementVisible(@@ -130,10 +130,10 @@ module.exports = {TIME_LIMIT,() => {client.useCss().assert.cssClassPresent('#create-gif-button', 'disabled');- }+ },);},after(client) {client.end();- }+ },};diff --git a/e2e/features/compare/compare-test.js b/e2e/features/compare/compare-test.jsindex a6eedd8a2..721c3eafb 100644--- a/e2e/features/compare/compare-test.js+++ b/e2e/features/compare/compare-test.js@@ -6,13 +6,10 @@ const animationButtonCase = '#timeline-header .animate-button';const ImageDownloadButton = '#wv-image-button';const eventsTabButton = '#events-sidebar-tab';const dataDownloadTabButton = '#download-sidebar-tab';-const ModisTruecolorLayerA =- '#active-MODIS_Terra_CorrectedReflectance_TrueColor';-const ModisTruecolorLayerB =- '#activeB-MODIS_Terra_CorrectedReflectance_TrueColor';+const ModisTruecolorLayerA = '#active-MODIS_Terra_CorrectedReflectance_TrueColor';+const ModisTruecolorLayerB = '#activeB-MODIS_Terra_CorrectedReflectance_TrueColor';const toggleButton = '.toggleIconHolder .accordionToggler';-const collapsedToggleButton =- '#productsHoldertoggleButtonHolder .accordionToggler';+const collapsedToggleButton = '#productsHoldertoggleButtonHolder .accordionToggler';const TIME_LIMIT = 20000;module.exports = {@@ -25,7 +22,7 @@ module.exports = {client.waitForElementVisible(localSelectors.swipeDragger, TIME_LIMIT);},'Animation, image download, data-download, and events are disabled when in A|B': function(- client+ client,) {// Verify Animation widget can't be clicked@@ -38,7 +35,7 @@ module.exports = {client.assert.attributeContains(animationButtonCase,'title',- 'Animation feature is deactivated when Compare feature is active'+ 'Animation feature is deactivated when Compare feature is active',);// Verify image download can't be clickedclient.click(ImageDownloadButton);@@ -48,7 +45,7 @@ module.exports = {client.assert.attributeContains(ImageDownloadButton,'title',- 'You must exit comparison mode to use the snapshot feature'+ 'You must exit comparison mode to use the snapshot feature',);// Verify events can't be clickedclient@@ -60,7 +57,7 @@ module.exports = {client.assert.attributeContains(eventsTabButton,'title',- 'You must exit comparison mode to use the natural events feature'+ 'You must exit comparison mode to use the natural events feature',);// Verify Data Download can't be clickedclient@@ -73,11 +70,11 @@ module.exports = {client.assert.attributeContains(dataDownloadTabButton,'title',- 'You must exit comparison mode to download data'+ 'You must exit comparison mode to download data',);},'Removing layer removes correct layer from correct layer group': function(- client+ client,) {client.expect.element(ModisTruecolorLayerA).to.be.visible;client.click('#closeactiveMODIS_Terra_CorrectedReflectance_TrueColor');@@ -91,7 +88,7 @@ module.exports = {* B state can layer list collapse*/'Collapse layer list with B state and test label shows correct number of layers': function(- client+ client,) {client.url(client.globals.url + localQuerystrings.spyAndBIsActive);@@ -112,7 +109,7 @@ module.exports = {* that layer-sidebar inherits B state layers*/'If you exit A|B with B selection active, the active state will then be the B state': function(- client+ client,) {client.expect.element('#activeB-VIIRS_SNPP_CorrectedReflectance_TrueColor').to.be.visible;@@ -130,18 +127,18 @@ module.exports = {() => {client.expect.element('#activeB-Coastlines').to.be.visible;client.expect.element(- '#activeB-MODIS_Terra_CorrectedReflectance_TrueColor'+ '#activeB-MODIS_Terra_CorrectedReflectance_TrueColor',).to.be.visible;client.expect.element(- '#activeB-VIIRS_SNPP_CorrectedReflectance_TrueColor'+ '#activeB-VIIRS_SNPP_CorrectedReflectance_TrueColor',).to.not.be.present;client.expect.element(- '#activeB-MODIS_Aqua_CorrectedReflectance_TrueColor'+ '#activeB-MODIS_Aqua_CorrectedReflectance_TrueColor',).to.not.be.present;- }+ },);},after(client) {client.end();- }+ },};diff --git a/e2e/features/compare/layer-dialog-test.js b/e2e/features/compare/layer-dialog-test.jsindex 7cfbc98fa..1f7d65e9c 100644--- a/e2e/features/compare/layer-dialog-test.js+++ b/e2e/features/compare/layer-dialog-test.js@@ -4,19 +4,13 @@ const localQuerystrings = require('../../reuseables/querystrings.js');const TIME_LIMIT = 20000;const aerosolLayer = '#active-MODIS_Terra_Aerosol';-const AodOptionsPanelBody =- '#layer_options_modal-modis_terra_aerosol .modal-body';-const AodOptionsPanelHeader =- '#layer_options_modal-modis_terra_aerosol .modal-header';+const AodOptionsPanelBody = '#layer_options_modal-modis_terra_aerosol .modal-body';+const AodOptionsPanelHeader = '#layer_options_modal-modis_terra_aerosol .modal-header';const AodInfoPanel = '.layer_info_modal-modis_terra_aerosol';-const correctedReflectanceBLayer =- '#activeB-MODIS_Terra_CorrectedReflectance_TrueColor';-const correctedReflectanceOptionsPanelHeader =- '#layer_options_modal-modis_terra_correctedreflectance_truecolor .modal-header';-const correctedReflectanceOptionsPanelBody =- '#layer_options_modal-modis_terra_correctedreflectance_truecolor .modal-body';-const correctedReflectanceInfoPanel =- '#layer_info_modal-modis_terra_correctedreflectance_truecolor';+const correctedReflectanceBLayer = '#activeB-MODIS_Terra_CorrectedReflectance_TrueColor';+const correctedReflectanceOptionsPanelHeader = '#layer_options_modal-modis_terra_correctedreflectance_truecolor .modal-header';+const correctedReflectanceOptionsPanelBody = '#layer_options_modal-modis_terra_correctedreflectance_truecolor .modal-body';+const correctedReflectanceInfoPanel = '#layer_info_modal-modis_terra_correctedreflectance_truecolor';module.exports = {before(client) {@@ -37,13 +31,13 @@ module.exports = {.useCss().assert.containsText(`${AodOptionsPanelHeader} .modal-title`,- 'Aerosol Optical Depth'+ 'Aerosol Optical Depth',);if (client.options.desiredCapabilities.browser !== 'ie') {client.expect.element(`${AodOptionsPanelBody} .wv-palette-selector`).to.be.visible;}- }+ },);});},@@ -58,9 +52,9 @@ module.exports = {.useCss().assert.containsText(AodInfoPanel,- 'The Aerosol Optical Depth layer is useful for studying aerosol optical depth'+ 'The Aerosol Optical Depth layer is useful for studying aerosol optical depth',);- }+ },);},'expect clicking A|B button to close options dialog': function(client) {@@ -77,7 +71,7 @@ module.exports = {.useCss().assert.containsText(`${AodOptionsPanelHeader} .modal-title`,- 'Aerosol Optical Depth'+ 'Aerosol Optical Depth',);if (client.options.desiredCapabilities.browser !== 'ie') {client.expect.element(`${AodOptionsPanelBody} .wv-palette-selector`).to@@ -96,13 +90,13 @@ module.exports = {.useCss().assert.containsText(AodInfoPanel,- 'The Aerosol Optical Depth layer is useful for studying aerosol optical depth'+ 'The Aerosol Optical Depth layer is useful for studying aerosol optical depth',);- }+ },);},'expect reactivating A|B to close options dialog and activate B state': function(- client+ client,) {client.click(`${AodInfoPanel} .close`).pause(1000);client.click(`${aerosolLayer} .wv-layers-options`).pause(1000);@@ -129,16 +123,16 @@ module.exports = {.useCss().assert.containsText(`${correctedReflectanceOptionsPanelHeader} .modal-title`,- 'Corrected Reflectance (True Color)'+ 'Corrected Reflectance (True Color)',);if (client.options.desiredCapabilities.browser !== 'ie') {client.expect.element(- `${correctedReflectanceOptionsPanelBody} .wv-palette-selector`+ `${correctedReflectanceOptionsPanelBody} .wv-palette-selector`,).to.not.be.present;}- }+ },);- }+ },);},'Layer info dialog works after clicking into B mode': function(client) {@@ -154,12 +148,12 @@ module.exports = {.useCss().assert.containsText(correctedReflectanceInfoPanel,- 'These images are called true-color or natural color because this combination of wavelengths is similar to what the human eye'+ 'These images are called true-color or natural color because this combination of wavelengths is similar to what the human eye',);- }+ },);},after(client) {client.end();- }+ },};diff --git a/e2e/features/compare/layer-sidebar-test.js b/e2e/features/compare/layer-sidebar-test.jsindex 50e2c61df..7d5d878d2 100644--- a/e2e/features/compare/layer-sidebar-test.js+++ b/e2e/features/compare/layer-sidebar-test.js@@ -43,15 +43,15 @@ module.exports = {client.click(aodMAIACCheckbox);client.waitForElementVisible('#activeB-MODIS_Combined_MAIAC_L2G_AerosolOpticalDepth',- client.globals.timeout+ client.globals.timeout,);client.expect.element(`#activeB-${aodCombinedValueId}`).to.not.be.present;client.expect.element(`#active-${aodCombinedValueId}`).to.not.be.present;- }+ },);},'Verify that AOD combined is visible and AOD index is not present in Layer list A': function(- client+ client,) {client.click(selectors.layersModalCloseButton);client.pause(100);@@ -62,10 +62,10 @@ module.exports = {() => {client.expect.element(`#activeB-${aodCombinedValueId}`).to.not.be.present;client.expect.element(`#activeA-${aodMAIACId}`).to.not.be.present;- }+ },);},after(client) {client.end();- }+ },};diff --git a/e2e/features/compare/permalinks-test.js b/e2e/features/compare/permalinks-test.jsindex df592e613..a4651d99a 100644--- a/e2e/features/compare/permalinks-test.js+++ b/e2e/features/compare/permalinks-test.js@@ -12,7 +12,7 @@ module.exports = {* date with given queryString*/'Swipe mode and A|B state A are active and date is correct': function(- client+ client,) {client.url(client.globals.url + localQuerystrings.swipeAndAIsActive);client.waitForElementVisible(@@ -24,11 +24,11 @@ module.exports = {client.useCss().assert.containsText(localSelectors.aTab, 'A: 2018-08-17');- }+ },);},'Opacity mode and A|B state B are active and date is correct': function(- client+ client,) {client.url(client.globals.url + localQuerystrings.opacityAndBIsActive);client.waitForElementVisible('#ab-slider-case', TIME_LIMIT, () => {@@ -49,15 +49,15 @@ module.exports = {* Ensure that A|B state loads with correct layers given permalink*/'A|B loaded with one only layer in A section -- Corrected Reflectance (True Color)': function(- client+ client,) {client.url(client.globals.url + localQuerystrings.swipeAndAIsActive);client.waitForElementPresent(localSelectors.aTab, TIME_LIMIT, () => {client.expect.element(- '.ab-tabs-case .tab-pane.active ul#overlays .item'+ '.ab-tabs-case .tab-pane.active ul#overlays .item',).to.not.be.present;client.expect.element(- '#active-MODIS_Terra_CorrectedReflectance_TrueColor'+ '#active-MODIS_Terra_CorrectedReflectance_TrueColor',).to.be.visible;});},@@ -65,24 +65,24 @@ module.exports = {client.click(localSelectors.bTab);client.waitForElementVisible('#activeB-Coastlines', TIME_LIMIT, () => {client.expect.element(- '#activeB-MODIS_Aqua_CorrectedReflectance_TrueColor.layer-hidden'+ '#activeB-MODIS_Aqua_CorrectedReflectance_TrueColor.layer-hidden',).to.be.visible;client.expect.element(- '#activeB-VIIRS_SNPP_CorrectedReflectance_TrueColor.layer-hidden'+ '#activeB-VIIRS_SNPP_CorrectedReflectance_TrueColor.layer-hidden',).to.be.visible;client.expect.element(- '#activeB-Reference_Labels.layer-hidden'+ '#activeB-Reference_Labels.layer-hidden',).to.be.visible;client.expect.element(- '#activeB-Reference_Features.layer-hidden'+ '#activeB-Reference_Features.layer-hidden',).to.be.visible;client.expect.element('#activeB-Coastlines.layer-visible').to.be.visible;client.expect.element(- '#activeB-MODIS_Terra_CorrectedReflectance_TrueColor.layer-visible'+ '#activeB-MODIS_Terra_CorrectedReflectance_TrueColor.layer-visible',).to.be.visible;});},after(client) {client.end();- }+ },};diff --git a/e2e/features/compare/timeline-test.js b/e2e/features/compare/timeline-test.jsindex 0638fda5a..d42586faa 100644--- a/e2e/features/compare/timeline-test.js+++ b/e2e/features/compare/timeline-test.js@@ -52,7 +52,7 @@ module.exports = {TIME_LIMIT,() => {client.assert.attributeContains(dateSelectorDayInput, 'value', '16');- }+ },);},'Dragging B dragger updates date in label': function(client) {@@ -78,14 +78,14 @@ module.exports = {.useCss().assert.containsText(localSelectors.compareButton,- 'Start Comparison'+ 'Start Comparison',);client.expect.element(draggerA).to.not.be.present;client.expect.element(draggerB).to.be.visible;- }+ },);},after(client) {client.end();- }+ },};diff --git a/e2e/features/data-download/data-download-test.js b/e2e/features/data-download/data-download-test.jsindex c0a908c22..68dd45cd1 100644--- a/e2e/features/data-download/data-download-test.js+++ b/e2e/features/data-download/data-download-test.js@@ -2,18 +2,14 @@ const reuseables = require('../../reuseables/skip-tour.js');const layersTab = '#layers-sidebar-tab';const dataDownloadTabButton = '#download-sidebar-tab';-const zoomInButton =- '#wv-map-geographic > div.wv-map-zoom-in.wv-map-zoom.ui-button.ui-corner-all.ui-widget';-const zoomOutButton =- '#wv-map-geographic > div.wv-map-zoom-out.wv-map-zoom.ui-button.ui-corner-all.ui-widget';-const downYearInputButton =- '#date-selector-main > div > div.input-wrapper.input-wrapper-year > div.date-arrows.date-arrow-down';-const upYearInputButton =- '#date-selector-main > div > div.input-wrapper.input-wrapper-year > div.date-arrows.date-arrow-up';+const zoomInButton = '#wv-map-geographic > div.wv-map-zoom-in.wv-map-zoom.ui-button.ui-corner-all.ui-widget';+const zoomOutButton = '#wv-map-geographic > div.wv-map-zoom-out.wv-map-zoom.ui-button.ui-corner-all.ui-widget';+const downYearInputButton = '#date-selector-main > div > div.input-wrapper.input-wrapper-year > div.date-arrows.date-arrow-down';+const upYearInputButton = '#date-selector-main > div > div.input-wrapper.input-wrapper-year > div.date-arrows.date-arrow-up';module.exports = {'Initial State - Data Download tab is available and in default state when clicked': `${function(- client+ client,) {reuseables.loadAndSkipTour(client, client.globals.timeout);@@ -37,11 +33,10 @@ module.exports = {}}`,'No Results - No Data Available indicator displayed when no data': `${function(- client+ client,) {// December 31, 2022 no results- const queryString =- '?now=2022-12-31T12&p=geographic&l=MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Coastlines&t=2022-12-31&v=-91.125,-53.3671875,82.40625,59.8359375&download=MOD04_L2';+ const queryString = '?now=2022-12-31T12&p=geographic&l=MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Coastlines&t=2022-12-31&v=-91.125,-53.3671875,82.40625,59.8359375&download=MOD04_L2';client.url(client.globals.url + queryString);// 'No Data Available' indicator present@@ -90,11 +85,10 @@ module.exports = {}}`,'No data in view - Zoom out or move map indicator displayed when no data in view': function(- client+ client,) {// zoomed in so no data in view- const queryString =- '?p=geographic&l=MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Coastlines&t=2013-08-15&v=-115.09722044197,32.076037619082,-112.11113645759,34.018420431582&download=MOD04_L2';+ const queryString = '?p=geographic&l=MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Coastlines&t=2013-08-15&v=-115.09722044197,32.076037619082,-112.11113645759,34.018420431582&download=MOD04_L2';client.url(client.globals.url + queryString);// 'Zoom out or move map' indicator present@@ -141,11 +135,10 @@ module.exports = {.after(client.globals.timeout);},'Query Timeout - No results received yet dialog box displayed': `${function(- client+ client,) {// query timeout- const queryString =- '?timeoutCMR=100&p=geographic&l=MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Coastlines&t=2013-09-29&v=-170.64093281444,-59.218903407221,20.468442185558,65.093596592779';+ const queryString = '?timeoutCMR=100&p=geographic&l=MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Coastlines&t=2013-09-29&v=-170.64093281444,-59.218903407221,20.468442185558,65.093596592779';client.url(client.globals.url + queryString);// Click Data Download tab and show 'No results received yet' dialog box@@ -157,13 +150,13 @@ module.exports = {client.expect.element('.wv-dialog').to.have.text.equal(- 'No results received yet. This may be due to a connectivity issue. Please try again later.'+ 'No results received yet. This may be due to a connectivity issue. Please try again later.',).after(client.globals.timeout);- }+ },);}}`,after(client) {client.end();- }+ },};diff --git a/e2e/features/events/events-test.js b/e2e/features/events/events-test.jsindex 90c645c20..f07aeb4a8 100644--- a/e2e/features/events/events-test.js+++ b/e2e/features/events/events-test.js@@ -8,11 +8,9 @@ const TIME_LIMIT = 10000;const listOfEvents = '#wv-events ul.map-item-list';const eventIcons = '.marker .event-icon';const firstEvent = '#wv-events ul.map-item-list .item:first-child h4';-const selectedFirstEvent =- '#wv-events ul.map-item-list .item-selected:first-child h4';+const selectedFirstEvent = '#wv-events ul.map-item-list .item-selected:first-child h4';const selectedMarker = '.marker-selected';-const firstExternalEventLink =- '#wv-events ul.map-item-list .item:first-child .natural-event-link:first-child';+const firstExternalEventLink = '#wv-events ul.map-item-list .item:first-child .natural-event-link:first-child';const trackMarker = '.track-marker';const layersTab = '#layers-sidebar-tab';@@ -21,7 +19,7 @@ module.exports = {reuseables.loadAndSkipTour(client, TIME_LIMIT);},'Make sure that 4 fire layers are not present in layer list: use mock': function(- client+ client,) {client.url(client.globals.url + localQuerystrings.mockEvents);client.waitForElementVisible(@@ -36,7 +34,7 @@ module.exports = {.be.present;client.expect.element('#active-MODIS_Terra_Thermal_Anomalies_All').to.not.be.present;- }+ },);},'Click fire event': function(client) {@@ -54,11 +52,11 @@ module.exports = {.present;client.expect.element('#active-MODIS_Terra_Thermal_Anomalies_All').to.be.present;- }+ },);},'Use Mock to make sure appropriate number of event markers are appended to map': function(- client+ client,) {client.url(client.globals.url + localQuerystrings.mockEvents);client.waitForElementVisible(listOfEvents, TIME_LIMIT, () => {@@ -70,7 +68,7 @@ module.exports = {client.waitForElementVisible(listOfEvents, TIME_LIMIT);},'Use Mock Ensure number of event track points is correct and event markers and tabs are not visible when layer tab is clicked': function(- client+ client,) {const globalSelectors = client.globals.selectors;client.click(firstEvent);@@ -101,7 +99,7 @@ module.exports = {.assert.urlParameterEquals('e', true);},'Verify Events may not be visible at all times is visible ': function(- client+ client,) {const globalSelectors = client.globals.selectors;client.waitForElementVisible(@@ -110,9 +108,9 @@ module.exports = {() => {client.assert.containsText(globalSelectors.notifyMessage,- 'Events may not be visible at all times'+ 'Events may not be visible at all times',);- }+ },);},'Clicking event notifcation opens explanation in dialog': function(client) {@@ -121,7 +119,7 @@ module.exports = {client.click(globalSelectors.notifyMessage).pause(2000);client.assert.containsText('#event_visibility_info .wv-data-unavailable-header',- 'Why can’t I see an event?'+ '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;@@ -145,5 +143,5 @@ module.exports = {},after(client) {client.end();- }+ },};diff --git a/e2e/features/events/list-all-test.js b/e2e/features/events/list-all-test.jsindex d2a1e9fe2..d6831b869 100644--- a/e2e/features/events/list-all-test.js+++ b/e2e/features/events/list-all-test.js@@ -27,9 +27,9 @@ module.exports = {client.click('#events-footer-checkbox').pause(1000);client.expect.element('#sidebar-event-EONET_2703').to.not.be.visible;client.expect.element('ul#wv-eventscontent > li:nth-child(2)').to.not.be.visible;- }+ },);- }+ },);},'Show events that are not in view': function(client) {@@ -40,5 +40,5 @@ module.exports = {},after(client) {client.end();- }+ },};diff --git a/e2e/features/image-download/formats-test.js b/e2e/features/image-download/formats-test.jsindex e56bd0197..fb74ab11f 100644--- a/e2e/features/image-download/formats-test.js+++ b/e2e/features/image-download/formats-test.js@@ -3,14 +3,14 @@ const { bookmark } = require('../../reuseables/bookmark');const {openImageDownloadPanel,closeImageDownloadPanel,- clickDownload+ clickDownload,} = require('../../reuseables/image-download');const startParams = ['l=MODIS_Terra_CorrectedReflectance_TrueColor','v=-1,-1,1,1','t=2018-06-01',- 'imageDownload='+ 'imageDownload=',];module.exports = {@@ -73,7 +73,7 @@ module.exports = {switchProjection(c, 'geographic');openImageDownloadPanel(c);c.click(- '#wv-image-format option[value="application/vnd.google-earth.kmz"]'+ '#wv-image-format option[value="application/vnd.google-earth.kmz"]',);closeImageDownloadPanel(c);switchProjection(c, 'arctic');@@ -84,5 +84,5 @@ module.exports = {.element('#wv-image-download-url').to.have.attribute('url').contain('FORMAT=image/jpeg');- }+ },};diff --git a/e2e/features/image-download/initial-state-test.js b/e2e/features/image-download/initial-state-test.jsindex 92d3c6f9b..1760e80a4 100644--- a/e2e/features/image-download/initial-state-test.js+++ b/e2e/features/image-download/initial-state-test.js@@ -2,7 +2,7 @@ const { loadAndSkipTour } = require('../../reuseables/skip-tour');const { switchProjection } = require('../../reuseables/switch-projection');const {openImageDownloadPanel,- closeImageDownloadPanel+ closeImageDownloadPanel,} = require('../../reuseables/image-download');const TIME_LIMIT = 10000;@@ -26,7 +26,7 @@ module.exports = {'500m','1km','5km',- '10km'+ '10km',].join('\n');c.expect.element('#wv-image-resolution').text.to.equal(expected);},@@ -59,5 +59,5 @@ module.exports = {const expected = ['JPEG', 'PNG', 'GeoTIFF'].join('\n');c.expect.element('#wv-image-format').text.to.equal(expected);closeImageDownloadPanel(c);- }+ },};diff --git a/e2e/features/image-download/layers-test.js b/e2e/features/image-download/layers-test.jsindex 8ee47a49d..661e20c41 100644--- a/e2e/features/image-download/layers-test.js+++ b/e2e/features/image-download/layers-test.js@@ -1,13 +1,13 @@const { bookmark } = require('../../reuseables/bookmark');const {openImageDownloadPanel,- clickDownload+ clickDownload,} = require('../../reuseables/image-download');const startParams = ['v=-180,-90,180,90','t=2018-06-01',- 'imageDownload='+ 'imageDownload=',];module.exports = {@@ -46,6 +46,6 @@ module.exports = {c.expect.element('#wv-image-download-url').to.have.attribute('url').and.to.contain('LAYERS=MODIS_Aqua_CorrectedReflectance_TrueColor,MODIS_Terra_CorrectedReflectance_TrueColor').and.to.contain('OPACITIES=,0.5');- }+ },};diff --git a/e2e/features/image-download/projection-test.js b/e2e/features/image-download/projection-test.jsindex df82a8838..2bda1ca44 100644--- a/e2e/features/image-download/projection-test.js+++ b/e2e/features/image-download/projection-test.js@@ -3,13 +3,13 @@ const { bookmark } = require('../../reuseables/bookmark');const {openImageDownloadPanel,closeImageDownloadPanel,- clickDownload+ clickDownload,} = require('../../reuseables/image-download');const startParams = ['l=MODIS_Terra_CorrectedReflectance_TrueColor','t=2018-06-01',- 'imageDownload='+ 'imageDownload=',];module.exports = {@@ -42,5 +42,5 @@ module.exports = {c.expect.element('#wv-image-download-url').to.have.attribute('url').and.to.contain('CRS=EPSG:3031');closeImageDownloadPanel(c);- }+ },};diff --git a/e2e/features/image-download/resolutions3413-test.js b/e2e/features/image-download/resolutions3413-test.jsindex 9dd98301f..32f5f0792 100644--- a/e2e/features/image-download/resolutions3413-test.js+++ b/e2e/features/image-download/resolutions3413-test.js@@ -5,7 +5,7 @@ const { normalizeViewport } = require('../../reuseables/normalize-viewport');const {openImageDownloadPanel,closeImageDownloadPanel,- clickDownload+ clickDownload,} = require('../../reuseables/image-download');const startParams = [@@ -13,7 +13,7 @@ const startParams = ['v=-4194304,-4194304,4194304,4194304','l=MODIS_Terra_CorrectedReflectance_TrueColor','t=2018-06-01',- 'imageDownload='+ 'imageDownload=',];module.exports = {@@ -92,6 +92,6 @@ module.exports = {c.assert.ok(x1 > 0 && x1 < 20000);c.assert.ok(y1 > 0 && y1 < 20000);});- }+ },};diff --git a/e2e/features/image-download/resolutions4326-test.js b/e2e/features/image-download/resolutions4326-test.jsindex f45b37d95..1e9851355 100644--- a/e2e/features/image-download/resolutions4326-test.js+++ b/e2e/features/image-download/resolutions4326-test.js@@ -4,7 +4,7 @@ const { normalizeViewport } = require('../../reuseables/normalize-viewport');const {openImageDownloadPanel,closeImageDownloadPanel,- clickDownload+ clickDownload,} = require('../../reuseables/image-download');const startParams = [@@ -12,7 +12,7 @@ const startParams = ['v=-180,-90,180,90','l=MODIS_Terra_CorrectedReflectance_TrueColor','t=2018-06-01',- 'imageDownload='+ 'imageDownload=',];module.exports = {@@ -120,5 +120,5 @@ module.exports = {c.assert.ok(lat1 > 0 && lat1 < 0.1);c.assert.ok(lon1 > 0 && lon1 < 0.1);});- }+ },};diff --git a/e2e/features/image-download/time-test.js b/e2e/features/image-download/time-test.jsindex 077ee3eaa..b799ccc17 100644--- a/e2e/features/image-download/time-test.js+++ b/e2e/features/image-download/time-test.js@@ -3,11 +3,11 @@ const { bookmark } = require('../../reuseables/bookmark');const {openImageDownloadPanel,closeImageDownloadPanel,- clickDownload+ clickDownload,} = require('../../reuseables/image-download');const startParams = [- 'imageDownload='+ 'imageDownload=',];module.exports = {@@ -42,6 +42,6 @@ module.exports = {c.expect.element('#wv-image-download-url').to.have.attribute('url').and.to.contain('TIME=2018-05-15');closeImageDownloadPanel(c);- }+ },};diff --git a/e2e/features/image-download/unsupported-test.js b/e2e/features/image-download/unsupported-test.jsindex 1b6008589..bbe0da154 100644--- a/e2e/features/image-download/unsupported-test.js+++ b/e2e/features/image-download/unsupported-test.js@@ -56,5 +56,5 @@ module.exports = {c.waitForElementPresent('#toolbar_snapshot', TIME_WAIT);c.pause(500);closeImageDownloadPanel(c);- }+ },};diff --git a/e2e/features/layers/layer-mobile-test.js b/e2e/features/layers/layer-mobile-test.jsindex f6b7b9003..2f0c80dac 100644--- a/e2e/features/layers/layer-mobile-test.js+++ b/e2e/features/layers/layer-mobile-test.js@@ -145,5 +145,5 @@ module.exports = {},after: (c) => {c.end();- }+ },};diff --git a/e2e/features/layers/layers-picker-test.js b/e2e/features/layers/layers-picker-test.jsindex 4ed8c0d1e..aa360b030 100644--- a/e2e/features/layers/layers-picker-test.js+++ b/e2e/features/layers/layers-picker-test.js@@ -106,7 +106,7 @@ module.exports = {client.assert.containsText(layerResultsCountText,- 'Showing 4 results(1 hidden by filters)'+ 'Showing 4 results(1 hidden by filters)',);});},@@ -150,7 +150,7 @@ module.exports = {client.clearValue(layersSearchField);client.setValue(layersSearchField,- 'MERRA2_Total_Aerosol_Optical_Thickness_550nm_Scattering_Monthly'+ 'MERRA2_Total_Aerosol_Optical_Thickness_550nm_Scattering_Monthly',);client.waitForElementVisible(layersSearchRow, TIME_LIMIT, (e) => {client.assert.containsText(layersAll, 'Total Aerosol Optical Thickness Scattering 550nm');@@ -262,5 +262,5 @@ module.exports = {},after: (client) => {client.end();- }+ },};diff --git a/e2e/features/layers/layers-sidebar-test.js b/e2e/features/layers/layers-sidebar-test.jsindex e4a800d86..6d22edcad 100644--- a/e2e/features/layers/layers-sidebar-test.js+++ b/e2e/features/layers/layers-sidebar-test.js@@ -28,5 +28,5 @@ module.exports = {// TODO tests for orbit tracks toggle on/offafter: (client) => {client.end();- }+ },};diff --git a/e2e/features/layers/options-test.js b/e2e/features/layers/options-test.jsindex 9e922fcc8..58a0d52a5 100644--- a/e2e/features/layers/options-test.js+++ b/e2e/features/layers/options-test.js@@ -1,17 +1,13 @@-const customsSquashedQuerystring =- '?p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Combined_Value_Added_AOD(opacity=0.7,palette=blue_2,min=0.1,0.105,max=0.56,0.565),MODIS_Terra_Aerosol,Reference_Labels(opacity=0.94),Reference_Features(hidden),Coastlines&t=2019-01-15-T00%3A00%3A00Z&z=3&v=-271.7031658620978,-216.84375,370.1093341379022,36.84375';+const customsSquashedQuerystring = '?p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Combined_Value_Added_AOD(opacity=0.7,palette=blue_2,min=0.1,0.105,max=0.56,0.565),MODIS_Terra_Aerosol,Reference_Labels(opacity=0.94),Reference_Features(hidden),Coastlines&t=2019-01-15-T00%3A00%3A00Z&z=3&v=-271.7031658620978,-216.84375,370.1093341379022,36.84375';const TIME_LIMIT = 10000;const skipTour = require('../../reuseables/skip-tour.js');-const combinedAodSettingsButton =- '#active-MODIS_Combined_Value_Added_AOD .wv-layers-options';+const combinedAodSettingsButton = '#active-MODIS_Combined_Value_Added_AOD .wv-layers-options';const terraAodSettingsButton = '#active-MODIS_Terra_Aerosol .wv-layers-options';const terraAodSettingsDialog = '#layer_options_modal-modis_terra_aerosol';const thresholdMinLabel = '#wv-layer-options-threshold0 .wv-label-range-min';-const activeBluePaletteCheckbox =- '.wv-palette-selector-row.checked #wv-palette-radio-blue_2';-const activeDefaultPaletteCheckbox =- '.wv-palette-selector-row.checked #wv-palette-radio-__default';+const activeBluePaletteCheckbox = '.wv-palette-selector-row.checked #wv-palette-radio-blue_2';+const activeDefaultPaletteCheckbox = '.wv-palette-selector-row.checked #wv-palette-radio-__default';const opacityLabel = '.layer-opacity-select .wv-label';module.exports = {before(client) {@@ -28,7 +24,7 @@ module.exports = {client.click(combinedAodSettingsButton).pause(1000);client.waitForElementPresent(thresholdMinLabel, TIME_LIMIT);}- }+ },);},'Verify that custom blue custom palette is checked': function(client) {@@ -38,7 +34,7 @@ module.exports = {}},'Verify that threshold and opacity components update when different layer setting button clicked': function(- client+ client,) {if (client.options.desiredCapabilities.browser !== 'ie') {client.useCss().assert.containsText(thresholdMinLabel, '0.1 – 0.105');@@ -50,7 +46,7 @@ module.exports = {() => {client.useCss().assert.containsText(thresholdMinLabel, '< 0.0');client.useCss().assert.containsText(opacityLabel, '100%');- }+ },);}},@@ -59,5 +55,5 @@ module.exports = {client.expect.element(activeBluePaletteCheckbox).to.not.be.present;client.expect.element(activeDefaultPaletteCheckbox).to.be.present;}- }+ },};diff --git a/e2e/features/measure/measure-test.js b/e2e/features/measure/measure-test.jsindex 431304cbb..9d7e48e60 100644--- a/e2e/features/measure/measure-test.js+++ b/e2e/features/measure/measure-test.js@@ -11,7 +11,7 @@ const {measureMenu,measurementTooltip,sidebarContainer,- unitOfMeasureToggle+ unitOfMeasureToggle,} = localSelectors;module.exports = {@@ -31,7 +31,7 @@ module.exports = {client.useCss().assert.cssProperty(sidebarContainer,'max-height',- '0px'+ '0px',);client.pause(300);},@@ -114,5 +114,5 @@ module.exports = {},after(client) {client.end();- }+ },};diff --git a/e2e/features/notifications/notify-test.js b/e2e/features/notifications/notify-test.jsindex 8e7ff2b1a..63fe22113 100644--- a/e2e/features/notifications/notify-test.js+++ b/e2e/features/notifications/notify-test.js@@ -7,16 +7,13 @@ const infoMenu = '#toolbar_info';const giftListItem = '#toolbar_info li.gift';const boltListItem = '#toolbar_info li.bolt';const exclamationListItem = '#notifications_info_item .fa-exclamation-circle';-const alertContentHightlighted =- '#notification_list_modal .alert-notification-item';-const outageContentHightlighted =- '#notification_list_modal .outage-notification-item';-const messageContentHightlighted =- '#notification_list_modal .message-notification-item';+const alertContentHightlighted = '#notification_list_modal .alert-notification-item';+const outageContentHightlighted = '#notification_list_modal .outage-notification-item';+const messageContentHightlighted = '#notification_list_modal .message-notification-item';module.exports = {'No visible notifications with mockAlert parameter set to no_types': function(- client+ client,) {client.url(`${client.globals.url + mockParam}no_types`);client.waitForElementVisible(infoButtonIcon, TIME_LIMIT, () => {@@ -31,7 +28,7 @@ module.exports = {});},'Outage takes precedence when all three notifications are present': function(- client+ client,) {client.url(`${client.globals.url + mockParam}all_types`);client.waitForElementVisible(infoButtonIcon, TIME_LIMIT, () => {@@ -43,7 +40,7 @@ module.exports = {});},'alert, outage, and message content is highlighted and found in modal': function(- client+ client,) {client.useCss().click(exclamationListItem);client.waitForElementVisible(outageContentHightlighted, TIME_LIMIT, () => {@@ -51,24 +48,24 @@ module.exports = {.useCss().assert.containsText(`${outageContentHightlighted} span`,- 'Posted 20 May 2018'+ 'Posted 20 May 2018',);client.useCss().assert.containsText(`${alertContentHightlighted} p`,- 'learn how to visualize global satellite imagery'+ 'learn how to visualize global satellite imagery',);client.useCss().assert.containsText(`${messageContentHightlighted} p`,- 'This is a message test'+ 'This is a message test',);});},'Verify that the user is only alerted if he has not already stored all items in localStorage': function(- client+ client,) {client.useCss()@@ -80,5 +77,5 @@ module.exports = {},after(client) {client.end();- }+ },};diff --git a/e2e/features/palettes/disable-test.js b/e2e/features/palettes/disable-test.jsindex 84583a5da..6a55bca3d 100644--- a/e2e/features/palettes/disable-test.js+++ b/e2e/features/palettes/disable-test.js@@ -35,5 +35,5 @@ module.exports = {},after(client) {client.end();- }+ },};diff --git a/e2e/features/timeline/date-selector-test.js b/e2e/features/timeline/date-selector-test.jsindex 75ebb5b9d..431274ec5 100644--- a/e2e/features/timeline/date-selector-test.js+++ b/e2e/features/timeline/date-selector-test.js@@ -118,5 +118,5 @@ module.exports = {after: (client) => {client.end();- }+ },};diff --git a/e2e/features/timeline/timeline-mobile-test.js b/e2e/features/timeline/timeline-mobile-test.jsindex 9203ee027..2d67b343f 100644--- a/e2e/features/timeline/timeline-mobile-test.js+++ b/e2e/features/timeline/timeline-mobile-test.js@@ -177,5 +177,5 @@ module.exports = {},after: (c) => {c.end();- }+ },};diff --git a/e2e/features/timeline/timeline-test.js b/e2e/features/timeline/timeline-test.jsindex 03145522a..a5b67a6b4 100644--- a/e2e/features/timeline/timeline-test.js+++ b/e2e/features/timeline/timeline-test.js@@ -189,5 +189,5 @@ module.exports = {after: (client) => {client.end();- }+ },};diff --git a/e2e/features/tour/tour-test.js b/e2e/features/tour/tour-test.jsindex 8d06679ad..f26905814 100644--- a/e2e/features/tour/tour-test.js+++ b/e2e/features/tour/tour-test.js@@ -6,7 +6,7 @@ module.exports = {before(client) {normalizeViewport(client, 1000, 850);client.url(client.globals.url)- .execute(() => !(window.localStorage.getItem('hideTour')));+ .execute(() => !window.localStorage.getItem('hideTour'));},'Verify that all tour modals are present when the page is loaded': function(client) {let totalSteps;@@ -28,5 +28,5 @@ module.exports = {after(client) {client.end();- }+ },};diff --git a/e2e/globals.js b/e2e/globals.jsindex b5c24b1ed..2f961176f 100644--- a/e2e/globals.js+++ b/e2e/globals.js@@ -10,8 +10,8 @@ module.exports = {notificationDismissButton: '.wv-alert .close-alert .fa-times',overlayLayerItems: '#overlays li',resolutionTooltip: '#zoom-btn-container',- notifyMessage: '.wv-alert .alert-content'+ notifyMessage: '.wv-alert .alert-content',},delay: 3000, // Acceptable delay in ms between performing actions and seeing results- timeout: 20000+ timeout: 20000,};diff --git a/e2e/reuseables/bookmark.js b/e2e/reuseables/bookmark.jsindex 1a4d08d34..a69e563a0 100644--- a/e2e/reuseables/bookmark.js+++ b/e2e/reuseables/bookmark.js@@ -5,5 +5,5 @@ module.exports = {const url = `${c.globals.url}?${params.join('&')}`;c.url(url);c.waitForElementVisible('#wv-logo', TIME_LIMIT);- }+ },};diff --git a/e2e/reuseables/click-patch-wip.js b/e2e/reuseables/click-patch-wip.jsindex edda5f68e..72e51a827 100644--- a/e2e/reuseables/click-patch-wip.js+++ b/e2e/reuseables/click-patch-wip.js@@ -2,7 +2,9 @@ module.exports = {customMouseEvent(client, selector, offsetX, offsetY, eventType) {eventType = eventType || 'dblclick';client.execute((obj) => {- const { eventType, selector, offsetX, offsetY } = obj;+ const {+ eventType, selector, offsetX, offsetY,+ } = obj;const el = document.querySelector(selector || 'body');function simulate(element, eventName) {const options = extend(defaultOptions, arguments[2] || {});@@ -41,7 +43,7 @@ module.exports = {var eventMatchers = {HTMLEvents: /^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/,- MouseEvents: /^(?:click|dblclick|mouse(?:down|up|over|move|out))$/+ MouseEvents: /^(?:click|dblclick|mouse(?:down|up|over|move|out))$/,};var defaultOptions = {pointerX: 0,@@ -52,10 +54,12 @@ module.exports = {shiftKey: false,metaKey: false,bubbles: true,- cancelable: true+ cancelable: true,};return simulate(el, eventType, { pointerX: offsetX, pointerY: offsetY });- }, [{ eventType, selector, offsetX, offsetY }], (result) => {+ }, [{+ eventType, selector, offsetX, offsetY,+ }], (result) => {});- }+ },};diff --git a/e2e/reuseables/image-download.js b/e2e/reuseables/image-download.jsindex e5d07b67c..92ae27609 100644--- a/e2e/reuseables/image-download.js+++ b/e2e/reuseables/image-download.js@@ -20,5 +20,5 @@ module.exports = {c.waitForElementVisible('.wv-image-button', TIME_LIMIT);c.click('.wv-image-button');c.pause(550);- }+ },};diff --git a/e2e/reuseables/layer-picker.js b/e2e/reuseables/layer-picker.jsindex 7898b9fa1..19d96dad6 100644--- a/e2e/reuseables/layer-picker.js+++ b/e2e/reuseables/layer-picker.js@@ -24,5 +24,5 @@ module.exports = {client.expect.element('#active-VIIRS_SNPP_CorrectedReflectance_TrueColor').to.be.present;client.expect.element('#active-MODIS_Aqua_CorrectedReflectance_TrueColor').to.be.present;client.expect.element('#active-MODIS_Terra_CorrectedReflectance_TrueColor').to.be.present;- }+ },};diff --git a/e2e/reuseables/normalize-viewport.js b/e2e/reuseables/normalize-viewport.jsindex c5c10e513..40d822b53 100644--- a/e2e/reuseables/normalize-viewport.js+++ b/e2e/reuseables/normalize-viewport.js@@ -4,10 +4,10 @@ module.exports = {client.execute((width, height) => ({width: width === window.innerWidth ? 0 : window.outerWidth - window.innerWidth,- height: height === window.innerHeight ? 0 : window.outerHeight - window.innerHeight+ height: height === window.innerHeight ? 0 : window.outerHeight - window.innerHeight,}), [width, height], (result) => {const padding = result.value;client.windowSize('current', width + padding.width, height + padding.height);});- }+ },};diff --git a/e2e/reuseables/querystrings.js b/e2e/reuseables/querystrings.jsindex 94da2177c..da97e40db 100644--- a/e2e/reuseables/querystrings.js+++ b/e2e/reuseables/querystrings.js@@ -28,5 +28,5 @@ module.exports = {// 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',- continuousDataLayers: '?p=geographic&l=MODIS_Terra_Brightness_Temp_Band31_Day&t=2015-05-25&z=2&v=-42.148380855752734,42.13121723408824,22.122734950093943,85.16225953076464'+ continuousDataLayers: '?p=geographic&l=MODIS_Terra_Brightness_Temp_Band31_Day&t=2015-05-25&z=2&v=-42.148380855752734,42.13121723408824,22.122734950093943,85.16225953076464',};diff --git a/e2e/reuseables/selectors.js b/e2e/reuseables/selectors.jsindex 54c62e5d3..8d7fb4196 100644--- a/e2e/reuseables/selectors.js+++ b/e2e/reuseables/selectors.js@@ -45,5 +45,5 @@ module.exports = {optionsDialog: '.layer-info-settings-modal',addLayers: '#layers-add',layersModalCloseButton: '.custom-layer-dialog .modal-header .close',- aerosolOpticalDepth: '#legacy-all #layer-category-item-legacy-all-aerosol-optical-depth'+ aerosolOpticalDepth: '#legacy-all #layer-category-item-legacy-all-aerosol-optical-depth',};diff --git a/e2e/reuseables/skip-tour.js b/e2e/reuseables/skip-tour.jsindex 9225ffd37..1f5e11dd3 100644--- a/e2e/reuseables/skip-tour.js+++ b/e2e/reuseables/skip-tour.js@@ -4,8 +4,8 @@ module.exports = {loadAndSkipTour(client, wait) {normalizeViewport(client, 1024, 768);client.url(client.globals.url)- .execute(() => !(window.localStorage.getItem('hideTour')) // See if there should be a tour- , [], (result) => {+ .execute(() => !window.localStorage.getItem('hideTour'), // See if there should be a tour+ [], (result) => {const hasTour = result.value;if (hasTour) {client.waitForElementVisible('.tour button.close', wait, () => {@@ -16,5 +16,5 @@ module.exports = {client.waitForElementVisible('#wv-logo', wait);}});- }+ },};diff --git a/e2e/reuseables/switch-projection.js b/e2e/reuseables/switch-projection.jsindex f88202416..544193d37 100644--- a/e2e/reuseables/switch-projection.js+++ b/e2e/reuseables/switch-projection.js@@ -9,5 +9,5 @@ module.exports = {c.pause(500);c.click(`#change-${proj}-button`);c.waitForElementVisible(`#wv-map-${proj}`, TIME_LIMIT);- }+ },};diff --git a/e2e/reuseables/zoom.js b/e2e/reuseables/zoom.jsindex e05f3fbe6..b7c7b1322 100644--- a/e2e/reuseables/zoom.js+++ b/e2e/reuseables/zoom.js@@ -2,5 +2,5 @@ module.exports = {zoomIn(c, proj) {c.click(`#wv-map [data-proj='${proj}'] div.wv-map-zoom-in`);c.pause(300);- }+ },};