From 792893b17e31deb28b506dcad3d02681fc3e35ae Mon Sep 17 00:00:00 2001 From: Molly Smith Date: Wed, 11 Oct 2023 15:07:04 -0600 Subject: [PATCH] Added cb-metar Map test --- .../cb-metar/basic/addRemoveMap.feature | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tests/src/features/cb-metar/basic/addRemoveMap.feature diff --git a/tests/src/features/cb-metar/basic/addRemoveMap.feature b/tests/src/features/cb-metar/basic/addRemoveMap.feature new file mode 100644 index 0000000000..430da44358 --- /dev/null +++ b/tests/src/features/cb-metar/basic/addRemoveMap.feature @@ -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