Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature: Upload form info to CSV
- As an admin
- When a user submits a vendor form
- The info for the fields are uploaded to "master" csv
- Scenario: Update master csv with food form
- Given I am on the homepage
- When I go to the food page
- And I fill in "form[user]" with "John Doe"
- And I fill in "form[address]" with "123 Easy St."
- And I fill in "form[city]" with "Anytown"
- And I fill in "form[zip]" with "69420"
- And I fill in "form[name]" with "Cool company"
- And I fill in "form[email]" with "cc@gmail.com"
- And I fill in "form[busphone]" with "2222222222"
- And I fill in "form[cell]" with "3333333333"
- And I fill in "form[website]" with "www.frat.org"
- And I fill in "form[busID]" with "12321"
- And I press "Create Form"
- Then the user of "Cool company" in the csv should be "John Doe"
- And the address of "Cool company" in the csv should be "123 Easy St."
- And the city of "Cool company" in the csv should be "Anytown"
- And the zip of "Cool company" in the csv should be "69420"
- And the orgname of "Cool company" in the csv should be "Cool company"
- And the email of "Cool company" in the csv should be "cc@gmail.com"
- And the busphone of "Cool company" in the csv should be "2222222222"
- And the cell of "Cool company" in the csv should be "3333333333"
- And the website of "Cool company" in the csv should be "www.frat.org"
- And the busID of "Cool company" in the csv should be "12321"
- And the numTables of "Cool company" in the csv should be "0"
- And the numbrellas of "Cool company" in the csv should be "0"
- And the numChairs of "Cool company" in the csv should be "0"
- And the numTents of "Cool company" in the csv should be "0"
- Scenario: Update master csv with retail form
- Given I am on the retail page
- And I fill in "form[user]" with "John Doe"
- And I fill in "form[address]" with "123 Easy St."
- And I fill in "form[city]" with "Anytown"
- And I fill in "form[zip]" with "69420"
- And I fill in "form[name]" with "Cool company"
- And I fill in "form[email]" with "cc@gmail.com"
- And I fill in "form[busphone]" with "2222222222"
- And I fill in "form[cell]" with "3333333333"
- And I fill in "form[website]" with "www.frat.org"
- And I fill in "form[busID]" with "12321"
- And I fill in "form[permitNum]" with "1111"
- And I fill in "form[product]" with "conalingus"
- And I press "Create Form"
- Then the user of "Cool company" in the csv should be "John Doe"
- And the address of "Cool company" in the csv should be "123 Easy St."
- And the city of "Cool company" in the csv should be "Anytown"
- And the zip of "Cool company" in the csv should be "69420"
- And the orgname of "Cool company" in the csv should be "Cool company"
- And the email of "Cool company" in the csv should be "cc@gmail.com"
- And the busphone of "Cool company" in the csv should be "2222222222"
- And the cell of "Cool company" in the csv should be "3333333333"
- And the website of "Cool company" in the csv should be "www.frat.org"
- And the busID of "Cool company" in the csv should be "12321"
- And the permitNum of "Cool company" in the csv should be "1111"
- And the product of "Cool company" in the csv should be "conalingus"
- And the numTables of "Cool company" in the csv should be "0"
- And the numChairs of "Cool company" in the csv should be "0"
- And the numbrellas of "Cool company" in the csv should be "0"
- And the numTents of "Cool company" in the csv should be "0"
- And the npType of "Cool company" in the csv should be "information"
- Scenario: Update master csv with nonprofit form
- Given I am on the nonprofit page
- And I fill in "form[user]" with "John Doe"
- And I fill in "form[address]" with "123 Easy St."
- And I fill in "form[city]" with "Anytown"
- And I fill in "form[zip]" with "69420"
- And I fill in "form[name]" with "Cool company"
- And I fill in "form[email]" with "cc@gmail.com"
- And I fill in "form[busphone]" with "2222222222"
- And I fill in "form[cell]" with "3333333333"
- And I fill in "form[website]" with "www.frat.org"
- And I fill in "form[taxID]" with "12321"
- And I fill in "form[product]" with "conalingus"
- And I choose "orgtype_info"
- And I press "Create Form"
- Then the user of "Cool company" in the csv should be "John Doe"
- And the address of "Cool company" in the csv should be "123 Easy St."
- And the city of "Cool company" in the csv should be "Anytown"
- And the zip of "Cool company" in the csv should be "69420"
- And the orgname of "Cool company" in the csv should be "Cool company"
- And the email of "Cool company" in the csv should be "cc@gmail.com"
- And the busphone of "Cool company" in the csv should be "2222222222"
- And the cell of "Cool company" in the csv should be "3333333333"
- And the website of "Cool company" in the csv should be "www.frat.org"
- And the taxID of "Cool company" in the csv should be "12321"
- And the product of "Cool company" in the csv should be "conalingus"
- And the numTables of "Cool company" in the csv should be "0"
- And the numChairs of "Cool company" in the csv should be "0"
- And the numbrellas of "Cool company" in the csv should be "0"
- And the numTents of "Cool company" in the csv should be "0"
- And the npType of "Cool company" in the csv should be "information"
- Scenario: Update master csv with commercial info form
- Given I am on the commercialInfo page
- And I fill in "form[user]" with "John Doe"
- And I fill in "form[address]" with "123 Easy St."
- And I fill in "form[city]" with "Anytown"
- And I fill in "form[zip]" with "69420"
- And I fill in "form[name]" with "Cool company"
- And I fill in "form[email]" with "cc@gmail.com"
- And I fill in "form[busphone]" with "2222222222"
- And I fill in "form[cell]" with "3333333333"
- And I fill in "form[website]" with "www.frat.org"
- And I fill in "form[busID]" with "12321"
- And I fill in "form[product]" with "conalingus"
- And I press "Create Form"
- Then the user of "Cool company" in the csv should be "John Doe"
- And the address of "Cool company" in the csv should be "123 Easy St."
- And the city of "Cool company" in the csv should be "Anytown"
- And the zip of "Cool company" in the csv should be "69420"
- And the orgname of "Cool company" in the csv should be "Cool company"
- And the email of "Cool company" in the csv should be "cc@gmail.com"
- And the busphone of "Cool company" in the csv should be "2222222222"
- And the cell of "Cool company" in the csv should be "3333333333"
- And the website of "Cool company" in the csv should be "www.frat.org"
- And the busID of "Cool company" in the csv should be "12321"
- And the product of "Cool company" in the csv should be "conalingus"
- And the numTables of "Cool company" in the csv should be "0"
- And the numChairs of "Cool company" in the csv should be "0"
- And the numbrellas of "Cool company" in the csv should be "0"
- And the numTents of "Cool company" in the csv should be "0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement