Interactive interface for browsing global, full-resolution satellite imagery
added anim-gif e2e tests
Benjamin6ec3922655c6
diff --git a/e2e/anim.gif.js b/e2e/anim.gif.jsnew file mode 100644index 000000000..3249c5b58--- /dev/null+++ b/e2e/anim.gif.js@@ -0,0 +1,48 @@+module.exports = {+ 'Animation GIF tests' : function (browser) {+ var startDay, newDay;+ browser+ .url('http://go.nasa.gov/2fEDNUd')+ .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('.wv-dl-gif-bt-case', 1000, function(el) {+ // Initiate download+ browser.click('.fa-download');+ // wait for GIF to be created+ browser.waitForElementVisible('.gif-results-dialog-case', 10000, function(el) {+ // Verify that GIF was created+ browser.expect.element('.gif-results-dialog').to.be.present;+ browser.expect.element('.gif-results-dialog-case img').to.be.present;+ browser.pause(1000);+ // Close GIF results+ browser.expect.element('.wv-gif-results button.ui-dialog-titlebar-close').to.be.visible;+ browser.click('.wv-gif-results button.ui-dialog-titlebar-close');+ // Verify that animation widget is visible again+ browser.waitForElementVisible('#wv-animation-widget', 3000, function(el) {+ browser.pause(1000);+ });+ });++ });+ });++ /*+ * Verify that timeline zoom is changed+ */+++ browser.end();+ }+};\ No newline at end of filediff --git a/web/js/animation/wv.anim.gif.js b/web/js/animation/wv.anim.gif.jsindex a850957a4..816c4c8ab 100644--- a/web/js/animation/wv.anim.gif.js+++ b/web/js/animation/wv.anim.gif.js@@ -508,7 +508,7 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {//Create a dialog over the view and place the image therevar $imgDialog = wv.ui.getDialog().append($dialogBodyCase).append($download);$imgDialog.dialog({- dialogClass: "wv-panel",+ dialogClass: "wv-panel wv-gif-results",title: "Your GIF",width: animCoords.w + 198,resizable: false,