Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix e2e tests SIT - WIP

Edward Plato859d9acf595e
diff --git a/e2e/features/compare/layer-dialog-test.js b/e2e/features/compare/layer-dialog-test.js
index c586248e8..ccf368b99 100644
--- a/e2e/features/compare/layer-dialog-test.js
+++ b/e2e/features/compare/layer-dialog-test.js
@@ -141,10 +141,10 @@ module.exports = {
);
},
'Layer info dialog works after clicking into B mode': function(client) {
- client
- .click(correctedReflectanceOptionsPanelHeader + ' .close')
- .pause(1000);
+ client.click(correctedReflectanceOptionsPanelHeader + ' .close');
+ client.waitForElementNotPresent('#layer_options_modal-modis_terra_correctedreflectance_truecolor .modal-header', TIME_LIMIT);
client.click(correctedReflectanceBLayer + ' .wv-layers-info');
+ client.pause(500);
client.waitForElementVisible(
correctedReflectanceInfoPanel + ' .layer-metadata',
TIME_LIMIT,
diff --git a/e2e/features/compare/layer-picker-test.js b/e2e/features/compare/layer-picker-test.js
index 3e4814c4f..386654406 100644
--- a/e2e/features/compare/layer-picker-test.js
+++ b/e2e/features/compare/layer-picker-test.js
@@ -5,6 +5,7 @@ const aodCombinedValueId = 'MODIS_Combined_Value_Added_AOD';
const aodCheckBox =
'#checkbox-case-MODIS_Combined_Value_Added_AOD .wv-checkbox';
const aodIndexCheckbox = '#checkbox-case-OMI_Aerosol_Index .wv-checkbox';
+const TIME_LIMIT = 10000;
module.exports = {
before: function(client) {
@@ -34,6 +35,8 @@ module.exports = {
);
}
);
+ client.waitForElementNotPresent('#layer_picker_component', TIME_LIMIT);
+ client.pause(250);
},
'Toggle compare mode to Active state B': function(client) {
client.click(selectors.bTab + ' .productsIcon');
diff --git a/e2e/features/image-download/formats-test.js b/e2e/features/image-download/formats-test.js
index 4b920f402..008037ee2 100644
--- a/e2e/features/image-download/formats-test.js
+++ b/e2e/features/image-download/formats-test.js
@@ -58,7 +58,7 @@ module.exports = {
closeImageDownloadPanel(c);
},
- 'Swtich to arctic, is PNG': function(c) {
+ 'Switch to arctic, is PNG': function(c) {
switchProjection(c, 'arctic');
openImageDownloadPanel(c);
clickDownload(c);
diff --git a/e2e/reuseables/image-download.js b/e2e/reuseables/image-download.js
index bb59c7e9c..a883ac642 100644
--- a/e2e/reuseables/image-download.js
+++ b/e2e/reuseables/image-download.js
@@ -2,8 +2,8 @@ const TIME_LIMIT = 10000;
module.exports = {
openImageDownloadPanel: function(c) {
- c.click('#wv-image-button');
c.waitForElementVisible('#wv-image-button', TIME_LIMIT);
+ c.click('#wv-image-button');
c.pause(250);
},