Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

added rotation and custom colormap anim-gif e2e tests #79

Benjaminfacd2e4712a8
diff --git a/e2e/tests/anim.gif.colormap.js b/e2e/tests/anim.gif.colormap.js
new file mode 100644
index 000000000..aa081ed01
--- /dev/null
+++ b/e2e/tests/anim.gif.colormap.js
@@ -0,0 +1,38 @@
+module.exports = {
+ 'Animation GIF when custom colormap is activated' : function (browser) {
+ browser
+ .url(browser.globals.url + '?p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,AIRS_CO_Total_Column_Day(palette=red_1),Reference_Labels(hidden),Reference_Features(hidden),Coastlines&t=2016-04-08&z=3&v=-223.875,-91.828125,162.84375,98.296875&ab=on&as=2016-03-25&ae=2016-04-08&av=3&al=false')
+ .pause(1000);
+ /*
+ * Should not show Tour
+ */
+ browser.expect.element('#skipTour').to.not.be.present;
+
+ /*
+ * check to see if animation widget
+ * is active after page load
+ */
+ browser.waitForElementVisible('#wv-animation-widget', 1000, function(el) {
+ // Click on GIF icon
+ browser.click('.fa-file-video-o.wv-animation-widget-icon');
+ // Wait for GIF selection to appear
+ browser.waitForElementVisible('.fa-download', 1000, function(el) {
+ // Initiate download
+ browser.click('.fa-download');
+ // wait for GIF to be created
+ browser.waitForElementVisible('.wv-dialog-ask', 1000, function(el) {
+ // Verify dialogue asking to revert colormap appears
+ browser.expect.element('.ui-dialog-buttonset button:nth-child(2)').to.be.present;
+ // Close GIF results
+ browser.click('.ui-dialog-buttonset button:nth-child(2)');
+ browser.waitForElementVisible('.gif-results-dialog-case', 10000, function(el) {
+ browser.expect.element('.gif-results-dialog').to.be.present;
+ browser.expect.element('.gif-results-dialog-case img').to.be.present;
+ });
+ });
+
+ });
+ });
+ browser.end();
+ }
+};
\ No newline at end of file
diff --git a/e2e/tests/anim.gif.rotated.js b/e2e/tests/anim.gif.rotated.js
new file mode 100644
index 000000000..5a12cd474
--- /dev/null
+++ b/e2e/tests/anim.gif.rotated.js
@@ -0,0 +1,35 @@
+module.exports = {
+ 'Animation GIF when rotated' : function (browser) {
+ browser
+ .url(browser.globals.url +'?p=arctic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,Reference_Labels(hidden),Reference_Features(hidden),Coastlines&t=2016-12-09&z=3&v=-11581865.476734415,-9127562.458195869,8128168.69159992,13797545.894980166&r=-54.0000&ab=on&as=2016-12-02&ae=2016-12-09&av=3&al=true')
+ .pause(1000);
+
+ browser.expect.element('#skipTour').to.not.be.present;
+
+ /*
+ * check to see if animation widget
+ * is active after page load
+ */
+ browser.waitForElementVisible('#wv-animation-widget', 1000, function(el) {
+ // Click on GIF icon
+ browser.click('.fa-file-video-o.wv-animation-widget-icon');
+ // Wait for GIF selection to appear
+ browser.waitForElementVisible('.fa-download', 1000, function(el) {
+ // Initiate download
+ browser.click('.fa-download');
+ // wait for GIF to be created
+ browser.waitForElementVisible('.wv-dialog-ask', 1000, function(el) {
+ // Verify dialogue asking to revert rotation appears
+ browser.expect.element('.ui-dialog-buttonset button:nth-child(2)').to.be.present;
+ // Close GIF results
+ browser.click('.ui-dialog-buttonset button:nth-child(2)');
+ browser.waitForElementVisible('.fa-download', 1000, function(el) {
+ // Varify that a reselection is possible
+ browser.expect.element('.fa-download').to.be.present;
+ });
+ });
+ });
+ });
+ browser.end();
+ }
+};
\ No newline at end of file
diff --git a/e2e/tests/anim.js b/e2e/tests/anim.js
index a5f158234..a1c1e4084 100644
--- a/e2e/tests/anim.js
+++ b/e2e/tests/anim.js
@@ -1,6 +1,5 @@
module.exports = {
'Animation tests' : function (browser) {
- var startDay, newDay;
browser
.url(browser.globals.url)
.pause(1000);