Interactive interface for browsing global, full-resolution satellite imagery
Remove the word "should" from steps
Josiah Sprague393d8acdc1d4
diff --git a/e2e/features/animations/animations.feature b/e2e/features/animations/animations.featureindex e26ef0d0d..57bfe2b9b 100644--- a/e2e/features/animations/animations.feature+++ b/e2e/features/animations/animations.feature@@ -6,9 +6,9 @@ Background:And I click "Skip Tour"Scenario: Toggling animation mode- Then I should not see the "animation widget"+ Then I don't see the "animation widget"When I click the "animation button"- Then I should see the "animation widget"+ Then I see the "animation widget"@hoverScenario: Changing date range of animation@@ -21,4 +21,4 @@ Scenario: Changing animation time resolutionAnd I scroll to the "animation resolution tooltip"And I click the "yearly resolution tooltip"And I wait 1 seconds- Then the page should have the "timeline set to years"+ Then the page has the "timeline set to years"diff --git a/e2e/features/animations/animations.gif.feature b/e2e/features/animations/animations.gif.featureindex 2ca176aba..a7c01fb94 100644--- a/e2e/features/animations/animations.gif.feature+++ b/e2e/features/animations/animations.gif.feature@@ -3,24 +3,24 @@ Feature: Animation GIF DownloadsScenario: Downloading GIF when custom colormap is activatedGiven Worldview is in "animation with custom colormap active" state- Then I should see the "animation widget"+ Then I 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"+ Then I see "Would you like to temporarily revert"When I click "OK"- Then I should see the "GIF results" within 6 seconds+ Then I see the "GIF results" within 6 secondsWhen I click the "GIF results close button"- Then the page should not have the "GIF results"- And I should see the "animation widget"+ Then the page doesn't have the "GIF results"+ And I see the "animation widget"Scenario: Downloading GIF when polar projection is rotatedGiven Worldview is in "animation with polar projection rotated" state- Then I should see the "animation widget"+ Then I 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"+ Then I 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+ Then I see the "GIF results" within 6 secondsWhen I click the "GIF results close button"- Then the page should not have the "GIF results"+ Then the page doesn't have the "GIF results"diff --git a/e2e/features/layers/layers.feature b/e2e/features/layers/layers.featureindex 49a97d491..9e6376fb9 100644--- a/e2e/features/layers/layers.feature+++ b/e2e/features/layers/layers.feature@@ -8,37 +8,37 @@ Background:Scenario: Getting Layer InfoWhen I click the "info button"- Then I should see the "info dialog"+ Then I see the "info dialog"When I click the "info button"- Then the page should not have the "info dialog"+ Then the page doesn't have the "info dialog"When I click the "info button"- Then I should see the "info dialog"+ Then I see the "info dialog"Scenario: Changing Layer OptionsWhen I click the "options button"- Then the page should not have the "info dialog"- Then I should see the "options dialog"+ Then the page doesn't have the "info dialog"+ Then I see the "options dialog"Scenario: Adding Layers and Layer SearchWhen I click "Add Layers"And I input "Corrected Reflectance (True Color)" in the "layers search field"- Then I should see "Corrected Reflectance (True Color)"- And I should see "Suomi NPP / VIIRS"+ Then I see "Corrected Reflectance (True Color)"+ And I see "Suomi NPP / VIIRS"When I click the "source info icon"- Then I should see "VIIRS Corrected Reflectance"+ Then I see "VIIRS Corrected Reflectance"When I click the "source info icon"- Then I should not see "VIIRS Corrected Reflectance"+ Then I don't see "VIIRS Corrected Reflectance"When I click the "source info icon"- Then I should see "VIIRS Corrected Reflectance"+ Then I see "VIIRS Corrected Reflectance"When I scroll to the "source metadata close button"And I click the "source metadata close button"- Then I should not see "VIIRS Corrected Reflectance"+ Then I don't see "VIIRS Corrected Reflectance"Scenario: Browsing Layers by CategoryWhen I click "Add Layers"And I click "Aerosol Optical Depth"And I click the "Aqua and Terra/MODIS" link- Then I should see "MODIS (Terra and Aqua) Combined Value-Added Aerosol Optical Depth"+ Then I see "MODIS (Terra and Aqua) Combined Value-Added Aerosol Optical Depth"diff --git a/e2e/features/layers/runningdata.feature b/e2e/features/layers/runningdata.featureindex 4b0f26dd8..16d94133b 100644--- a/e2e/features/layers/runningdata.feature+++ b/e2e/features/layers/runningdata.feature@@ -5,8 +5,8 @@ Feature: Running DataScenario Outline: Running data on continuous layersGiven Worldview production has been loadedAnd Worldview is in "continuous data layers" state- Then label should say "260.9 – 261.5 K" when hovering on colorbar- And label should say "<value>" when hovering at <coordinates>+ Then label says "260.9 – 261.5 K" when hovering on colorbar+ And label says "<value>" when hovering at <coordinates>Examples:| coordinates | value |@@ -17,5 +17,5 @@ Scenario Outline: Running data on continuous layersScenario: Running data on multiple data layersGiven Worldview production has been loadedAnd Worldview is in "multiple data layers" state- Then label should say "0.215 – 0.220" when hovering at 320,320- And label should say "0.380 – 0.385" when hovering on colorbar+ Then label says "0.215 – 0.220" when hovering at 320,320+ And label says "0.380 – 0.385" when hovering on colorbardiff --git a/e2e/features/tour/tour.feature b/e2e/features/tour/tour.featureindex 9e59669b0..194976dd4 100644--- a/e2e/features/tour/tour.feature+++ b/e2e/features/tour/tour.feature@@ -5,8 +5,8 @@ Feature: TourBackground:Given Worldview is in "initial" state- Then I should see "Take Tour"+ Then I see "Take Tour"Scenario: Skipping TourWhen I click "Skip Tour"- Then I should not see "Take Tour"+ Then I don't see "Take Tour"diff --git a/e2e/step_definitions/runningdata.js b/e2e/step_definitions/runningdata.jsindex bf84373bf..b9884a97d 100644--- a/e2e/step_definitions/runningdata.js+++ b/e2e/step_definitions/runningdata.js@@ -4,7 +4,7 @@ const delay = client.globals.delay;defineSupportCode(({Given, Then, When}) => {- Then('label should say {string} when hovering at {int},{int}', (label, x, y) => {+ 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) {@@ -14,7 +14,7 @@ defineSupportCode(({Given, Then, When}) => {});- Then('label should say {string} when hovering on colorbar', (label) => {+ Then('label says {string} when hovering on colorbar', (label) => {return client.getElementSize(".wv-palette .wv-palettes-colorbar", function(result) {width = result.value.width;height = result.value.height;diff --git a/e2e/step_definitions/utility.js b/e2e/step_definitions/utility.jsindex e030f254b..e03a4a73e 100644--- a/e2e/step_definitions/utility.js+++ b/e2e/step_definitions/utility.js@@ -50,37 +50,37 @@ defineSupportCode(({Given, Then, When}) => {});// Check for a string- Then('I should see {string}', (text) => {+ Then('I see {string}', (text) => {return client.useCss().assert.containsText('body', text);});// Check for a string- Then('I should not see {string}', (text) => {+ Then('I don\'t see {string}', (text) => {return client.useCss().expect.element('body').text.not.contains(text);});// Check that an element is visible by predefined selector- Then('I should see the {string}', (key) => {+ Then('I see the {string}', (key) => {return client.useCss().expect.element(selectors[key]||key).to.be.visible;});// Wait for an element to be visible- Then('I should see the {string} within {int} seconds', (key, seconds) => {+ Then('I see the {string} within {int} seconds', (key, seconds) => {return client.useCss().expect.element(selectors[key]||key).to.be.visible.before(seconds*1000);});// Check for an element by predefined selector- Then('the page should have the {string}', (key) => {+ Then('the page has the {string}', (key) => {return client.useCss().expect.element(selectors[key]||key).to.be.present;});// Check for abscense of an element by predefined selector- Then('the page should not have the {string}', (key) => {+ Then('the page doesn\'t have the {string}', (key) => {return client.useCss().expect.element(selectors[key]||key).to.not.be.present;});// Check that an element is hidden- Then('I should not see the {string}', (key) => {+ Then('I don\'t see the {string}', (key) => {return client.useCss().expect.element(selectors[key]||key).to.not.be.visible;});