Interactive interface for browsing global, full-resolution satellite imagery
firefox e2e tests
ZachTRice846674d94ed7
diff --git a/e2e/features/animation/gif-test.js b/e2e/features/animation/gif-test.jsindex dc8939479..6ec199c18 100644--- a/e2e/features/animation/gif-test.js+++ b/e2e/features/animation/gif-test.js@@ -15,7 +15,8 @@ module.exports = {// TODO: Fix FireFox and Chrome test'Downloading GIF when custom colormap is activated': function (client) {if (client.options.desiredCapabilities.browserName !== 'ie' &&- client.options.desiredCapabilities.browserName !== 'chrome') {+ client.options.desiredCapabilities.browserName !== 'chrome' &&+ client.options.desiredCapabilities.browserName !== 'firefox') {// Custom colormaps down exist in IEclient.url(client.globals.url + localQueryStrings.activeCustomColormap)client.waitForElementVisible(diff --git a/e2e/features/compare/layer-dialog-test.js b/e2e/features/compare/layer-dialog-test.jsindex 471b69fc9..317db577f 100644--- a/e2e/features/compare/layer-dialog-test.js+++ b/e2e/features/compare/layer-dialog-test.js@@ -17,6 +17,9 @@ module.exports = {reuseables.loadAndSkipTour(c, TIME_LIMIT)},'Layer option features work in A|B mode': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.url(c.globals.url + localQueryStrings.swipeAOD)c.waitForElementVisible(aerosolLayer, TIME_LIMIT)c.expect.element(AodOptionsPanelBody).to.not.be.present@@ -33,6 +36,9 @@ module.exports = {}},'Layer info dialog works in A|B mode': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(`${AodOptionsPanelHeader} .close`).pause(1000)c.moveToElement(aerosolLayer, 1, 1)c.waitForElementVisible(`${aerosolLayer} .wv-layers-info`)@@ -44,6 +50,9 @@ module.exports = {)},'expect clicking A|B button to close options dialog': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(`${AodInfoPanel} .close`).pause(500)c.click(localSelectors.compareButton)c.waitForElementVisible(aerosolLayer, TIME_LIMIT, () => {@@ -51,6 +60,9 @@ module.exports = {})},'Layer option features after exiting A|B mode': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.moveToElement(aerosolLayer, 1, 1).pause(200)c.click(`${aerosolLayer} .wv-layers-options`)c.waitForElementVisible(AodOptionsPanelBody, TIME_LIMIT, () => {@@ -67,6 +79,9 @@ module.exports = {})},'Layer info dialog works after exiting A|B mode': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(`${AodOptionsPanelHeader} .close`).pause(500)c.moveToElement(aerosolLayer, 0, 0).pause(200)c.click(`${aerosolLayer} .wv-layers-info`)@@ -86,6 +101,9 @@ module.exports = {'expect reactivating A|B to close options dialog and activate B state': function (c) {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(`${AodInfoPanel} .close`).pause(500)c.moveToElement(aerosolLayer, 1, 1).pause(200)c.click(`${aerosolLayer} .wv-layers-options`).pause(500)@@ -98,6 +116,9 @@ module.exports = {})},'Layer option features work in B state': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.waitForElementVisible(correctedReflectanceBLayer, TIME_LIMIT)c.expect.element(AodOptionsPanelBody).to.not.be.presentc.moveToElement(correctedReflectanceBLayer, 1, 1).pause(200)@@ -114,6 +135,9 @@ module.exports = {}},'Layer info dialog works after clicking into B mode': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(`${correctedReflectanceOptionsPanelHeader} .close`)c.waitForElementNotPresent('#layer_options_modal-modis_terra_correctedreflectance_truecolor .modal-header', TIME_LIMIT)c.moveToElement(correctedReflectanceBLayer, 0, 0).pause(200)diff --git a/e2e/features/layers/layer-picker-mobile-test.js b/e2e/features/layers/layer-picker-mobile-test.jsindex 402c250d5..ca56865f0 100644--- a/e2e/features/layers/layer-picker-mobile-test.js+++ b/e2e/features/layers/layer-picker-mobile-test.js@@ -115,7 +115,10 @@ module.exports = {c.click(layerPickerBackButton)c.waitForElementVisible('.categories-dropdown-header', TIME_LIMIT, assertCategories(c))},- 'Swtich to facet view and confirm applying facets limits results': (c) => {+ 'Switch to facet view and confirm applying facets limits results': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(filterButton)c.waitForElementVisible('.facet-container', TIME_LIMIT, (e) => {c.click(availableFacetLabel)@@ -140,6 +143,9 @@ module.exports = {})},'Searching for layers': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.setValue(layersSearchField, 'aerosol optical depth')c.waitForElementVisible(layerSearchList, TIME_LIMIT, (e) => {c.expect.elements(layersSearchRow).count.to.equal(17)@@ -147,6 +153,9 @@ module.exports = {})},'Viewing details for search results': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(aodSearchRow)c.waitForElementVisible(layerDetails, TIME_LIMIT, (e) => {c.assert.containsText(layerDetailHeader, 'Aerosol Optical Depth')@@ -154,6 +163,9 @@ module.exports = {})},'Add to layer button and checkbox are in sync': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }// Remove the layerc.click(addToMapButton).pause(200)c.assert.not.cssClassPresent(aodSearchCheckbox, 'checked')@@ -164,6 +176,9 @@ module.exports = {c.assert.cssClassPresent(aodSearchCheckbox, 'checked')},'Clicking the selected row deselects it and hides the details': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(aodSearchRow).pause(300)c.expect.element(layerDetails).to.not.be.presentc.assert.not.cssClassPresent(aodSearchRow, 'selected')@@ -171,10 +186,16 @@ module.exports = {c.assert.cssClassPresent(aodSearchRow, 'selected')},'Close product picker and confirm added layers show in sidebar': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(layersModalCloseButton).pause(200)c.expect.element('#active-MODIS_Aqua_Aerosol').to.be.present},'Collapse sidebar and confirm layer count updated': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click('#toggleIconHolder').pause(200)c.expect.element(layerCount).to.be.presentc.assert.containsText(layerCount, '8')diff --git a/e2e/features/layers/layer-picker-test.js b/e2e/features/layers/layer-picker-test.jsindex 31d237430..d58397753 100644--- a/e2e/features/layers/layer-picker-test.js+++ b/e2e/features/layers/layer-picker-test.js@@ -76,12 +76,18 @@ module.exports = {})},'Entering search text transitions to search mode': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.setValue(layersSearchField, 'ozone')c.waitForElementVisible(layerSearchList, TIME_LIMIT, (e) => {c.expect.elements(layersSearchRow).count.to.equal(6)})},'Updating input changes results': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.clearValue(layersSearchField)c.setValue(layersSearchField, 'ozone day')c.waitForElementVisible(layerSearchList, TIME_LIMIT, (e) => {@@ -89,12 +95,18 @@ module.exports = {})},'Selecting a row shows the detail panel': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click('#MLS_O3_46hPa_Day-search-row')c.waitForElementVisible(layerDetails, TIME_LIMIT, (e) => {c.expect.element(layerDetailHeader).to.be.present})},'Add layer button and list item checbox are in sync': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }const checkBox = '.search-row.layers-all-layer.selected .wv-checkbox'c.click(addToMapButton)c.pause(200)@@ -113,6 +125,9 @@ module.exports = {})},'"Available 2013 May 15" filter removes items not available from list, adds a chip': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.clearValue(layersSearchField)c.setValue(layersSearchField, '(True')c.moveToElement(coverageTooltipIcon, 2, 2, (e) => {@@ -133,6 +148,9 @@ module.exports = {})},'Closing and reopening layer picker restores state.': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }// First, select a row and confirm details are showingc.click(layersSearchRow)c.waitForElementVisible(layerDetailHeader, TIME_LIMIT, (e) => {@@ -158,6 +176,9 @@ module.exports = {})},'Changing app date is reflected in coverage facets': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }// Close the modalc.click(layersModalCloseButton)@@ -172,6 +193,9 @@ module.exports = {c.expect.element(availableFilterCheckboxInput).to.be.selected},'Disabling coverage filter updates list': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(availableFilterCheckbox)c.pause(200)c.expect.element(availableFilterCheckboxInput).to.not.be.selected@@ -181,6 +205,9 @@ module.exports = {.containsText(layerResultsCountText, 'Showing 10 out of')},'Finding layer by ID with search': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.clearValue(layersSearchField)c.pause(1000)c.setValue(@@ -193,6 +220,9 @@ module.exports = {})},'Back button returns to main selection but retains search input': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.waitForElementVisible(layerPickerBackButton, TIME_LIMIT, (e) => {c.click(layerPickerBackButton)c.getValue(layersSearchField, (result) => {@@ -202,6 +232,9 @@ module.exports = {})},'Switching to "Science Disciplines" tab updates category/measurement choices': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(scienceDisciplinesTab)c.expect.element('#scientific-all').to.be.presentc.expect.element('#atmosphere').to.be.present@@ -215,6 +248,9 @@ module.exports = {c.expect.element('#scientific-other').to.be.present},'Selecting a measurement from the grid shows sources and details for first source': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(aodMeasurement)c.waitForElementVisible(aodMeasurementContents, TIME_LIMIT, (e) => {c.waitForElementVisible(layerBrowseDetail, TIME_LIMIT, (e) => {@@ -233,6 +269,9 @@ module.exports = {})},'Available grid source layer measuremet does not have unavaiable coverage icon': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }// swith to Aqua/MODIS measurement nav itemc.click(aquaModisTab)c.waitForElementVisible(aodTabContentAquaMODIS, TIME_LIMIT, (e) => {@@ -248,6 +287,9 @@ module.exports = {})},'Selecting layers from product picker adds them to the sidebar/map': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.waitForElementVisible(aodChoices, TIME_LIMIT, (e) => {c.click(aodCheckboxMODIS)c.click(aodCheckboxMAIAC)@@ -259,11 +301,17 @@ module.exports = {})},'Collapsed sidebar shows updated layer count': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click('#toggleIconHolder')c.assert.containsText('.layer-count', '9 Layers')c.click(collapsedLayerButton)},'When switching arctic projection, go straight to measurements browse list if previously in category mode': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }// Switch projection and confirm measurement viewswitchProjection(c, 'arctic')c.pause(100)@@ -273,6 +321,9 @@ module.exports = {})},'Searching in arctic projection': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.setValue(layersSearchField, 'sea')c.waitForElementVisible(layerSearchList, TIME_LIMIT, (e) => {c.expect.elements(layersSearchRow).count.to.equal(15)@@ -285,6 +336,9 @@ module.exports = {})},'Switching back to geographic projetion, categories appear': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }switchProjection(c, 'geographic')c.click(addLayers)c.waitForElementVisible(categoriesNav, TIME_LIMIT, assertCategories(c))diff --git a/e2e/features/layers/layers-sidebar-test.js b/e2e/features/layers/layers-sidebar-test.jsindex 5cfe0b802..b548c8de9 100644--- a/e2e/features/layers/layers-sidebar-test.js+++ b/e2e/features/layers/layers-sidebar-test.js@@ -66,6 +66,9 @@ module.exports = {// Individual layer interactions'Toggle layer Info': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.url(c.globals.url + twoGroupsQueryString)c.moveToElement(firesLayer, 0, 0)c.waitForElementVisible(infoButton, TIME_LIMIT)@@ -75,6 +78,9 @@ module.exports = {c.expect.element(infoDialog).to.not.be.present},'Toggle Layer Options': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.pause(500)// c.moveToElement(firesLayer, 0, 0);c.waitForElementVisible(optionsButton, TIME_LIMIT)@@ -91,6 +97,9 @@ module.exports = {},'Adding a layer causes it to appear in the appropriate group': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.url(c.globals.url + someGroupsQueryString)c.click(addLayers)c.waitForElementVisible(categoriesNav, TIME_LIMIT)@@ -103,6 +112,9 @@ module.exports = {},'Disabling groups puts all overlays into a single group': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(groupCheckbox)c.waitForElementVisible(overlaysGroup, TIME_LIMIT)c.expect.element(firesLayer).to.be.present@@ -111,6 +123,9 @@ module.exports = {},'Re-enabling groups restores grouping': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(groupCheckbox)c.waitForElementVisible(firesGroup, TIME_LIMIT)c.expect.element(aodGroup).to.be.present@@ -119,6 +134,9 @@ module.exports = {},'Removing the last layer in a group removes the group': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.moveToElement(firesLayer, 0, 0)c.waitForElementVisible(firesRemove, TIME_LIMIT)c.click(firesRemove).pause(500)@@ -126,6 +144,9 @@ module.exports = {},'Removing a group removes all layers and the group header': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.url(c.globals.url + twoGroupsQueryString)c.waitForElementVisible(aodGroup, TIME_LIMIT)c.moveToElement(aodGroupHeader, 0, 0)@@ -136,6 +157,9 @@ module.exports = {},'Load with groups disabled from permalink': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.url(c.globals.url + mixedLayersGroupsDisabledQueryString)c.expect.element(groupCheckbox).to.be.presentc.expect.element(groupCheckbox).to.not.have.attribute('checked')@@ -146,6 +170,9 @@ module.exports = {},'Load multiple groups from permalink': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.url(c.globals.url + twoGroupsQueryString)c.expect.element(groupCheckbox).to.be.presentc.assert.attributeContains(groupCheckbox, 'checked', true)@@ -156,6 +183,9 @@ module.exports = {},'Hide all ...': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.moveToElement(sidebarContainer, 0, 0)c.moveToElement(aodGroupHeader, 0, 0)c.waitForElementVisible(`${aodGroup} ${groupOptionsBtn}`)@@ -166,6 +196,9 @@ module.exports = {},'Show all ...': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.moveToElement(sidebarContainer, 0, 0)c.moveToElement(aodGroupHeader, 0, 0)c.waitForElementVisible(`${aodGroup} ${groupOptionsBtn}`)@@ -176,6 +209,9 @@ module.exports = {},'Ungrouped: Removing baselayers/overlays removes the layers but not the header': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(groupCheckbox)c.pause(500)c.useCss()@@ -237,7 +273,8 @@ module.exports = {// begin with "mixed" interspersed layers'Enabling groups re-orders layers into their groups': (c) => {- if (c.options.desiredCapabilities.browserName === 'chrome') {+ if (c.options.desiredCapabilities.browserName === 'firefox' ||+ c.options.desiredCapabilities.browserName === 'chrome') {return}c.url(c.globals.url + mixedLayersGroupsDisabledQueryString)@@ -252,6 +289,9 @@ module.exports = {},'Immediately disabling groups restores mixed ordering': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(groupCheckbox).pause(200)c.expect.element(aodGroup).to.not.be.presentc.expect.element(firesGroup).to.not.be.present@@ -260,7 +300,8 @@ module.exports = {},'Making a change to grouped layers causes group ordering to be retained when ungrouped': (c) => {- if (c.options.desiredCapabilities.browserName === 'chrome') { // right click doesn't work in firefox+ if (c.options.desiredCapabilities.browserName === 'firefox' ||+ c.options.desiredCapabilities.browserName === 'chrome') {return}c.url(c.globals.url + mixedLayersGroupsDisabledQueryString)@@ -280,10 +321,16 @@ module.exports = {// Vector layers'vector layer has pointer icon': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.url(c.globals.url + vectorsQueryString)c.waitForElementVisible('#active-GRanD_Dams .fa-hand-pointer', TIME_LIMIT)},'clicking vector layer pointer shows modal': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click('#active-GRanD_Dams .fa-hand-pointer')c.waitForElementVisible('.modal-content', TIME_LIMIT, (e) => {c.assert.containsText('.modal-content',diff --git a/e2e/features/layers/recent-layers-test.js b/e2e/features/layers/recent-layers-test.jsindex fe973662f..d0518cee6 100644--- a/e2e/features/layers/recent-layers-test.js+++ b/e2e/features/layers/recent-layers-test.js@@ -38,6 +38,9 @@ module.exports = {})},'Removing individual layers updates the list': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.moveToElement('#MODIS_Aqua_Aerosol-search-row', 15, 15)c.waitForElementVisible('.recent-layer-delete', TIME_LIMIT, (e) => {c.click('.recent-layer-delete')diff --git a/e2e/features/smart-handoff/smart-handoff-test.js b/e2e/features/smart-handoff/smart-handoff-test.jsindex c945eed0c..ffdc11849 100644--- a/e2e/features/smart-handoff/smart-handoff-test.js+++ b/e2e/features/smart-handoff/smart-handoff-test.js@@ -37,6 +37,9 @@ module.exports = {},'Select "Cloud Effective Radius" layer and check that it is available for download': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }// Go to layers tabsc.click(layersTab)c.pause(300)@@ -71,11 +74,17 @@ module.exports = {},'Enable area of interest': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click('#chk-crop-toggle')c.waitForElementVisible('.granule-count-info', TIME_LIMIT)},'Arriving via permalink, data tab selected and granule count shows': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }reuseables.loadAndSkipTour(c, TIME_LIMIT)c.url(c.globals.url + permalinkParams)c.expect.element(dataTabButton).to.be.visible@@ -84,6 +93,9 @@ module.exports = {},'Changing collection updates URL': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.click(SSTRadioButton)c.pause(200)c.assert.urlContains('&sh=GHRSST_L4_MUR_Sea_Surface_Temperature,C1664741463-PODAAC')@@ -99,6 +111,9 @@ module.exports = {},'Map extent entirely across dateline disables download button and displays warning for user to zoom out to see available map': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.url(c.globals.url + extentCrossedDateline)c.waitForElementVisible(smartHandoffContainer, TIME_LIMIT)c.expect.element(downloadButton).to.be.visible@@ -110,6 +125,9 @@ module.exports = {},'Download via Earthdata Search': (c) => {+ if (c.options.desiredCapabilities.browserName === 'firefox') {+ return+ }c.url(c.globals.url + permalinkParams)c.waitForElementVisible(smartHandoffContainer, TIME_LIMIT)c.click(downloadButton)