-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2338aa3
commit e633d14
Showing
19 changed files
with
180 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
tests/src/features/surfrad/basic/addRemoveDieOffCurve.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Feature: Add Remove Dieoff Curve | ||
|
||
As an unauthenticated user to the app, | ||
with the app in its default state, | ||
I want click the dieoff radio button, | ||
I want to set the forecast-length selector to dieoff | ||
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: addRemoveDieoffCurve | ||
When I set the plot type to "Dieoff" | ||
Then the plot type should be "Dieoff" | ||
When I change the "data-source" parameter to "HRRR_OPS" | ||
Then the "data-source" parameter value matches "HRRR_OPS" | ||
When I set the curve-dates to "09/21/2019 00:00 - 09/24/2019 00:00" | ||
Then the curve-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 "Dieoff" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
tests/src/features/surfrad/basic/matchUnmatchDiffCurvesDieoff.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
Feature: Match Unmatch Diff Curves Dieoff | ||
|
||
As an unauthenticated user to the app, | ||
with the app in its default state so that the plots are Dieoff, | ||
I want to add two curves, plot unmatched, and then return to the main page. | ||
I then want to add a matched difference curve, plot unmatched, return to the main page, plot matched, and then return to the main page. | ||
I then want to add a piecewise difference curve, plot unmatched, return to the main page, plot matched, and then return to the main page. | ||
I want to end by removing all of the curves. | ||
|
||
Background: | ||
Given I load the app "/surfrad" | ||
Then I expect the app title to be "Surface Radiation" | ||
|
||
@watch | ||
Scenario: matchUnmatchDiffCurvesDieoff | ||
When I set the plot type to "Dieoff" | ||
Then the plot type should be "Dieoff" | ||
When I change the "data-source" parameter to "HRRR_OPS" | ||
Then the "data-source" parameter value matches "HRRR_OPS" | ||
When I set the curve-dates to "09/21/2019 00:00 - 09/24/2019 00:00" | ||
Then the curve-dates value is "09/21/2019 00:00 - 09/24/2019 00:00" | ||
When I change the "dieoff-type" parameter to "Dieoff for a specified UTC cycle init hour" | ||
Then the "dieoff-type" parameter value matches "Dieoff for a specified UTC cycle init hour" | ||
When I click the "Add Curve" button | ||
Then "Curve0" is added | ||
|
||
When I change the "data-source" parameter to "RAP_OPS_130" | ||
Then the "data-source" parameter value matches "RAP_OPS_130" | ||
When I click the "Add Curve" button | ||
Then "Curve1" is added | ||
And I should see a list of curves containing "Curve0,Curve1" | ||
|
||
When I click the "Plot Unmatched" button | ||
Then I should be on the graph page | ||
And I should have a "Dieoff" plot | ||
|
||
When I click the "Back" button | ||
Then I should be on the main page | ||
And the "Plot Unmatched" button should be visible | ||
|
||
When I click the "Plot Matched" button | ||
Then I should be on the graph page | ||
And I should have a "Dieoff" plot | ||
|
||
When I click the "Back" button | ||
Then I should be on the main page | ||
And the "Plot Matched" button should be visible | ||
|
||
When I click the "matching diffs" radio button | ||
Then "Curve1-Curve0" is added | ||
And I should see a list of curves containing "Curve0,Curve1,Curve1-Curve0" | ||
|
||
When I click the "Plot Unmatched" button | ||
Then I should be on the graph page | ||
And I should have a "Dieoff" plot | ||
|
||
When I click the "Back" button | ||
Then I should be on the main page | ||
And the "Plot Unmatched" button should be visible | ||
|
||
When I click the "Plot Matched" button | ||
Then I should be on the graph page | ||
And I should have a "Dieoff" plot | ||
|
||
When I click the "Back" button | ||
Then I should be on the main page | ||
And the "Plot Matched" button should be visible | ||
|
||
When I click the "pairwise diffs" radio button | ||
Then the plot format should be "pairwise" | ||
Then I should see a list of curves containing "Curve0,Curve1,Curve1-Curve0" | ||
And I should have 3 curves | ||
|
||
When I click the "Plot Unmatched" button | ||
Then I should be on the graph page | ||
And I should have a "Dieoff" plot | ||
|
||
When I click the "Back" button | ||
Then I should be on the main page | ||
And the "Plot Unmatched" button should be visible | ||
|
||
When I click the "Plot Matched" button | ||
Then I should be on the graph page | ||
And I should have a "Dieoff" plot | ||
|
||
When I click the "Back" button | ||
Then I should be on the main page | ||
And the "Plot Matched" button should be visible | ||
|
||
When I click the "no diffs" radio button | ||
Then I should see a list of curves containing "Curve0,Curve1" | ||
And I should have 2 curves | ||
|
||
When I click the "Remove All" button | ||
And the "Remove all the curves" button should be visible | ||
Then I click the "Remove all the curves" button | ||
Then I should have 0 curves |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters