Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Rewrite animation tests #930

Benjamin King420b757dfdc6
diff --git a/e2e/features/animations/animation-test.js b/e2e/features/animations/animation-test.js
index 52e4a2838..ab144eb3d 100644
--- a/e2e/features/animations/animation-test.js
+++ b/e2e/features/animations/animation-test.js
@@ -24,7 +24,7 @@ module.exports = {
// Test Permalink opens widget
client.waitForElementVisible('#day-animation-widget-start', TIME_LIMIT, function(el) {
client.getValue('#day-animation-widget-start', function(result) {
- const startDay = result.value;
+ startDay = result.value;
client.useCss()
.moveToElement('#wv-timeline-range-selector > g:nth-child(2) > rect', 1, 1)
.mouseButtonDown(0)
@@ -32,7 +32,7 @@ module.exports = {
.mouseButtonUp(0)
.pause(2000);
client.getValue('#day-animation-widget-start', function(result) {
- const newDay = result.value;
+ newDay = result.value;
this.assert.notEqual(startDay, newDay);
});
});
@@ -50,7 +50,7 @@ module.exports = {
.moveToElement(globalSelectors.resolutionTooltip, 1, 1)
.click(globalSelectors.yearlyResolutionTooltip);
client.pause(1000);
- client.expect.element(globalSelectors.timelineSetToYears).to.be.present;
+ client.expect.element(globalSelectors.timelineSetToYears).to.be.present;
});
},
after: function(client) {
diff --git a/e2e/features/animations/animations.gif.feature b/e2e/features/animations/animations.gif.feature
deleted file mode 100644
index d867052b9..000000000
--- a/e2e/features/animations/animations.gif.feature
+++ /dev/null
@@ -1,43 +0,0 @@
-Feature: Animation GIF Downloads
- Choose resolution of imagery and Download GIFs
-
-Scenario: Downloading GIF when custom colormap is activated
- Given Worldview is in "animation with custom colormap active" state
- Then I see the "animation widget"
- When I click the "create GIF button"
- And I click the "GIF download icon"
- Then I see "Would you like to temporarily revert"
- When I click "OK"
- Then I see the "GIF results" within 10 seconds
- When I click the "GIF results close button"
- Then the page doesn't have the "GIF results"
- And I see the "animation widget"
-
-Scenario: Downloading GIF when polar projection is rotated
- Given Worldview is in "animation with polar projection rotated" state
- Then I see the "animation widget"
- When I click the "create GIF button"
- And I click the "GIF download icon"
- Then I see "Would you like to reset rotation"
- When I click "OK"
- And I click the "GIF download icon"
- Then I see the "GIF results" within 10 seconds
- When I click the "GIF results close button"
- Then the page doesn't have the "GIF results"
-
-Scenario: GIF selection preview is Accurate and selections that are too high disable GIF download
- Given Worldview is in "animation widget active" state
- Then I see the "animation widget"
- When I click the "create GIF button"
- And I wait 1 seconds
- Then I see '2018-03-28' in the 'GIF preview start date value'
- Then I see '2018-04-04' in the 'GIF preview end date value'
- Then I see '3 Frames Per Second' in the 'GIF preview frame rate value'
- Then I see a value of '40' in the 'GIF preview resolution selector'
- Then I see 'GIF preview checkbox' is checked
- Then I click the 'GIF preview resolution option 250m'
- And I wait 1 seconds
- Then I see a value of '1' in the 'GIF preview resolution selector'
- Then I see 'GIF download icon' has style property 'color' equal to 'rgba(0, 0, 0, 0)'
- Then I see 'GIF download button' is disabled
-
diff --git a/e2e/features/animations/gif-test.js b/e2e/features/animations/gif-test.js
index 609de6fe5..e89de3360 100644
--- a/e2e/features/animations/gif-test.js
+++ b/e2e/features/animations/gif-test.js
@@ -10,7 +10,7 @@ module.exports = {
reuseables.loadAndSkipTour(client, TIME_LIMIT);
},
'Downloading GIF when custom colormap is activated': function(client) {
- if (client.options.desiredCapabilities.browser !== 'ie') { // Custom colormaps down exist in IE
+ if (client.options.desiredCapabilities.browser!== 'ie') { // Custom colormaps down exist in IE
client.url(client.globals.url + localQuerystrings.activeCustomColormap);
client.waitForElementVisible(localSelectors.animationWidget, TIME_LIMIT, function() {
client.click(localSelectors.createGifIcon)
diff --git a/e2e/features/animations/querystrings.js b/e2e/features/animations/querystrings.js
index 53d31f670..b9ee77e33 100644
--- a/e2e/features/animations/querystrings.js
+++ b/e2e/features/animations/querystrings.js
@@ -1,5 +1,5 @@
module.exports = {
activeAnimationWidget: '?p=geographic&l=VIIRS_SNPP_CorrectedReflectance_TrueColor(hidden),MODIS_Aqua_CorrectedReflectance_TrueColor(hidden),MODIS_Terra_CorrectedReflectance_TrueColor,Reference_Labels(hidden),Reference_Features(hidden),Coastlines&t=2018-04-04&z=3&v=-177.94712426144758,-46.546875,-5.14662573855243,53.015625&ab=on&as=2018-03-28&ae=2018-04-04&av=3&al=false',
- activeCustomColormap: '?p=geographic&l=AIRS_CO_Total_Column_Day(palette=red_1)&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',
+ activeCustomColormap: '?p=geographic&l=AIRS_CO_Total_Column_Day(palette=red_1)&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=MODIS_Terra_CorrectedReflectance_TrueColor,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',
animationProjectionRotated: '?p=arctic&l=MODIS_Terra_CorrectedReflectance_TrueColor,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'
};