cirandas.net

ref: master

features/contact.feature


 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
26
27
28
Feature: contact organization
As a user
I want to contact an organization
In order to ask questions and solve problems

  Background:
    Given the following users
      | login | name |
      | joaosilva | Joao Silva |
    And the following communities
      | identifier | name |
      | sample-community | Sample Community |
    And I am logged in as "joaosilva" 

  @selenium
  Scenario: without states
    Given I am on sample-community's homepage
    When I follow "Send an e-mail"
    Then I should not see "City and state"

  @selenium
  Scenario: with states
    Given the following states
      | name  |
      | Bahia |
    And I am on sample-community's homepage
    When I follow "Send an e-mail"
    Then I should see "City and state"