Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Update e2e tests #577

Benjamin King0a815f4b9168
diff --git a/e2e/features/compare/layer-picker-test.js b/e2e/features/compare/layer-picker-test.js
index e41dd5a17..efe923f0b 100644
--- a/e2e/features/compare/layer-picker-test.js
+++ b/e2e/features/compare/layer-picker-test.js
@@ -2,10 +2,9 @@ const reuseables = require('../../reuseables/skip-tour.js');
const localSelectors = require('./selectors.js');
const layerSelectors = require('../layers/selectors.js');
const localQuerystrings = require('./querystrings.js');
-const blueMarbleCheckBox =
- '#blue-marble-nasaeo-modis .measurement-settings-item .iCheck';
const aodCheckBox =
- '#aerosol-optical-depth-terra-misr .measurement-settings-item .iCheck';
+ '#checkbox-case-MISR_Aerosol_Optical_Depth_Avg_Green_Monthly .wv-checkbox';
+const aodIndexCheckbox = '#checkbox-case-OMI_Aerosol_Index .wv-checkbox';
const TIME_LIMIT = 20000;
module.exports = {
before: function(client) {
@@ -45,7 +44,7 @@ module.exports = {
'#active-MISR_Aerosol_Optical_Depth_Avg_Green_Monthly'
).to.not.be.visible;
},
- 'Add Blue marble layer to Active state B and verify it has been added': function(
+ 'Add AOD index layer to Active state B and verify it has been added': function(
client
) {
client.click(layerSelectors.addLayers);
@@ -53,11 +52,13 @@ module.exports = {
layerSelectors.aerosolOpticalDepth,
TIME_LIMIT,
function() {
- client.click('#layer-category-item-legacy-all-blue-marble');
- client.waitForElementVisible(blueMarbleCheckBox, 20000, function() {
- client.click(blueMarbleCheckBox);
+ client.click(
+ '#layer-category-item-legacy-all-aerosol-index .layer-category-name'
+ );
+ client.waitForElementVisible(aodIndexCheckbox, 20000, function() {
+ client.click(aodIndexCheckbox);
client.waitForElementVisible(
- '#activeB-BlueMarble_NextGeneration',
+ '#activeB-OMI_Aerosol_Index',
TIME_LIMIT
);
client.expect.element(
@@ -70,7 +71,7 @@ module.exports = {
}
);
},
- 'Verify that AOD is visible and Blue marbel is not present in Layer list A': function(
+ 'Verify that AOD green is visible and AOD index is not present in Layer list A': function(
client
) {
client.click(layerSelectors.layersModalCloseButton);
@@ -80,10 +81,8 @@ module.exports = {
'#active-MISR_Aerosol_Optical_Depth_Avg_Green_Monthly',
TIME_LIMIT,
function() {
- client.expect.element('#activeB-BlueMarble_NextGeneration').to.not.be
- .visible;
- client.expect.element('#active-BlueMarble_NextGeneration').to.not.be
- .present;
+ client.expect.element('#activeB-OMI_Aerosol_Index').to.not.be.visible;
+ client.expect.element('#activeA-OMI_Aerosol_Index').to.not.be.present;
}
);
},
diff --git a/e2e/features/layers/selectors.js b/e2e/features/layers/selectors.js
index 9014e2831..409c3c48a 100644
--- a/e2e/features/layers/selectors.js
+++ b/e2e/features/layers/selectors.js
@@ -1,17 +1,18 @@
module.exports = {
- 'infoButton': '.wv-layers-info',
- 'optionsButton': '.wv-layers-options',
- 'infoDialog': '[aria-describedby="wv-layers-info-dialog"]',
- 'optionsDialog': '[aria-describedby="wv-layers-options-dialog"]',
- 'layersSearchField': 'input#layers-search-input',
- 'layersAll': '#layers-all',
- 'sourceInfoIcon': '.layers-all-layer .fa-info-circle',
- 'layerHeader': '.layers-all-header',
- 'addLayers': '#layers-add',
- 'layerModal': '#layer-modal-main',
- 'sourceMetadataCloseButton': '.source-metadata .metadata-more',
- 'layersModalCloseButton': '#layers-modal-close',
- 'aerosolOpticalDepth': '#legacy-all #layer-category-item-legacy-all-aerosol-optical-depth',
- 'backToCategories': '#category-breadcrumb a',
- 'headerForAOD': '#accordion-legacy-all-aerosol-optical-depth'
+ infoButton: '.wv-layers-info',
+ optionsButton: '.wv-layers-options',
+ infoDialog: '[aria-describedby="wv-layers-info-dialog"]',
+ optionsDialog: '[aria-describedby="wv-layers-options-dialog"]',
+ layersSearchField: 'input#layers-search-input',
+ layersAll: '#layers-all',
+ sourceInfoIcon: '.layers-all-layer .fa-info-circle',
+ layerHeader: '.layers-all-header',
+ addLayers: '#layers-add',
+ layerModal: '#layer-modal-main',
+ sourceMetadataCloseButton: '.source-metadata .metadata-more',
+ layersModalCloseButton: '.custom-layer-dialog .modal-header .close',
+ aerosolOpticalDepth:
+ '#legacy-all #layer-category-item-legacy-all-aerosol-optical-depth',
+ backToCategories: '#category-breadcrumb a',
+ headerForAOD: '#accordion-legacy-all-aerosol-optical-depth'
};