Stories

Ruby code posted
created at 25 Aug 21:58

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Story: visitor contacts xu

  As a visitor to xploreu
  I want to contact xploreu
  So that I can tell them how awesome the site is
  
  Scenario: visitor sends message
    Given I am an anonymous visitor
    When I go to the contact form
    And I submit the form with valid data
    Then I should see 'Contact Message Sent'
    
  Scenario: invalid phone format
    Given I am an anonymous visitor
    When I go to the contact form
    And I enter '123.4567' for Phone
    And I submit the form
    Then I should see 'Phone number is not valid'

  Scenario: missing name
    Given I am an anonymous visitor
    When I go to the contact form
    And I enter '' for Name
    And I submit the form
    Then I should see 'Name is required.'
725 Bytes in 3 ms with coderay