Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Added files to test the layer search / layer source descriptions

ZachTRiceb0a07aef23fd
diff --git a/e2e/tests/layer-descriptions/search.js b/e2e/tests/layer-descriptions/search.js
new file mode 100644
index 000000000..10915e17a
--- /dev/null
+++ b/e2e/tests/layer-descriptions/search.js
@@ -0,0 +1,14 @@
+module.exports = {
+ 'Layer Descriptions - Layer search ("Add Layers" Search: "Corrected Reflectance (True Color)"' : function (browser) {
+ browser
+ .url(browser.globals.url)
+ .pause(1000);
+ browser.waitForElementVisible('#skipTour', 10000, function (el) {
+ browser.click('#skipTour');
+
+ // Check the 'Add Layers' search layer for a description
+
+ });
+ browser.end();
+ }
+};
diff --git a/e2e/tests/layer-descriptions/sidebar.js b/e2e/tests/layer-descriptions/sidebar.js
index a05133692..00efbe230 100644
--- a/e2e/tests/layer-descriptions/sidebar.js
+++ b/e2e/tests/layer-descriptions/sidebar.js
@@ -6,8 +6,7 @@ module.exports = {
browser.waitForElementVisible('#skipTour', 10000, function (el) {
browser.click('#skipTour');
/*
- * check to see if info dialog widget is present
- * after info icon is clicked
+ * Check to see if info dialog widget is present after info icon is clicked
*/
browser.expect.element('#overlays li:first-child .wv-layers-info').to.be.present;
@@ -21,11 +20,8 @@ module.exports = {
browser.expect.element('.ui-widget-content #wv-layers-info-dialog').to.be.present;
/*
- * check to see if info dialog widget is closed
- * after options icon is clicked
- *
- * check ton see if options dialog widget is present
- * after options icon is clicked
+ * Check to see if info dialog widget is closedafter options icon is clicked
+ * Check ton see if options dialog widget is present after options icon is clicked
*/
browser.click('#overlays li:first-child .wv-layers-options').pause(1000);
browser.expect.element('.ui-widget-content #wv-layers-info-dialog').to.not.be.present;
diff --git a/e2e/tests/layer-descriptions/source.js b/e2e/tests/layer-descriptions/source.js
new file mode 100644
index 000000000..3f514dfce
--- /dev/null
+++ b/e2e/tests/layer-descriptions/source.js
@@ -0,0 +1,15 @@
+module.exports = {
+ 'Layer Descriptions - Measurment source ("Add Layers" Categories / All / Aerosol Optical Depth / Terra/MODIS)' : function (browser) {
+ browser
+ .url(browser.globals.url)
+ .pause(1000);
+ browser.waitForElementVisible('#skipTour', 10000, function (el) {
+ browser.click('#skipTour');
+
+ // Check the 'Add Layers' Categories / All / Aerosol Optical Depth / Terra/MODIS
+ // for the presence of a description box.
+
+ });
+ browser.end();
+ }
+};