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.
59 lines
2.2 KiB
59 lines
2.2 KiB
11 years ago
|
#-- copyright
|
||
|
# OpenProject is a project management system.
|
||
|
#
|
||
|
# Copyright (C) 2012-2013 the OpenProject Team
|
||
|
#
|
||
|
# This program is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of the GNU General Public License version 3.
|
||
|
#
|
||
|
# See doc/COPYRIGHT.rdoc for more details.
|
||
|
#++
|
||
|
|
||
|
Feature: Watch issues
|
||
|
Background:
|
||
|
Given there are no issues
|
||
|
And there is 1 project with the following:
|
||
|
| name | project |
|
||
|
| identifier | project |
|
||
|
And I am working in project "project"
|
||
|
And the project "project" has the following types:
|
||
|
| name | position |
|
||
|
| Bug | 1 |
|
||
|
And there is a role "member_with_privileges"
|
||
|
And there is a role "member_without_privileges"
|
||
|
And the role "member_with_privileges" may have the following rights:
|
||
|
| view_work_packages |
|
||
|
| save_queries |
|
||
|
And the role "member_without_privileges" may have the following rights:
|
||
|
| view_work_packages |
|
||
|
And there is 1 user with the following:
|
||
|
| login | bob |
|
||
|
| firstname | Bob |
|
||
|
| lastname | Bobbit |
|
||
|
And there is 1 user with the following:
|
||
|
| login | alice |
|
||
|
| firstname | Alice |
|
||
|
| lastname | Alison |
|
||
|
And the user "bob" is a "member_with_privileges" in the project "project"
|
||
|
And the user "alice" is a "member_without_privileges" in the project "project"
|
||
|
|
||
|
@javascript
|
||
|
Scenario: Create a query and give it a name
|
||
|
When I am already logged in as "bob"
|
||
|
And I go to the work packages index page for the project "project"
|
||
|
And I follow "Save" within "#query_form"
|
||
|
And I fill in "Query" for "Name"
|
||
|
And I press "Save"
|
||
|
Then I should see "Query" within "#content"
|
||
|
And I should see "Successful creation."
|
||
|
|
||
|
Scenario: Save Button should be visible for users with the proper rights
|
||
|
When I am already logged in as "bob"
|
||
|
And I go to the work packages index page for the project "project"
|
||
|
Then I should see "Save" within "#query_form"
|
||
|
|
||
|
Scenario: Save Button should be invisible for users without the proper rights
|
||
|
When I am already logged in as "alice"
|
||
|
And I go to the work packages index page for the project "project"
|
||
|
Then I should not see "Save" within "#query_form"
|