Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add hierarchy to group tests

Josiah Spragueaa71b9622db7
diff --git a/e2e/create-report.js b/e2e/create-report.js
index 3e9f1f02f..37f35d35c 100644
--- a/e2e/create-report.js
+++ b/e2e/create-report.js
@@ -4,7 +4,7 @@ var Browser = browser.charAt(0).toUpperCase() + browser.substring(1);
reporter.generate({
name: 'Worldview Tests: ' + Browser,
- theme: 'bootstrap',
+ theme: 'hierarchy',
jsonFile: 'e2e/reports/cucumber-'+ browser +'.json',
output: 'e2e/reports/cucumber-'+ browser +'.html',
reportSuiteAsScenarios: true,
diff --git a/e2e/features/animations.feature b/e2e/features/animations/animations.feature
similarity index 90%
rename from e2e/features/animations.feature
rename to e2e/features/animations/animations.feature
index 24cc78ee8..e26ef0d0d 100644
--- a/e2e/features/animations.feature
+++ b/e2e/features/animations/animations.feature
@@ -1,5 +1,5 @@
-Feature: Animations
- Animating the map date
+Feature: Animation Widget
+ The widget that controls animation mode
Background:
Given Worldview is in "initial" state
diff --git a/e2e/features/animations.gif.feature b/e2e/features/animations/animations.gif.feature
similarity index 100%
rename from e2e/features/animations.gif.feature
rename to e2e/features/animations/animations.gif.feature
diff --git a/e2e/features/events.feature b/e2e/features/events/events.feature
similarity index 86%
rename from e2e/features/events.feature
rename to e2e/features/events/events.feature
index eb9f68898..a106a034d 100644
--- a/e2e/features/events.feature
+++ b/e2e/features/events/events.feature
@@ -10,7 +10,7 @@ Background:
Scenario: Selecting Events Tab
When I click the "events" tab
- Then the tab should have a list of events
+ Then I should see the "list of events" within 3 seconds
And I should see "Fire"
And I should see "Iceberg"
And I should see "Hurricane"
diff --git a/e2e/features/layers.feature b/e2e/features/layers/layers.feature
similarity index 100%
rename from e2e/features/layers.feature
rename to e2e/features/layers/layers.feature
diff --git a/e2e/features/runningdata.feature b/e2e/features/layers/runningdata.feature
similarity index 100%
rename from e2e/features/runningdata.feature
rename to e2e/features/layers/runningdata.feature
diff --git a/e2e/features/tour.feature b/e2e/features/tour/tour.feature
similarity index 100%
rename from e2e/features/tour.feature
rename to e2e/features/tour/tour.feature
diff --git a/e2e/globals.js b/e2e/globals.js
index 734b023e6..b5d150045 100644
--- a/e2e/globals.js
+++ b/e2e/globals.js
@@ -23,7 +23,8 @@ module.exports = {
'create GIF button': '.fa-file-video-o.wv-animation-widget-icon',
'GIF download icon': '.jcrop-holder .fa-download',
'GIF results': '.gif-results-dialog-case img',
- 'GIF results close button': '.wv-gif-results button.ui-dialog-titlebar-close'
+ 'GIF results close button': '.wv-gif-results button.ui-dialog-titlebar-close',
+ 'list of events': '#wv-events ul.map-item-list'
},
delay: 3000 // Acceptable delay in ms between performing actions and seeing results
};
diff --git a/e2e/step_definitions/events.js b/e2e/step_definitions/events.js
deleted file mode 100644
index 6d3e43d52..000000000
--- a/e2e/step_definitions/events.js
+++ /dev/null
@@ -1,12 +0,0 @@
-const {client} = require('nightwatch-cucumber');
-const {defineSupportCode} = require('cucumber');
-const delay = client.globals.delay;
-
-defineSupportCode(({Given, Then, When}) => {
-
- Then('the tab should have a list of events', function () {
- return client.useCss()
- .waitForElementVisible('#wv-events ul.map-item-list', delay);
- });
-
-});