browse.feature
2.78 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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"
  Scenario: Browse people by query
    Given I go to /browse/people
    When I fill in "Silva" for "query"
    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"
    When I go to /joaosilva
    Then 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"
  Scenario: Browse communities by query
    When I go to /browse/communities
    And I fill in "Neto" for "query"
    And I press "Search"
    Then I should see "Community Neto"
    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 Silva"