Skip to content

Commit

Permalink
Added cb-metar Map test
Browse files Browse the repository at this point in the history
  • Loading branch information
mollybsmith-noaa committed Oct 11, 2023
1 parent 9cae305 commit 792893b
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions tests/src/features/cb-metar/basic/addRemoveMap.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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 "/cb-metar"
Then I expect the app title to be "METAR"

@watch
Scenario: addRemoveMap
When I set the plot type to "Map"
Then the plot type should be "Map"
When I change the "variable" parameter to "Ceiling"
Then the "variable" parameter value matches "Ceiling"
When I change the "data-source" parameter to "HRRR_OPS"
Then the "data-source" parameter value matches "HRRR_OPS"
When I change the "sites" parameter to "KDEN"
Then the "sites" parameter value matches "KDEN"
When I set the dates to "08/09/2022 00:00 - 08/12/2022 00:00"
Then the dates value is "08/09/2022 00:00 - 08/12/2022 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 "Map" 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 792893b

Please sign in to comment.