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"
- Feature: Attach uploaded files to confirmation email
- As an admin
- When a vendor submits there form
- And I receive my confirmation email
- Then I should also receive any uploaded documents
- Background: The vendor has filled out the 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"
- Scenario: Attach a food facility operator form to the confirmation email
- And I attach the file "test1.pdf" to "form_facility_op_form"
- And I press "Create Form"
- Then the admin should receive a confirmation email containing the file "test1.pdf"
- Scenario: Attach a copy of contract for commercial kitchen used to prepare food form to the confirmation email
- And I attach the file "test2.doc" to "form_kitchen_contract"
- And I press "Create Form"
- Then the admin should receive a confirmation email containing the file "test2.doc"
- Scenario: Attach a DD214 form to the confirmation email
- And I attach the file "test1.pdf" to "form_DD214"
- And I press "Create Form"
- Then the admin should receive a confirmation email containing the file "test1.pdf"
- Feature: confirmation email automation to admin
- As an admin
- When a vendor submits a form
- I should receive an email with their details/telling me of their submission
- Scenario: Send a confirmation email to the admin after a form gets submitted
- Given a form is submitted successfully
- Then "as the admin", I should receive a confirmation at "at the admin email"
- And I should also be able to see their submission
- Feature: confirmation email automation to vendor
- As a vendor
- After I upload a form successfully
- I should receive a confirmation email saying submission was successful
- Scenario: Send a confirmation email to the vendor after submitting a form
- Given a form is submitted successfully
- And I use the email "aaaa@bbbb.org"
- And I press "submit"
- Then as "a vendor", I should receive a confirmation at "aaaa@bbbb.org"
Add Comment
Please, Sign In to add comment