Sha256: 458275bce78ca3d34bbea225f039e05a2ea9826b693f14f1787354a4ce0b2aa9

Contents?: true

Size: 1.4 KB

Versions: 2

Compression:

Stored size: 1.4 KB

Contents

@inquiries @inquiries-create
Feature: Create Inquiries
  In order to contact the website owner
  I want to create an inquiry
  
  Background:
    Given A Refinery user exists
    And I have no inquiries
    And I have a page titled "Contact Us" with a custom url "/contact"
    And I have a page titled "Thank You" with a custom url "/contact/thank_you"
  
  Scenario: Contact page
    When I go to the contact page
    Then I should see "Name *"
    And I should see "Email *"
    And I should see "Phone"
    And I should see "Message *" 
  
  Scenario: Create a valid inquiry
    When I go to the contact page
    And I fill in "Name *" with "Philip"
    And I fill in "Email *" with "phil@refinerycms.com"
    And I fill in "Message *" with "It sure is good to have a functional test coverage."
    And I press "Send"
    Then I should be on the contact thank you page
    And I should see "Thank You"
    And I should see "received your inquiry"
    And I should see "Return to the home page"
    And I should have 1 inquiries
    
  Scenario: Create an invalid inquiry
    When I go to the contact page
    And I press "Send"
    Then I should be on the contact create page
    And I should see "Name can't be blank"
    And I should not see "Email can't be blank"
    And I should see "Email is invalid"
    And I should not see "Phone can't be blank"
    And I should see "Message can't be blank"
    And I should have 0 inquiries

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refinerycms-0.9.7.10 features/refinery/create_inquiries.feature
refinerycms-0.9.7.9 features/refinery/create_inquiries.feature