Skip to content
Permalink
d1b386290c
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
23 lines (21 sloc) 848 Bytes
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"