OpenProject is the leading open source project management software.
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.
 
 
 
 
 
 
openproject/modules/meeting/features/meeting_participants.feature

58 lines
2.3 KiB

#-- copyright
# OpenProject Meeting Plugin
#
# Copyright (C) 2011-2014 the OpenProject Foundation (OPF)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# 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.
#
# See doc/COPYRIGHT.md for more details.
#++
Feature: Meeting has participants
Background:
Given there is 1 project with the following:
| identifier | dingens |
| name | dingens |
And the project "dingens" uses the following modules:
| meetings |
And there is 1 user with:
| login | alice |
| firstname | Alice |
| lastname | Alice |
| language | en |
And there is 1 user with:
| login | bob |
| firstname | Bob |
| lastname | Bobbit |
| language | en |
And there is a role "meeting_viewer"
And there is a role "meeting_editor"
And the role "meeting_viewer" may have the following rights:
| view_meetings |
And the role "meeting_editor" may have the following rights:
| view_meetings |
| edit_meetings |
And the user "bob" is a "meeting_editor" in the project "dingens"
And there is 1 meeting in project "dingens" created by "bob" with:
| title | Bobs Meeting |
Given I am already logged in as "bob"
Scenario: Users not allowed to view meetings are no valid participants
When I go to the edit page of the meeting called "Bobs Meeting"
Then the user "alice" should not be available as a participant
Scenario: Users allowed to view meetings are valid participants
Given the user "alice" is a "meeting_viewer" in the project "dingens"
When I go to the edit page of the meeting called "Bobs Meeting"
Then the user "alice" should be available as a participant