Skip to content

Commit

Permalink
Added test for surfrad maps
Browse files Browse the repository at this point in the history
  • Loading branch information
mollybsmith-noaa committed Oct 22, 2024
1 parent 9da86df commit 621ccb6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions tests/src/features/surfrad/basic/addRemoveMap.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Feature: Add Remove Map

As an unauthenticated user to the app,
with the app in its default state,
I want to add one curve
then plot that curve and see the graph,
then go back to the curve management page,
then delete that curve.

Background:
Given I load the app "/surfrad"
Then I expect the app title to be "Surface Radiation"

@watch
Scenario: addRemoveCurve
When I set the plot type to "Map"
Then the plot type should be "Map"
When I change the "data-source" parameter to "HRRR_OPS"
Then the "data-source" parameter value matches "HRRR_OPS"
When I set the dates to "09/21/2019 00:00 - 09/24/2019 00:00"
Then the dates value is "09/21/2019 00:00 - 09/24/2019 00:00"
Then I click the "Add Curve" button
Then "Curve0" is added
And I should see a list of curves containing "Curve0"

When I click the "Plot Unmatched" button
Then I should be on the graph page
And I should have a "Time Series" plot

When I click the "Back" button
Then I should be on the main page
And the "Plot Unmatched" button should be visible

Then I click the "Remove Curve0" button
And the "Remove curve Curve0" button should be visible
Then I click the "Remove curve Curve0" button
Then I should have 0 curves

0 comments on commit 621ccb6

Please sign in to comment.