tags.feature
1.41 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
Feature: tags
As a Noosfero user
I want to find content tagged with a given tag
In order to find easily the things I am looking for
Background:
Given the following users
| login |
| josesilva |
| joaoaraujo |
And the following articles
| owner | name | body | tag_list |
| josesilva | save the whales | ... | environment, whales |
| joaoaraujo | the Amazon is being destroyed | ... | environment, forest, amazon |
Scenario: viewing tag cloud
When I go to /tag
Then I should see "environment"
And I should see "whales"
And I should see "forest"
And I should see "amazon"
Scenario: viewing a single tag
When I go to /tag
And I follow "environment" within ".no-boxes"
Then I should see "save the whales"
And I should see "the Amazon is being destroyed"
Scenario: viewing another tag
When I go to /tag
And I follow "whales"
Then I should see "save the whales"
And I should not see "the Amazon is being destroyed"
Scenario: viewing profile's tag cloud
When I go to /profile/joaoaraujo/tags
Then I should see "amazon"
And I should not see "whales"
Scenario: viewing profile's content tagged
When I go to /profile/joaoaraujo/tags/amazon
Then I should see "the Amazon is being destroyed"
Scenario: trying to view a tag not used
When I go to /tag/shark
Then I should see /Tagged with "shark"/