Commit 7d06a37de719e9ebd0e6afb63a981944ff3c5a8b
1 parent
30c66afb
Exists in
master
and in
29 other branches
Putting back the list of tags in editing articles
(ActionItem1589)
Showing
4 changed files
with
48 additions
and
9 deletions
Show diff stats
app/views/cms/edit.rhtml
... | ... | @@ -28,6 +28,9 @@ |
28 | 28 | |
29 | 29 | <%= select_categories(:article, _('Categorize your article')) %> |
30 | 30 | |
31 | + <%= f.text_field('tag_list', :size => 64) %> | |
32 | + <%= content_tag( 'small', _('Separate tags with commas') ) %> | |
33 | + | |
31 | 34 | <div id='edit-article-options'> |
32 | 35 | <%= options_for_article(@article) %> |
33 | 36 | </div> | ... | ... |
features/blog.feature
... | ... | @@ -87,3 +87,9 @@ Feature: blog |
87 | 87 | And I press "Save" |
88 | 88 | When I am on /joaosilva/blog-two |
89 | 89 | Then I should see "Blog One" |
90 | + | |
91 | + Scenario: display tag list field when creating new blog | |
92 | + Given I follow "Control panel" | |
93 | + And I follow "Manage Content" | |
94 | + When I follow "New blog" | |
95 | + Then I should see "Tag list" | ... | ... |
features/create_article.feature
... | ... | @@ -33,3 +33,29 @@ Feature: create article |
33 | 33 | And I follow "New Folder" |
34 | 34 | When I follow "Cancel" |
35 | 35 | Then I should be on Joao Silva's cms |
36 | + | |
37 | + Scenario: display tag list field when creating event | |
38 | + Given I follow "Control panel" | |
39 | + And I follow "Manage Content" | |
40 | + And I follow "New article" | |
41 | + When I follow "Event" | |
42 | + Then I should see "Tag list" | |
43 | + | |
44 | + Scenario: display tag list field when creating folder | |
45 | + Given I follow "Control panel" | |
46 | + And I follow "Manage Content" | |
47 | + When I follow "New folder" | |
48 | + Then I should see "Tag list" | |
49 | + | |
50 | + Scenario: create new article with tags | |
51 | + Given I follow "Control panel" | |
52 | + And I follow "Manage Content" | |
53 | + And I follow "New article" | |
54 | + When I follow "Text article with Textile markup language" | |
55 | + Then I should see "Tag list" | |
56 | + When I fill in "Title" with "Article with tags" | |
57 | + And I fill in "Tag list" with "aurium, bug" | |
58 | + And I press "Save" | |
59 | + And I go to /joaosilva/article-with-tags | |
60 | + Then I should see "aurium" within "#article-tags a:first" | |
61 | + And I should see "bug" within "#article-tags a:last" | ... | ... |
features/edit_image.feature
... | ... | @@ -2,26 +2,30 @@ Feature: edit_image |
2 | 2 | As a noosfero user |
3 | 3 | I want to upload images and assigns a link to each image |
4 | 4 | |
5 | - Scenario: edit external link when edit image | |
5 | + Background: | |
6 | 6 | Given I am on the homepage |
7 | 7 | And the following users |
8 | 8 | | login | name | |
9 | 9 | | morgoth | Melkor | |
10 | - And the following files | |
10 | + And I am logged in as "morgoth" | |
11 | + | |
12 | + Scenario: edit external link when edit image | |
13 | + Given the following files | |
11 | 14 | | owner | file | mime | |
12 | 15 | | morgoth | rails.png | image/png | |
13 | - And I am logged in as "morgoth" | |
14 | 16 | When I go to edit "rails.png" by morgoth |
15 | 17 | Then I should see "External link" |
16 | 18 | |
17 | 19 | Scenario: dont offer to edit external link if no image |
18 | - Given I am on the homepage | |
19 | - And the following users | |
20 | - | login | name | | |
21 | - | morgoth | Melkor | | |
22 | - And the following files | |
20 | + Given the following files | |
23 | 21 | | owner | file | mime | |
24 | 22 | | morgoth | test.txt | text/plain | |
25 | - And I am logged in as "morgoth" | |
26 | 23 | When I go to edit "test.txt" by morgoth |
27 | 24 | Then I should not see "External link" |
25 | + | |
26 | + Scenario: display tag list field when editing file | |
27 | + Given the following files | |
28 | + | owner | file | mime | | |
29 | + | morgoth | rails.png | image/png | | |
30 | + When I go to edit "rails.png" by morgoth | |
31 | + Then I should see "Tag list" | ... | ... |