Feature: browse As a noosfero visitor I want to browse people and communities Background: Given I am on the homepage And the following users | login | name | | joaosilva | Joao Silva | | pedrosilva | Pedro Silva | | pauloneto | Paulo Neto | And the following communities | identifier | name | | comunity-silva | Community Silva | | comunity-neto | Community Neto | @selenium Scenario: Show people browse menu Given I should not see "More Recent" And I should not see "More Active" And I should not see "More Popular" When I click "#submenu-people-trigger" Then I should see "More Recent" And I should see "More Active" And I should see "More Popular" @selenium Scenario: People browse menu should add logged information Given I am logged in as "joaosilva" And I should not see "More Recent" And I should not see "More Active" And I should not see "More Popular" And I should not see "Invite friends" And I should not see "My friends" When I click "#submenu-people-trigger" Then I should see "More Recent" And I should see "More Active" And I should see "More Popular" And I should see "Invite friends" And I should see "My friends" @selenium Scenario: Browse people by query Given I go to /browse/people When I fill in "query" with "Silva" And I press "Search" Then I should see "Joao Silva" And I should see "Pedro Silva" And I should not see "Paulo Neto" And I should not see "Community Silva" And I should not see "Community Neto" @selenium Scenario: Communities browse menu should add logged information Given I am logged in as "joaosilva" And I am on the homepage And I should not see "More Recent" And I should not see "More Active" And I should not see "More Popular" And I should not see "My communities" And I should not see "New community" When I click "#submenu-communities-trigger" Then I should see "More Recent" And I should see "More Active" And I should see "More Popular" And I should see "My communities" And I should see "New community" @selenium Scenario: Show communities browse menu Given I should not see "More Recent" And I should not see "More Active" And I should not see "More Popular" When I click "#submenu-communities-trigger" Then I should see "More Recent" And I should see "More Active" And I should see "More Popular" @selenium Scenario: Browse communities by query Given I go to /browse/communities When I fill in "query" with "Silva" And I press "Search" Then I should see "Community Silva" And I should not see "Joao Silva" And I should not see "Pedro Silva" And I should not see "Paulo Neto" And I should not see "Community Neto"