BETTERZON-21: Added "edit price alarm" test case

This commit is contained in:
Patrick 2020-11-06 13:39:07 +01:00
parent e79d0f7188
commit 73d40a0eed
2 changed files with 20 additions and 0 deletions

View File

@ -52,4 +52,16 @@ public class PriceAlarm {
@Then("^the price alarm should be removed from the database$") @Then("^the price alarm should be removed from the database$")
public void the_price_alarm_should_be_removed_from_the_database() throws Exception { 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 {
}
} }

View File

@ -18,3 +18,11 @@ Feature: Price Alarms
Then a popup should open asking the user to confirm the removal Then a popup should open asking the user to confirm the removal
When the user confirms the removal of the price alarm When the user confirms the removal of the price alarm
Then the price alarm should be removed from the database 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