diff --git a/CucumberTests/src/test/java/stepdefs/PriceAlarm.java b/CucumberTests/src/test/java/stepdefs/PriceAlarm.java index 1173e23..8c82759 100644 --- a/CucumberTests/src/test/java/stepdefs/PriceAlarm.java +++ b/CucumberTests/src/test/java/stepdefs/PriceAlarm.java @@ -52,4 +52,16 @@ public class PriceAlarm { @Then("^the price alarm should be removed from the database$") public void the_price_alarm_should_be_removed_from_the_database() throws Exception { } + + @Then("^a popup should open where the user can edit the alarm$") + public void a_popup_should_open_where_the_user_can_edit_the_alarm() throws Exception { + } + + @When("^the user clicks on the \"([^\"]*)\" button$") + public void the_user_clicks_on_the_button(String arg1) throws Exception { + } + + @Then("^the price alarm should be updated in the database$") + public void the_price_alarm_should_be_updated_in_the_database() throws Exception { + } } diff --git a/CucumberTests/src/test/resource/priceAlarms.feature b/CucumberTests/src/test/resource/priceAlarms.feature index 0d2a79b..1e75acb 100644 --- a/CucumberTests/src/test/resource/priceAlarms.feature +++ b/CucumberTests/src/test/resource/priceAlarms.feature @@ -18,3 +18,11 @@ Feature: Price Alarms Then a popup should open asking the user to confirm the removal When the user confirms the removal of the price alarm Then the price alarm should be removed from the database + + Scenario: Edit a price alarm + Given the user is on the price alarm list page + And the user is logged in + When the user clicks on the "edit" button next to a price alarm + Then a popup should open where the user can edit the alarm + When the user clicks on the "save changes" button + Then the price alarm should be updated in the database