Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add image download max value e2e test #1881

Benjamin Kingc476ae6033c9
diff --git a/e2e/features/image-download/initial-state-test.js b/e2e/features/image-download/initial-state-test.js
index 338db4471..a9e371e77 100644
--- a/e2e/features/image-download/initial-state-test.js
+++ b/e2e/features/image-download/initial-state-test.js
@@ -8,7 +8,7 @@ const {
const TIME_LIMIT = 10000;
module.exports = {
- before: function (client) {
+ before: function(client) {
loadAndSkipTour(client, TIME_LIMIT);
},
@@ -26,38 +26,29 @@ module.exports = {
'500m',
'1km',
'5km',
- '10km']
- .join('\n');
+ '10km'
+ ].join('\n');
c.expect.element('#wv-image-resolution').text.to.equal(expected);
},
'Check formats': function(c) {
- const expected = [
- 'JPEG',
- 'PNG',
- 'GeoTIFF',
- 'KMZ']
- .join('\n');
+ const expected = ['JPEG', 'PNG', 'GeoTIFF', 'KMZ'].join('\n');
c.expect.element('#wv-image-format').text.to.equal(expected);
},
'Check worldfile option': function(c) {
- const expected = [
- 'No',
- 'Yes'
- ].join('\n');
+ const expected = ['No', 'Yes'].join('\n');
c.expect.element('#wv-image-worldfile').text.to.equal(expected);
},
-
+ 'Check max size': function(c) {
+ const expected = '8200px x 8200px';
+ c.expect.element('.wv-image-max-size').text.to.equal(expected);
+ },
'Check arctic formats': function(c) {
closeImageDownloadPanel(c);
switchProjection(c, 'arctic');
openImageDownloadPanel(c);
- const expected = [
- 'JPEG',
- 'PNG',
- 'GeoTIFF']
- .join('\n');
+ const expected = ['JPEG', 'PNG', 'GeoTIFF'].join('\n');
c.expect.element('#wv-image-format').text.to.equal(expected);
},
@@ -65,11 +56,7 @@ module.exports = {
closeImageDownloadPanel(c);
switchProjection(c, 'antarctic');
openImageDownloadPanel(c);
- const expected = [
- 'JPEG',
- 'PNG',
- 'GeoTIFF']
- .join('\n');
+ const expected = ['JPEG', 'PNG', 'GeoTIFF'].join('\n');
c.expect.element('#wv-image-format').text.to.equal(expected);
closeImageDownloadPanel(c);
}