kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
145 lines
6.4 KiB
145 lines
6.4 KiB
12 years ago
|
#-- copyright
|
||
|
# OpenProject is a project management system.
|
||
11 years ago
|
# Copyright (C) 2012-2013 the OpenProject Foundation (OPF)
|
||
12 years ago
|
#
|
||
|
# This program is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of the GNU General Public License version 3.
|
||
|
#
|
||
11 years ago
|
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
|
||
|
# Copyright (C) 2006-2013 Jean-Philippe Lang
|
||
|
# Copyright (C) 2010-2013 the ChiliProject Team
|
||
|
#
|
||
|
# This program is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of the GNU General Public License
|
||
|
# as published by the Free Software Foundation; either version 2
|
||
|
# of the License, or (at your option) any later version.
|
||
|
#
|
||
|
# This program is distributed in the hope that it will be useful,
|
||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
# GNU General Public License for more details.
|
||
|
#
|
||
|
# You should have received a copy of the GNU General Public License
|
||
|
# along with this program; if not, write to the Free Software
|
||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
#
|
||
12 years ago
|
# See doc/COPYRIGHT.rdoc for more details.
|
||
|
#++
|
||
|
|
||
12 years ago
|
Feature: Wiki menu items
|
||
|
Background:
|
||
|
Given there is 1 project with the following:
|
||
11 years ago
|
| name | Awesome Project |
|
||
|
| identifier | awesome-project |
|
||
12 years ago
|
And there is a role "member"
|
||
|
And the role "member" may have the following rights:
|
||
11 years ago
|
| view_wiki_pages |
|
||
|
| edit_wiki_pages |
|
||
|
| delete_wiki_pages |
|
||
|
| manage_wiki_menu |
|
||
12 years ago
|
And there is 1 user with the following:
|
||
|
| login | bob |
|
||
|
And the user "bob" is a "member" in the project "Awesome Project"
|
||
|
And the project "Awesome Project" has 1 wiki page with the following:
|
||
|
| Title | Wiki |
|
||
|
And the project "Awesome Project" has 1 wiki page with the following:
|
||
|
| Title | AwesomePage |
|
||
11 years ago
|
And I am already logged in as "bob"
|
||
12 years ago
|
|
||
|
@javascript
|
||
|
Scenario: Adding a main menu entry without index and toc links
|
||
|
When I go to the wiki page "AwesomePage" for the project called "Awesome Project"
|
||
|
And I click on "More functions"
|
||
|
And I click on "Configure menu item"
|
||
12 years ago
|
And I fill in "Avocado Wuaärst" for "wiki_menu_item_name"
|
||
12 years ago
|
And I choose "Show as menu item in project navigation"
|
||
|
And I press "Save"
|
||
12 years ago
|
And I should see "Avocado Wuaärst" within "#main-menu"
|
||
12 years ago
|
|
||
|
@javascript
|
||
|
Scenario: Adding a main menu entry with index and toc links
|
||
|
When I go to the wiki page "AwesomePage" for the project called "Awesome Project"
|
||
|
And I click on "More functions"
|
||
|
And I click on "Configure menu item"
|
||
12 years ago
|
And I fill in "Avocado Wuaärst" for "wiki_menu_item_name"
|
||
12 years ago
|
And I choose "Show as menu item in project navigation"
|
||
|
And I check "Show submenu item 'Create new child page'"
|
||
|
And I check "Show submenu item 'Table of Contents'"
|
||
|
And I press "Save"
|
||
|
When I go to the wiki page "AwesomePage" for the project called "Awesome Project"
|
||
12 years ago
|
Then I should see "Avocado Wuaärst" within "#main-menu"
|
||
12 years ago
|
Then I should see "Table of Contents" within "#main-menu"
|
||
|
Then I should see "Create new child page" within "#main-menu"
|
||
|
|
||
|
@javascript
|
||
|
Scenario: Change existing entry
|
||
|
When I go to the wiki page "Wiki" for the project called "Awesome Project"
|
||
|
Then I should see "Table of Contents" within "#main-menu"
|
||
|
Then I should see "Create new child page" within "#main-menu"
|
||
|
When I click on "More functions"
|
||
|
And I click on "Configure menu item"
|
||
|
And I fill in "Wikikiki" for "wiki_menu_item_name"
|
||
|
And I uncheck "Show submenu item 'Table of Contents'"
|
||
|
And I uncheck "Show submenu item 'Create new child page'"
|
||
|
And I press "Save"
|
||
|
When I go to the wiki page "Wiki" for the project called "Awesome Project"
|
||
|
Then I should see "Wikikiki" within "#main-menu"
|
||
|
Then I should not see "Table of Contents" within "#main-menu"
|
||
|
Then I should not see "Create new child page" within "#main-menu"
|
||
|
|
||
11 years ago
|
@javascript
|
||
|
Scenario: Do not change existing entry, but saving nonetheless
|
||
|
When I go to the wiki page "Wiki" for the project called "Awesome Project"
|
||
|
Then I should see "Table of Contents" within "#main-menu"
|
||
|
Then I should see "Create new child page" within "#main-menu"
|
||
|
When I click on "More functions"
|
||
|
And I click on "Configure menu item"
|
||
|
And I press "Save"
|
||
|
Then I should not see "Successful update."
|
||
12 years ago
|
|
||
|
@javascript
|
||
|
Scenario: Adding a sub menu entry
|
||
|
Given the project "Awesome Project" has a wiki menu item with the following:
|
||
|
| title | SelectMe |
|
||
|
| name | SelectMe |
|
||
|
Given the project "Awesome Project" has a wiki menu item with the following:
|
||
|
| title | AwesomePage |
|
||
|
| name | RichtigGeil |
|
||
|
When I go to the wiki page "Wiki" for the project called "Awesome Project"
|
||
|
When I click on "More functions"
|
||
|
And I click on "Configure menu item"
|
||
|
And I choose "Show as submenu item of"
|
||
|
When I select "SelectMe" from "parent_wiki_menu_item"
|
||
|
When I select "RichtigGeil" from "parent_wiki_menu_item"
|
||
|
And I press "Save"
|
||
|
When I go to the wiki page "Wiki" for the project called "Awesome Project"
|
||
|
Then I should see "Wiki" within ".menu-children"
|
||
|
|
||
|
@javascript
|
||
|
Scenario: Removing a menu item
|
||
|
Given the project "Awesome Project" has a wiki menu item with the following:
|
||
|
| title | DontKillMe |
|
||
|
| name | DontKillMe |
|
||
|
When I go to the wiki page "Wiki" for the project called "Awesome Project"
|
||
|
When I click on "More functions"
|
||
|
And I click on "Configure menu item"
|
||
|
And I choose "Do not show this wikipage in project navigation"
|
||
|
And I press "Save"
|
||
|
Then I should not see "Wiki" within "#main-menu"
|
||
11 years ago
|
|
||
|
@javascript
|
||
|
Scenario: When I delete the last wiki page with a menu item I can select a new menu item and the menu item is replaced
|
||
|
Given the project "Awesome Project" has a wiki menu item with the following:
|
||
|
| title | AwesomePage |
|
||
|
| name | AwesomePage |
|
||
|
And the wiki menu item of the wiki page "Wiki" of project "Awesome Project" has been deleted
|
||
|
When I go to the wiki page "AwesomePage" for the project called "Awesome Project"
|
||
|
And I click on "More functions"
|
||
|
And I click on "Configure menu item"
|
||
|
And I choose "Do not show this wikipage in project navigation"
|
||
|
And I press "Save"
|
||
|
And I select "Wiki" from "main-menu-item-select"
|
||
|
And I press "Save"
|
||
|
Then I should not see "AwesomePage" within "#main-menu"
|
||
|
Then I should see "Wiki" within "#main-menu"
|