Interactive interface for browsing global, full-resolution satellite imagery
Convert animation GIF tests to Cucumber
Josiah Sprague30fc3e06ac1a
diff --git a/e2e/features/animations.gif.colormap.feature b/e2e/features/animations.gif.colormap.featuredeleted file mode 100644index f15293538..000000000--- a/e2e/features/animations.gif.colormap.feature+++ /dev/null@@ -1,14 +0,0 @@-Feature: Animation GIF Downloads- Download GIFs--Scenario: Downloading GIF when custom colormap is activated- Given Worldview is in "custom colormap active" state- Then I should see the "animation widget"- When I click the "create GIF button"- And I click the "GIF download icon"- Then I should see "Would you like to temporarily revert"- When I click "OK"- Then I should see the "GIF results" within 6 seconds- When I click the "GIF results close button"- Then the page should not have the "GIF results"- And I should see the "animation widget"diff --git a/e2e/features/animations.gif.feature b/e2e/features/animations.gif.featurenew file mode 100644index 000000000..2ca176aba--- /dev/null+++ b/e2e/features/animations.gif.feature@@ -0,0 +1,26 @@+Feature: Animation GIF Downloads+ Download GIFs++Scenario: Downloading GIF when custom colormap is activated+ Given Worldview is in "animation with custom colormap active" state+ Then I should see the "animation widget"+ When I click the "create GIF button"+ And I click the "GIF download icon"+ Then I should see "Would you like to temporarily revert"+ When I click "OK"+ Then I should see the "GIF results" within 6 seconds+ When I click the "GIF results close button"+ Then the page should not have the "GIF results"+ And I should see the "animation widget"++Scenario: Downloading GIF when polar projection is rotated+ Given Worldview is in "animation with polar projection rotated" state+ Then I should see the "animation widget"+ When I click the "create GIF button"+ And I click the "GIF download icon"+ Then I should see "Would you like to reset rotation"+ When I click "OK"+ And I click the "GIF download icon"+ Then I should see the "GIF results" within 6 seconds+ When I click the "GIF results close button"+ Then the page should not have the "GIF results"diff --git a/e2e/globals.js b/e2e/globals.jsindex 291dc4e2d..2b66756d4 100644--- a/e2e/globals.js+++ b/e2e/globals.js@@ -1,7 +1,8 @@module.exports = {url: 'http://localhost:3000/',querystrings: {- 'custom colormap active': '?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'+ 'animation with custom colormap active': '?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',+ 'animation with polar projection rotated': '?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=-2764195.2298414493,-88762.12734933128,2589496.903095221,3893331.478195751&r=-18.0000&ab=on&as=2016-12-02&ae=2016-12-09&av=3&al=true'},selectors: {'info button': '.wv-layers-info',diff --git a/e2e/tests/anim/anim.gif.rotated.js b/e2e/tests/anim/anim.gif.rotated.jsdeleted file mode 100644index a487bf8a8..000000000--- a/e2e/tests/anim/anim.gif.rotated.js+++ /dev/null@@ -1,35 +0,0 @@-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();- }-};