Skip to content

Commit

Permalink
BDD for Delete feature
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenyz authored Dec 12, 2023
1 parent 1dccffd commit 416ec13
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion features/promotions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,19 @@ Scenario: Update a Promotion
And I paste the "id" field
When I press the "Search" button
Then I should see the message "Success"
And I should see "NY24_3" in the results
And I should see "NY24_3" in the results

Scenario: Delete a Promotion
When I visit the "Home Page"
And I set the "id" to "10"
And I set the "name" to "NY Sale3"
And I set the "description" to "promotion for NY 2024"
And I set the "products_type" to "all_types"
And I set the "code" to "NY24"
And I set the Start Date to "2023-12-15"
And I set the End Date to "2024-01-16"
And I press the "Search" button
Then I should see the message "Success"
When I copy the "id" field
And I press the "Delete" button
Then I should see the message "Success"

0 comments on commit 416ec13

Please sign in to comment.