Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Improve tests

Josiah Spraguef93e88af8275
diff --git a/e2e/features/animations/animations.feature b/e2e/features/animations/animations.feature
index 57bfe2b9b..6782075ef 100644
--- a/e2e/features/animations/animations.feature
+++ b/e2e/features/animations/animations.feature
@@ -10,12 +10,12 @@ Scenario: Toggling animation mode
When I click the "animation button"
Then I see the "animation widget"
-@hover
+@wip
Scenario: Changing date range of animation
When I click the "animation button"
Then the animation range selector works
-@hover
+@wip
Scenario: Changing animation time resolution
When I click the "animation button"
And I scroll to the "animation resolution tooltip"
diff --git a/e2e/features/events/events.feature b/e2e/features/events/events.feature
index 7a52a72c0..17b854e71 100644
--- a/e2e/features/events/events.feature
+++ b/e2e/features/events/events.feature
@@ -8,10 +8,6 @@ Scenario: Selecting Events Tab
And I click "Skip Tour"
And I click the "events" tab
Then I see the "list of events" within 3 seconds
- And I see "Fire"
- And I see "Iceberg"
- And I see "Hurricane"
- And I see "Volcano"
And the page has at least 50 "map markers"
Scenario: Selecting an Event from the List
@@ -51,8 +47,4 @@ Scenario: Selecting an Event from the List
Scenario: Permalink with events tab
Given Worldview is in "events tab active" state
Then I see the "list of events" within 3 seconds
- And I see "Fire"
- And I see "Iceberg"
- And I see "Hurricane"
- And I see "Volcano"
And the page has at least 50 "map markers"
diff --git a/e2e/features/layers/runningdata.feature b/e2e/features/layers/runningdata.feature
index 16d94133b..1cce465c6 100644
--- a/e2e/features/layers/runningdata.feature
+++ b/e2e/features/layers/runningdata.feature
@@ -1,21 +1,14 @@
Feature: Running Data
When I hover over a data layer, I should see the values I'm hovering over displayed in the layers tab
-@hover
-Scenario Outline: Running data on continuous layers
- Given Worldview production has been loaded
- And Worldview is in "continuous data layers" state
- Then label says "260.9 – 261.5 K" when hovering on colorbar
- And label says "<value>" when hovering at <coordinates>
+@wip
+Scenario: Running data on continuous layers
+ Given Worldview is in "continuous data layers" state
+ Then label says "270.9 – 271.6 K" when mouse is in the center
+ And label says "260.9 – 261.5 K" when hovering on colorbar
- Examples:
- | coordinates | value |
- | 320,320 | 267.2 – 267.8 K |
- | 400,400 | 271.6 – 272.2 K |
-
-@hover
+@wip
Scenario: Running data on multiple data layers
- Given Worldview production has been loaded
- And Worldview is in "multiple data layers" state
- Then label says "0.215 – 0.220" when hovering at 320,320
+ Given Worldview is in "multiple data layers" state
+ Then label says "0.070 – 0.075" when mouse is in the center
And label says "0.380 – 0.385" when hovering on colorbar
diff --git a/e2e/globals.js b/e2e/globals.js
index 3f9f74969..7fcda480d 100644
--- a/e2e/globals.js
+++ b/e2e/globals.js
@@ -2,9 +2,9 @@ module.exports = {
url: 'http://localhost:3000/',
production: 'https://worldview.earthdata.nasa.gov/',
querystrings: {
- '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',
- 'continuous data layers': '?p=geographic&l=MODIS_Terra_Brightness_Temp_Band31_Day,Coastlines(hidden)&t=2015-05-25&z=2&v=-42.148380855752734,42.13121723408824,22.122734950093943,85.16225953076464',
+ 'animation with custom colormap active': '?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',
+ 'continuous data layers': '?p=geographic&l=MODIS_Terra_Brightness_Temp_Band31_Day&t=2015-05-25&z=2&v=-42.148380855752734,42.13121723408824,22.122734950093943,85.16225953076464',
'multiple data layers':'?p=geographic&l=MODIS_Terra_Aerosol,MODIS_Terra_Brightness_Temp_Band31_Day&t=2017-03-22&z=3&v=136.07019188386334,14.722152527011556,155.59817576644127,24.312819167567586',
'events tab active':'?e=true'
},
diff --git a/e2e/step_definitions/runningdata.js b/e2e/step_definitions/runningdata.js
index 437223d40..bf79bf221 100644
--- a/e2e/step_definitions/runningdata.js
+++ b/e2e/step_definitions/runningdata.js
@@ -3,14 +3,16 @@ const {defineSupportCode} = require('cucumber');
defineSupportCode(({Then}) => {
- Then('label says {string} when hovering at {int},{int}', (label, x, y) => {
-
- return client.useCss().moveToElement('.ol-viewport', x, y, ()=>{
- client.getText('.wv-running-label', function(result) {
- this.assert.equal(result.value, label);
+ Then('label says {string} when mouse is in the center', (label) => {
+ return client.getElementSize('#wv-map-geographic .ol-viewport', (size)=>{
+ var x = size.value.width/2;
+ var y = size.value.height/2;
+ return client.useCss().moveToElement('.ol-viewport', x, y, ()=>{
+ return client.getText('.wv-running-label', function(text) {
+ this.assert.equal(text.value, label);
+ });
});
});
-
});
Then('label says {string} when hovering on colorbar', (label) => {
diff --git a/e2e/step_definitions/utility.js b/e2e/step_definitions/utility.js
index 416848a6c..21b8ed08f 100644
--- a/e2e/step_definitions/utility.js
+++ b/e2e/step_definitions/utility.js
@@ -5,9 +5,6 @@ const selectors = client.globals.selectors;
const querystrings = client.globals.querystrings;
defineSupportCode(({Given, Then, When}) => {
- Given('Worldview production has been loaded', () => {
- return client.url(client.globals.production).waitForElementVisible('body', delay);
- });
Given('Worldview is in {string} state', (state) => {
var stateUrl = client.globals.url + (querystrings[state]||'');
diff --git a/package.json b/package.json
index fefe6bdb7..ad3e110ef 100644
--- a/package.json
+++ b/package.json
@@ -17,9 +17,9 @@
"start": "node ./bin/www",
"test": "grunt test lint",
"e2e": "run-s --print-name --continue-on-error --silent e2e:*",
- "e2e:chrome": "nightwatch -e chrome --skiptags hover",
- "e2e:firefox": "nightwatch -e firefox --skiptags hover",
- "browserstack": "node e2e/browserstack.js -c e2e/browserstack.conf.js -e browserstack",
+ "e2e:chrome": "nightwatch -e chrome",
+ "e2e:firefox": "nightwatch -e firefox --skiptags wip",
+ "browserstack": "node e2e/browserstack.js -c e2e/browserstack.conf.js -e browserstack --skiptags wip",
"report": "node e2e/create-report.js"
},
"devDependencies": {