Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dynamic-websites/exercises/03_acceptance/cucumber/features/add.feature
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23 lines (21 sloc)
848 Bytes
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
Feature: Adding Items | |
The user should be able to add items to the list. | |
Scenario: add single item | |
Given The browser is open on the home page | |
When I enter "bread" in the "item" field | |
When I enter "42" in the "qty" field | |
When I click on the submit button | |
Then the heading should be "ToDo List" | |
Then the list should contain "1" rows | |
Then the list should contain a single entry for "bread" | |
Then the item should be "bread" | |
Then the "bread" quantity should be "42" | |
Scenario: add multiple items | |
Given The browser is open on the home page | |
When I enter "butter" in the "item" field | |
When I enter "24" in the "qty" field | |
When I click on the submit button | |
Then the heading should be "ToDo List" | |
Then the list should contain "2" rows | |
Then the list should contain a single entry for "bread" | |
Then the item should be "bread" |